Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1714 Discussions

Unable to stop inside GPU kernel for debugging

Sidarth
Novice
396 Views

When trying to debug a simple SYCL program on the dev-cloud, the debugger does not stop inside the kernel with this warning message: 

 

warning: Temporarily disabling breakpoints for unloaded shared library "/lib/x86_64-linux-gnu/libze_intel_gpu.so.1"

 

 image (2).pngHere is the code:

 

#include <CL/sycl.hpp>
using namespace sycl;
static const int N = 16;
int main()
{
    queue q(default_selector_v); // <--- select GPU for offload 
    std::cout<<"Device: "<<q.get_device().get_info<info::device::name>()<<std::endl;
    double *data = malloc_shared<double>(N, q); // <--- allocate memory
    for(int i=0; i<N; i++) 
      data[i] = i;
    q.parallel_for(N, [=] (auto i)
    {
         data[i] *= 2;  // <--- Kernel Code (executes on GPU)
    });
    q.wait();
    free(data, q);
    return 0;
}

 

 

0 Kudos
0 Replies
Reply