- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
Here 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;
}
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page