Skip to content

How to find the exectly asm kernel code when enabling SYCL? #17031

Answered by AlexeySachkov
TJU-PanYizhe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TJU-PanYizhe,

I compiled the code using -fsycl to with SYCL support into the asm format(a .s file)
How to find the exectly asm kernel code in that asm file?

I'm not sure how our compiler driver behaves in this scenario (maybe @mdtoguchi knows), but my assumption is that there will be no device code in that .s file.

When only -fsycl is specified, device code is compiled down to SPIR-V and then embedded into the application as a global constant. It is not compiled down to host system assembly, because it is not directly executable. Instead, it undergoes JIT compilation for a selected device at runtime. That is done via low-level runtimes like OpenCL or Level Zero.

Please refer to docu…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TJU-PanYizhe
Comment options

Answer selected by TJU-PanYizhe
Comment options

You must be logged in to vote
1 reply
@TJU-PanYizhe
Comment options

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
Converted from issue

This discussion was converted from issue #17029 on February 17, 2025 08:53.