aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump/src/os_win.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2022-01-07 04:20:33 +0100
committerAndrzej Janik <[email protected]>2022-01-07 04:20:33 +0100
commit869efbe0e2597d130a973d38d0d9bbdb70a67874 (patch)
tree347bee64790847828ab412c4ccc4bfe66f8520c6 /zluda_dump/src/os_win.rs
parent9390db962bf228902c5c63ed2d2861d820d18210 (diff)
downloadZLUDA-869efbe0e2597d130a973d38d0d9bbdb70a67874.tar.gz
ZLUDA-869efbe0e2597d130a973d38d0d9bbdb70a67874.zip
Move zluda_dump to the new CUDA infrastructure
Diffstat (limited to 'zluda_dump/src/os_win.rs')
-rw-r--r--zluda_dump/src/os_win.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/zluda_dump/src/os_win.rs b/zluda_dump/src/os_win.rs
index d80f6e6..c138cc0 100644
--- a/zluda_dump/src/os_win.rs
+++ b/zluda_dump/src/os_win.rs
@@ -1,8 +1,6 @@
use std::{
- ffi::{c_void, CStr, CString, OsString},
- mem,
- os::raw::c_ushort,
- ptr,
+ ffi::{c_void, CStr},
+ mem, ptr,
};
use std::os::windows::io::AsRawHandle;
@@ -12,7 +10,7 @@ use winapi::{
um::libloaderapi::{GetProcAddress, LoadLibraryW},
};
-use crate::cuda::CUuuid;
+use cuda_types::CUuuid;
pub(crate) const LIBCUDA_DEFAULT_PATH: &'static str = "C:\\Windows\\System32\\nvcuda.dll";
const LOAD_LIBRARY_NO_REDIRECT: &'static [u8] = b"ZludaLoadLibraryW_NoRedirect\0";