From ed98dca26d9a7b455b346672f204e93e919d7e56 Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Mon, 9 Dec 2024 16:53:33 +0000 Subject: Convert nvml project to the new macro --- zluda_ml/src/impl.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'zluda_ml/src/impl.rs') 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() +} -- cgit v1.2.3