MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / cget_managed_ptr

Function cget_managed_ptr

csrc/pythonInterface.cpp:557–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557void* 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
565void cprefetch(void* ptr, size_t bytes, int device) {
566

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected