| 555 | } |
| 556 | |
| 557 | void* cget_managed_ptr(size_t bytes) { |
| 558 | void* ptr; |
| 559 | CUDA_CHECK_RETURN(cudaMallocManaged(&ptr, bytes, cudaMemAttachHost)); |
| 560 | CUDA_CHECK_RETURN(cudaPeekAtLastError()); |
| 561 | |
| 562 | return ptr; |
| 563 | } |
| 564 | |
| 565 | void cprefetch(void* ptr, size_t bytes, int device) { |
| 566 |
nothing calls this directly
no outgoing calls
no test coverage detected