Skip to content

Commit

Permalink
[PKM-2683] Examples compilation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-zakablukov committed Nov 26, 2024
1 parent 3a185ac commit 7f113bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 9 additions & 7 deletions examples/clinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use cl3::constants::{
CL_DEVICE_BUILT_IN_KERNELS, CL_DEVICE_EXTENSIONS, CL_DEVICE_NAME, CL_DEVICE_OPENCL_C_VERSION,
CL_DEVICE_PROFILE, CL_DEVICE_SVM_CAPABILITIES, CL_DEVICE_TYPE, CL_DEVICE_TYPE_ALL,
CL_DEVICE_VENDOR, CL_DEVICE_VENDOR_ID, CL_DEVICE_VERSION, CL_PLATFORM_EXTENSIONS,
CL_PLATFORM_NAME, CL_PLATFORM_PROFILE, CL_PLATFORM_VENDOR, CL_PLATFORM_VERSION,
use cl3::device::{
device_type_text, get_device_ids, get_device_info, vendor_id_text, CL_DEVICE_BUILT_IN_KERNELS,
CL_DEVICE_EXTENSIONS, CL_DEVICE_NAME, CL_DEVICE_OPENCL_C_VERSION, CL_DEVICE_PROFILE,
CL_DEVICE_SVM_CAPABILITIES, CL_DEVICE_TYPE, CL_DEVICE_TYPE_ALL, CL_DEVICE_VENDOR,
CL_DEVICE_VENDOR_ID, CL_DEVICE_VERSION,
};
use cl3::platform::{
get_platform_ids, get_platform_info, CL_PLATFORM_EXTENSIONS, CL_PLATFORM_NAME,
CL_PLATFORM_PROFILE, CL_PLATFORM_VENDOR, CL_PLATFORM_VERSION,
};
use cl3::device::{device_type_text, get_device_ids, get_device_info, vendor_id_text};
use cl3::platform::{get_platform_ids, get_platform_info};
use cl3::types::{cl_int, cl_uint, cl_ulong};

/// Finds all the `OpenCL` platforms and devices on a system.
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
//!
//! `OpenCL` and the `OpenCL` logo are trademarks of Apple Inc. used under license by Khronos.
#[cfg(not(feature = "dynamic_runtime"))]
extern crate opencl_sys;

#[cfg(feature = "dynamic")]
Expand Down
3 changes: 1 addition & 2 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use cl3::command_queue::{
create_command_queue, enqueue_nd_range_kernel, enqueue_read_buffer, enqueue_write_buffer,
finish, release_command_queue, CL_QUEUE_PROFILING_ENABLE,
};
use cl3::constants::{CL_BLOCKING, CL_NON_BLOCKING};
use cl3::context::{create_context, release_context};
use cl3::device::{
get_device_ids, get_device_info, CL_DEVICE_TYPE_GPU, CL_DEVICE_VENDOR, CL_DEVICE_VENDOR_ID,
Expand All @@ -34,7 +33,7 @@ use cl3::kernel::{create_kernel, release_kernel, set_kernel_arg};
use cl3::memory::{create_buffer, release_mem_object, CL_MEM_READ_ONLY, CL_MEM_WRITE_ONLY};
use cl3::platform::{get_platform_ids, get_platform_info, CL_PLATFORM_NAME};
use cl3::program::{build_program, create_program_with_source, release_program};
use cl3::types::{cl_event, cl_float, cl_mem};
use cl3::types::{cl_event, cl_float, cl_mem, CL_BLOCKING, CL_NON_BLOCKING};
use libc::{c_void, size_t};
use std::ffi::CString;
use std::mem;
Expand Down

0 comments on commit 7f113bd

Please sign in to comment.