diff options
author | Andrzej Janik <[email protected]> | 2024-12-09 16:53:33 +0000 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2024-12-09 16:53:33 +0000 |
commit | ed98dca26d9a7b455b346672f204e93e919d7e56 (patch) | |
tree | c2f1be24c9bc75534da4537959c71811f5a0ec86 /zluda_ml/src/impl.rs | |
parent | c9c7a4d43287d2ecd4b9cf20772c579eb25ec480 (diff) | |
download | ZLUDA-ed98dca26d9a7b455b346672f204e93e919d7e56.tar.gz ZLUDA-ed98dca26d9a7b455b346672f204e93e919d7e56.zip |
Convert nvml project to the new macro
Diffstat (limited to 'zluda_ml/src/impl.rs')
-rw-r--r-- | zluda_ml/src/impl.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zluda_ml/src/impl.rs b/zluda_ml/src/impl.rs index 35f3778..60e5e9d 100644 --- a/zluda_ml/src/impl.rs +++ b/zluda_ml/src/impl.rs @@ -1,4 +1,4 @@ -use crate::nvml::nvmlReturn_t;
+use cuda_types::nvml::nvmlReturn_t;
#[cfg(debug_assertions)]
pub(crate) fn unimplemented() -> nvmlReturn_t {
@@ -9,3 +9,9 @@ pub(crate) fn unimplemented() -> nvmlReturn_t { 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()
+}
|