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

Method as_raw

crates/cust/src/device.rs:361–363  ·  view source on GitHub ↗

Returns a raw handle to this device, not handing over ownership, meaning that dropping this device will try to drop the underlying device.

(&self)

Source from the content-addressed store, hash-verified

359 /// Returns a raw handle to this device, not handing over ownership, meaning that dropping
360 /// this device will try to drop the underlying device.
361 pub fn as_raw(&self) -> CUdevice {
362 self.device
363 }
364}
365
366/// Iterator over all available CUDA devices. See

Callers 14

binary_tensor_opMethod · 0.45
unary_tensor_opMethod · 0.45
add_assignMethod · 0.45
dropout_forwardMethod · 0.45
dropout_backwardMethod · 0.45
convolution_forwardMethod · 0.45
rnn_forwardMethod · 0.45
rnn_backward_dataMethod · 0.45
rnn_backward_weightsMethod · 0.45
copy_fromMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected