GPU Compute Software
Ask questions about Intel® Graphics Compute software technologies, such as OpenCL* GPU driver and oneAPI Level Zero
156 Discussions

GPU Prefetch in OpenCL

JEROME_B_Intel1
Employee
1,630 Views

ESIMD is an extension available as intrinsics on the SYCL compiler;

https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-0/explicit-simd-sycl-extension.html

 

It includes prefetch intrinsics. Is there any way to access GPU prefetch from OpenCL? 

Labels (1)
0 Kudos
1 Reply
Ben_A_Intel
Employee
1,615 Views

Hello!

OpenCL C has a standard function for prefetch:

https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#async-copies

Note, the table at the link has the description for "prefetch" even though the link name just says "async copies".

Please give this a try.  If it doesn't work for some reason can you please send your driver version and the GPU you are using?

Thanks!

0 Kudos
Reply