Skip to content

Commit

Permalink
Add cl_apple_setmemobjectdestructor feature for #7
Browse files Browse the repository at this point in the history
  • Loading branch information
kenba committed May 22, 2021
1 parent 6f164fd commit 9877e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ CL_VERSION_2_1 = []
CL_VERSION_2_2 = []
CL_VERSION_3_0 = []

cl_apple_setmemobjectdestructor = []
cl_khr_icd = []
cl_khr_il_program = []
cl_khr_terminate_context = []
Expand Down
2 changes: 1 addition & 1 deletion src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use std::mem;
#[allow(unused_imports)]
use std::ptr;

#[inline]
#[cfg(feature = "cl_apple_setmemobjectdestructor")]
pub fn set_mem_object_destructor_apple(
memobj: cl_mem,
pfn_notify: extern "C" fn(cl_context, *const c_void),
Expand Down

0 comments on commit 9877e15

Please sign in to comment.