We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54351a5 commit d40655bCopy full SHA for d40655b
clang/test/dpct/asm/prefetch.cu
@@ -24,6 +24,11 @@ prefetch{.tensormap_space}.tensormap [a]; // prefetch the tensormap
24
.tensormap_space = { .const, .param };
25
*/
26
27
+__device__ void prefetch_h(const uint32_t *addr) {
28
+ // CHECK: sycl::ext::oneapi::experimental::prefetch(addr, sycl::ext::oneapi::experimental::properties{sycl::ext::oneapi::experimental::prefetch_hint_L1});
29
+ asm("prefetch.L1 [ %1 ];" : "=l"(addr) : "l"(addr));
30
+}
31
+
32
__global__ void prefetch(int *arr) {
33
/* prefetch of no address space */
34
// CHECK: sycl::ext::oneapi::experimental::prefetch(arr, sycl::ext::oneapi::experimental::properties{sycl::ext::oneapi::experimental::prefetch_hint_L1});
0 commit comments