diff --git a/examples/clinfo.rs b/examples/clinfo.rs index 8f2193c..1f5bff2 100644 --- a/examples/clinfo.rs +++ b/examples/clinfo.rs @@ -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. diff --git a/src/lib.rs b/src/lib.rs index b7e749d..8b2baaf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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")] diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 346a938..90c633f 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -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, @@ -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;