MCPcopy Create free account
hub / github.com/apache/arrow / GetHostAddress

Function GetHostAddress

cpp/src/arrow/gpu/cuda_memory.cc:491–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491Result<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
499namespace {
500

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected