Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
789 Discussions

ZET_ENABLE_PROGRAM_DEBUGGING related question

Ikei
Novice
602 Views

I have a SYCL program which runs fine while setting ZET_ENABLE_PROGRAM_DEBUGGING=1, however creating wrong result without it. The result indicates that all values of some arrays are evaluated as 0. The arrays are malloced on host either as host memory or SYCL shared memory.  

 

How can I debug the program further? 

 

I am using Intel® Max Series GPU (PVC) on 4th Gen Intel® Xeon® processors – 1100 series and  Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-138-generic x86_64).  The compiler is  Version 2025.1.1 Build 20250418. The program outputs correct result when I run it on [opencl:cpu] not depend on   ZET_ENABLE_PROGRAM_DEBUGGING value. 

0 Kudos
1 Reply
Ikei
Novice
523 Views

I changed the program to allocate all arrays (that was allocated in host global memory space) on shared memory. It was my bug to pass a pointer to host memory to device code. 

0 Kudos
Reply