Skip to content

How can I confirm that my program is actually running AOT kernels #15087

Answered by AlexeySachkov
DDEle asked this question in Q&A
Discussion options

You must be logged in to vote

Using SYCL_DUMP_IMAGES is not a guarantee here. The thing is that even if you don't see a SPIR-V module dumped this way but some device-specific binary, there can still be a fallback to JIT compilation for Intel GPUs.

The thing is that Intel GPU offline compiler (ocloc) silently embeds SPIR-V into binaries it produces so that when that binary is attempted to be used on a device it was not compiled for, a JIT compilation can be performed.

That can be mitigated by passing -exclude_ir flag to device compiler (through -Xsycl-target-backend flag if I'm not mistaken with its spelling). Note that SYCL RT itself does not have a capability to perform AOT -> JIT fallback and by applying this change…

Replies: 1 comment 1 reply

Comment options

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

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