1

When initialising a queue in SYCL with ComputeCpp I get a Runtime-Error using Visual Studio 2022. Also I tried exact the same code used on the Codeplay Guide. I'm able to trigger this error just by initialising a queue, without selecting any device or something else. (selecting one doesn't help either)

#include <CL/sycl.hpp>
int main(int, char**) {
    cl::sycl::queue queue;

    return 0;
} 

(Unhandled exception at 0x00007FF92F544FD9 in LearningComputeCpp.exe: Microsoft C++ exception: std::bad_array_new_length at memory location 0x0000005986CFF110.)

I installed ComputeCpp using the Windows installer and manually included it, aswell as OpenCL. (I'm using an AMD Radeon HD7900 GPU)

1 Answer 1

0

To find out if you have a supported processor with drivers that can be used by ComputeCpp, use the "computecpp_info" command. Instructions can be found here and this will show whether your device is supported.

The AMD drivers don't support SPIR fully though so I expect you will not be able to use this GPU with ComputeCpp.

Alternatively you could use DPC++ or hipSYCL, both of which support AMD GPUs.

Sign up to request clarification or add additional context in comments.

1 Comment

According to "computecpp_info" my GPU wasn't tested on my OS. Sadly I couldn't get DPC++ or hipSYCL to run on my system. I gues I'll stick to OpenCL or Compute Shaders. I'm just trying to create a small educational project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.