Tells the compiler to optimize SYCL framework utility functions and to leave the kernel code unoptimized for further debugging.
Linux: | -fsycl-optimize-non-user-code |
Windows: | -fsycl-optimize-non-user-code |
None
OFF |
SYCL framework functions and methods are not optimized. |
This option tells the compiler to optimize SYCL framework utility functions and to leave the kernel code unoptimized for further debugging.
To use this option, you must also specify option -O0 (Linux) or /Od (Windows). Do not specify any other optimization setting or you will get a compilation error.
When using this option, you must also specify option -fsycl.
For information about available SYCL drivers, refer to Invoke the Compiler.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
None
The following command produces successful compilation:
icpx -fsycl -O0 -fsycl-optimize-non-user-code ./code.cpp
The following command produces a compilation error because only -O0 or /Od can be specified:
icpx -fsycl -O2 -fsycl-optimize-non-user-code ./code.cpp
The following command produces a compilation error because -O0 or /Od must be specified:
icpx -fsycl -fsycl-optimize-non-user-code ./code.cpp