| 489 | } |
| 490 | |
| 491 | Result<uint8_t*> GetHostAddress(uintptr_t device_ptr) { |
| 492 | void* ptr; |
| 493 | CU_RETURN_NOT_OK( |
| 494 | "cuPointerGetAttribute", |
| 495 | cuPointerGetAttribute(&ptr, CU_POINTER_ATTRIBUTE_HOST_POINTER, device_ptr)); |
| 496 | return static_cast<uint8_t*>(ptr); |
| 497 | } |
| 498 | |
| 499 | namespace { |
| 500 |
nothing calls this directly
no outgoing calls
no test coverage detected