Skip to content
Open
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
10 changes: 5 additions & 5 deletions src/hl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn convert_device_type(device: DeviceType) -> cl_device_type {
}

pub struct Platform {
id: cl_platform_id
pub id: cl_platform_id
}

impl Platform {
Expand Down Expand Up @@ -184,7 +184,7 @@ pub fn create_context_with_properties(dev: &[Device], prop: &[cl_context_propert

#[derive(Copy, Clone)]
pub struct Device {
id: cl_device_id
pub id: cl_device_id
}

unsafe impl Sync for Device {}
Expand Down Expand Up @@ -217,7 +217,7 @@ impl Device {
String::from_utf8_unchecked(buf)
}
}

pub fn name(&self) -> String
{
self.profile_info(CL_DEVICE_NAME)
Expand All @@ -234,7 +234,7 @@ impl Device {
{
self.profile_info(CL_DEVICE_TYPE)
}

pub fn compute_units(&self) -> usize {
unsafe {
let mut ct: usize = 0;
Expand Down Expand Up @@ -547,7 +547,7 @@ impl CommandQueue
event_list_length,
event_list,
ptr::null_mut());

check(err, "Failed to read buffer");
}
})
Expand Down