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

Function nvvm_version

crates/nvvm/src/lib.rs:51–59  ·  view source on GitHub ↗

Get the major and minor NVVM version.

()

Source from the content-addressed store, hash-verified

49
50/// Get the major and minor NVVM version.
51pub fn nvvm_version() -> (i32, i32) {
52 unsafe {
53 let mut major = MaybeUninit::uninit();
54 let mut minor = MaybeUninit::uninit();
55 // according to the docs this cant fail
56 sys::nvvmVersion(major.as_mut_ptr(), minor.as_mut_ptr());
57 (major.assume_init(), minor.assume_init())
58 }
59}
60
61#[derive(Debug, Clone, Copy, PartialEq, Eq)]
62pub enum NvvmError {

Callers

nothing calls this directly

Calls 1

as_mut_ptrMethod · 0.45

Tested by

no test coverage detected