diff options
Diffstat (limited to 'zluda/src/impl/device.rs')
-rw-r--r-- | zluda/src/impl/device.rs | 4 |
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) }?; |