How to find the exectly asm kernel code when enabling SYCL? #17031
-
How to find the exectly asm kernel code when enabling SYCL? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @TJU-PanYizhe,
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 When only Please refer to documentation for OpenCL implementation for your HW to see what options they provide for extracting assembly out of OpenCL programs. |
Beta Was this translation helpful? Give feedback.
-
When creating an assembly file (assuming using |
Beta Was this translation helpful? Give feedback.
Hi @TJU-PanYizhe,
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…