Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions oneapi-rs-sys/src/types-sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub mod ffi {
ptr: UniquePtr<Event>,
}

#[derive(Debug)]
#[derive(Debug, Hash)]
enum DeviceType {
Cpu,
Gpu,
Expand All @@ -70,7 +70,7 @@ pub mod ffi {
Unimplemented,
}

#[derive(Debug)]
#[derive(Debug, Hash)]
enum EventCommandStatus {
Submitted,
Running,
Expand Down
1 change: 1 addition & 0 deletions oneapi-rs/src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub type Range<const DIMENSIONS: usize = 1> = [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<const DIMENSIONS: usize = 1> {
pub group_size: Range<DIMENSIONS>,
pub local_size: Range<DIMENSIONS>,
Expand Down