@@ -91,15 +91,20 @@ void submit_kernel(DPCTLSyclQueueRef QRef,
9191} /* end of anonymous namespace */
9292
9393/*
94- // The oneD_range_kernel spv files were generated from the below SYCL program.
95- // To compile:
96- // icpx -fsycl oneD_range_kernel.cpp
97- // IGC_ShaderDumpEnable=1 IGC_DumpToCustomDir=dump ./a.out
98-
99- // The generated spv files should be inspected using spirv-dis to identify
100- // kernel names. When these files were generated using dpcpp 2024.1, a single
101- // spv file was generated for all integer types and float32_t and a separate
102- // file generated for float64_t.
94+ // The oneD_range_kernel spv files were generated from the SYCL program included
95+ // in this comment. The program can be compiled using
96+ // `icpx -fsycl oneD_range_kernel.cpp`. After that if the generated executable
97+ // is run with the environment variable `SYCL_DUMP_IMAGES=1`, icpx runtime
98+ // will dump all offload sections of fat binary to the current working
99+ // directory. When tested with DPC++ 2024.0 the kernels are split across two
100+ // separate SPV files. One contains all kernels for integers and FP32
101+ // data type, and another contains the kernel for FP64.
102+ //
103+ // Note that, `SYCL_DUMP_IMAGES=1` will also generate extra SPV files that
104+ // contain the code for built in functions such as indexing and barriers. To
105+ // figure which SPV file contains the kernels, use `spirv-dis` from the
106+ // spirv-tools package to translate the SPV binary format to a human-readable
107+ // textual format.
103108
104109#include <CL/sycl.hpp>
105110#include <iostream>
0 commit comments