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

Method as_ptr

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

Source from the content-addressed store, hash-verified

62
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.

Callers 15

sysctl_stringFunction · 0.80
sysctl_u64Function · 0.80
gpu_uploadMethod · 0.80
get_or_uploadMethod · 0.80
tensor_matmulMethod · 0.80
write_f32Method · 0.80
write_u32Method · 0.80
init_vulkanMethod · 0.80
alloc_mapped_bufferMethod · 0.80
view_keyMethod · 0.80
bytes_to_f32_vecMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected