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

Method get

crates/cust/src/lib.rs:134–140  ·  view source on GitHub ↗

Returns the latest CUDA version supported by the CUDA driver.

()

Source from the content-addressed store, hash-verified

132impl CudaApiVersion {
133 /// Returns the latest CUDA version supported by the CUDA driver.
134 pub fn get() -> CudaResult<CudaApiVersion> {
135 unsafe {
136 let mut version: i32 = 0;
137 cuDriverGetVersion(&mut version as *mut i32).to_result()?;
138 Ok(CudaApiVersion { version })
139 }
140 }
141
142 /// Return the major version number - eg. the 9 in version 9.2
143 #[inline]

Callers 4

extract_llfnsFunction · 0.45
numberMethod · 0.45
dump_debug_dotfileMethod · 0.45
dynamic_shared_memFunction · 0.45

Calls 1

to_resultMethod · 0.45

Tested by

no test coverage detected