aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda/src/impl
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-11-22 16:58:55 +0000
committerAndrzej Janik <[email protected]>2024-11-22 16:58:55 +0000
commit3ec7bffdc5706b4302e5b39411354f09dec02421 (patch)
treeeee0f4c9407881e265e19b082ab49e98a8dc6c4d /zluda/src/impl
parent122676bb13aaeab3ac1603e1fff2b7e3e3a40d2a (diff)
downloadZLUDA-3ec7bffdc5706b4302e5b39411354f09dec02421.tar.gz
ZLUDA-3ec7bffdc5706b4302e5b39411354f09dec02421.zip
Automate generation of HIP bindings
Diffstat (limited to 'zluda/src/impl')
-rw-r--r--zluda/src/impl/device.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/zluda/src/impl/device.rs b/zluda/src/impl/device.rs
index ff65b2d..9782aad 100644
--- a/zluda/src/impl/device.rs
+++ b/zluda/src/impl/device.rs
@@ -58,7 +58,7 @@ macro_rules! remap_attribute {
paste::paste! { hipDeviceAttribute_t:: [< hipDeviceAttribute $($word:camel)* >] }
}
)*
- _ => return Err(hipErrorCode_t::hipErrorNotSupported)
+ _ => return Err(hipErrorCode_t::NotSupported)
}
}
}
@@ -245,7 +245,7 @@ pub(crate) fn get_luid(
let luid = unsafe {
luid.cast::<[i8; 8]>()
.as_mut()
- .ok_or(hipErrorCode_t::hipErrorInvalidValue)
+ .ok_or(hipErrorCode_t::InvalidValue)
}?;
let mut properties = unsafe { mem::zeroed() };
unsafe { hipGetDevicePropertiesR0600(&mut properties, dev) }?;