aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_ml/src/impl.rs
blob: 60e5e9d3d1b3e8369a1a57b40573485fdfbfa820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use cuda_types::nvml::nvmlReturn_t;

#[cfg(debug_assertions)]
pub(crate) fn unimplemented() -> nvmlReturn_t {
    unimplemented!()
}

#[cfg(not(debug_assertions))]
pub(crate) fn unimplemented() -> nvmlReturn_t {
    nvmlReturn_t::NVML_ERROR_NOT_SUPPORTED
}

pub(crate) fn nvmlErrorString(
    _result: cuda_types::nvml::nvmlReturn_t,
) -> *const ::core::ffi::c_char {
    c"".as_ptr()
}