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

Method as_dbuf

crates/cust/src/util.rs:67–69  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

65
66impl<T: DeviceCopy> SliceExt<T> for &[T] {
67 fn as_dbuf(&self) -> CudaResult<DeviceBuffer<T>> {
68 DeviceBuffer::from_slice(*self)
69 }
70
71 fn as_unified_buf(&self) -> CudaResult<UnifiedBuffer<T>> {
72 UnifiedBuffer::from_slice(*self)

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected