OpenCL platform ID is empty; fsycl-target: spir64_x86_64 #3701
-
|
When I am trying to compile this sample code ( I get this error: Is something wrong with my environment or is it a bug? If I remove the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You're trying to build your image for x86_64 platform in AOT mode. This requires you to have a fully set up OpenCL CPU device (see Get Started Guide). The way it works is the compiler will produce a SPIR-V binary, and feed it to |
Beta Was this translation helpful? Give feedback.
-
|
I need help! I have a similar problem, but when I run make fpga_emu: OpenCL platform ID is empty |
Beta Was this translation helpful? Give feedback.
You're trying to build your image for x86_64 platform in AOT mode. This requires you to have a fully set up OpenCL CPU device (see Get Started Guide). The way it works is the compiler will produce a SPIR-V binary, and feed it to
opencl-aottool which will essentially call some OpenCL APIs to produce the x64 binary executable, which can later be consumed by OpenCL runtime directly. If you want to simply build platform-agnostic SPIR-V, you should usespir64-unknown-unknown-sycldevicetarget.