Commit 0fe322c
authored
[SYCL][CUDA] Add managed mem check to enqueue prefetch (#5446)
This PR adds a managed memory check in cuda_piextUSMEnqueuePrefetch.
cuMemPrefetchAsync only works on managed memory and returns an error if host or device memory is passed.
This check ignores the prefetch hint if the memory provided is not managed.
A warning is emitted to the user if the prefetch is ignored.
This is a partial fix to: #52091 parent 4a794df commit 0fe322c
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4762 | 4762 | | |
4763 | 4763 | | |
4764 | 4764 | | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
4765 | 4774 | | |
4766 | 4775 | | |
4767 | 4776 | | |
| |||
0 commit comments