MCPcopy Create free account
hub / github.com/evilsocket/cake / as_mut_ptr

Method as_mut_ptr

cake-core/src/backends/rocm/mod.rs:65–65  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

63impl GpuBuf {
64 #[inline] fn as_ptr(&self) -> *const f32 { self.ptr as *const f32 }
65 #[inline] fn as_mut_ptr(&self) -> *mut f32 { self.ptr as *mut f32 }
66
67 /// Async download using pinned host memory for faster DMA, then sync.
68 fn download_on_stream(&self, stream: *mut std::ffi::c_void) -> std::result::Result<Vec<f32>, String> {

Callers 8

read_bytesMethod · 0.80
detect_hostnameFunction · 0.80
sysctl_stringFunction · 0.80
download_on_streamMethod · 0.80
newMethod · 0.80
rocblas_gemmMethod · 0.80
tensor_matmulMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected