MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / as_raw

Method as_raw

crates/cust/src/memory/pointer.rs:54–56  ·  view source on GitHub ↗

Returns the contained CUdeviceptr.

(&self)

Source from the content-addressed store, hash-verified

52
53 /// Returns the contained CUdeviceptr.
54 pub fn as_raw(&self) -> CUdeviceptr {
55 self.ptr
56 }
57
58 /// Create a DevicePointer from a raw CUDA pointer
59 pub fn from_raw(ptr: CUdeviceptr) -> Self {

Callers 8

as_device_ptrMethod · 0.45
as_raw_ptrMethod · 0.45
derefMethod · 0.45
prefetch_to_deviceMethod · 0.45
preferred_locationMethod · 0.45
as_sliceMethod · 0.45
cuda_free_asyncFunction · 0.45
cuda_freeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected