Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel ICX Compiler , Intel® DPC++ Compatibility Tool, and GDB*
584 Discussions

ISSUE: export SYCL_DUMP_IMAGES=0 still dumps

JamesR
New Contributor II
1,258 Views

export SYCL_DUMP_IMAGES=0

export SYCL_DUMP_IMAGES=false

export SYCL_DUMP_IMAGES=1

all cause the compiler to dump an SPV file.  The documentation (SYCL standard) suggests that this environment variable is supposed to be a true/false value.

It appears if the variable is defined at all, no matter what value, it causes a dump.

Here is my particular system information:

$ uname -a
Linux s001-n176 4.15.18 #1 SMP Fri Oct 18 11:54:23 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux

$ clang++ -v
Intel(R) oneAPI DPC++ Compiler 2021.1-beta06 (2020.4.0.0415)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /glob/development-tools/versions/oneapi/beta06/inteloneapi/compiler/latest/linux/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

0 Kudos
4 Replies
AbhishekD_Intel
Moderator
1,258 Views

Hi James,

Thank you for your finding. We have tried setting the environment variables that you have provided and we have noticed that no matter what the value (1, 0, true, false, <any_value>) of the variable it is generating .spv file.

It might be the reason that the code is just identifying the environment variables is set or not, it could be like: 

if (std::getenv("SYCL_DUMP_IMAGES") ... ) {

          // body.....

}

And as you have figured this out in documentation (SYCL standard) we are reporting this issue to the concerned team and escalating this thread. Once again Thank you for figuring this out.

Please do post thread if you find more such issues.

 

 

Stay Healthy Stay Safe! 

Warm Regards,

Abhishek

0 Kudos
PrasanthD_intel
Moderator
1,113 Views

Hi James,


Thanks for your patience. The issue raised by you has been fixed in the latest OneAPI version(2021.2). Please download and let us know your experience with it.


0 Kudos
PrasanthD_intel
Moderator
1,095 Views

Hi James,


We haven't heard back from you. Please let us know your feedback after testing the latest version.


Regards

Prasanth


0 Kudos
PrasanthD_intel
Moderator
1,079 Views

Hi,


We are closing this thread as the issue has been resolved in the latest version.

We will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only


Regards

Prasanth


0 Kudos
Reply