Get the major and minor NVVM version.
()
| 49 | |
| 50 | /// Get the major and minor NVVM version. |
| 51 | pub 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)] |
| 62 | pub enum NvvmError { |
nothing calls this directly
no test coverage detected