Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rust-GPU/rust-cuda
/ as_device_ptr
Method
as_device_ptr
crates/cust/src/memory/mod.rs:109–111 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
107
108
impl<T: DeviceCopy> GpuBuffer<T> for DeviceBuffer<T> {
109
fn as_device_ptr(&self) -> DevicePointer<T> {
110
self.as_slice().as_device_ptr()
111
}
112
113
fn len(&self) -> usize {
114
(**self).len()
Callers
1
as_raw_ptr
Method · 0.45
Calls
3
as_ptr
Method · 0.80
as_slice
Method · 0.45
as_raw
Method · 0.45
Tested by
no test coverage detected