diff --git a/oneapi-rs-sys/src/types-sys.rs b/oneapi-rs-sys/src/types-sys.rs index c3237fc..331be63 100644 --- a/oneapi-rs-sys/src/types-sys.rs +++ b/oneapi-rs-sys/src/types-sys.rs @@ -59,7 +59,7 @@ pub mod ffi { ptr: UniquePtr, } - #[derive(Debug)] + #[derive(Debug, Hash)] enum DeviceType { Cpu, Gpu, @@ -70,7 +70,7 @@ pub mod ffi { Unimplemented, } - #[derive(Debug)] + #[derive(Debug, Hash)] enum EventCommandStatus { Submitted, Running, diff --git a/oneapi-rs/src/range.rs b/oneapi-rs/src/range.rs index cfb656e..f461a0a 100644 --- a/oneapi-rs/src/range.rs +++ b/oneapi-rs/src/range.rs @@ -24,6 +24,7 @@ pub type Range = [u64; DIMENSIONS]; /// /// An `NdRange` comprises two [`Range`] parameters: the whole range over which the kernel is to be /// executed and the range of each work group. +#[derive(Clone, Copy, Debug, Hash)] pub struct NdRange { pub group_size: Range, pub local_size: Range,