Skip to content

OpenCL platform ID is empty; fsycl-target: spir64_x86_64 #3701

Answered by alexbatashev
dosarudaniel asked this question in Q&A
Discussion options

You must be logged in to vote

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-aot tool 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 use spir64-unknown-unknown-sycldevice target.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dosarudaniel
Comment options

Answer selected by AlexeySachkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants