Skip to content

Commit

Permalink
Enable all functions with dynamic feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenba committed Dec 13, 2024
1 parent 18ba839 commit 63170be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ pub unsafe fn set_mem_object_destructor_apple(
}
}

#[cfg(feature = "cl_khr_icd")]
#[cfg(any(feature = "cl_khr_icd", feature = "dynamic"))]
#[allow(clippy::uninit_vec)]
pub fn icd_get_platform_ids_khr() -> Result<Vec<cl_platform_id>, cl_int> {
// Get the number of platforms
Expand Down Expand Up @@ -1937,7 +1937,7 @@ pub fn get_image_requirements_info_ext(
}
}

#[cfg(feature = "cl_loader_info")]
#[cfg(any(feature = "cl_loader_info", feature = "dynamic"))]
pub fn get_icd_loader_info_oclicd(param_name: cl_icdl_info) -> Result<Vec<u8>, cl_int> {
// get the size
let mut size: size_t = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub mod ext;
pub mod gl;
pub mod info_type;
pub mod kernel;
#[cfg(feature = "cl_loader_layers")]
#[cfg(any(feature = "cl_loader_layers", feature = "dynamic"))]
pub mod layer;
pub mod macros;
pub mod memory;
Expand Down

0 comments on commit 63170be

Please sign in to comment.