1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
///
/// The OpenCL implementation is thread-safe for API calls that create,
/// retain and release objects such as a context, command-queue, program,
/// kernel and memory objects. OpenCL API calls that queue commands to a
/// command-queue or change the state of OpenCL objects such as command-queue
/// objects, memory objects, program and kernel objects are not thread-safe.

#[allow(unused_imports)]
#[macro_use]
extern crate log;

// #[macro_use] extern crate lazy_static;

// #[macro_use] extern crate bitflags;

#[macro_use]
extern crate failure;

#[cfg(test)]
#[macro_use]
mod testing;

// macros are in there keep it before dependent modules. order matters.
#[macro_use]
mod macros;

// pub mod utils;

pub extern crate open_cl_low_level;
pub extern crate open_cl_sys as ffi;

pub use open_cl_low_level as ll;

extern crate num;

pub mod buffer;
pub mod command_queue;
pub mod context;
pub mod device;
pub mod kernel;
pub mod platform;
pub mod program;
pub mod session;

#[cfg(test)]
mod tests;

pub use buffer::Buffer;
pub use command_queue::CommandQueue;
pub use context::Context;
pub use device::Device;
pub use kernel::{Kernel, KernelOpArg, KernelOperation};
pub use platform::Platform;
pub use program::{Program, UnbuiltProgram};
pub use session::Session;

pub use ll::{
    BufferCreator, ClNumber, CommandQueueOptions, CommandQueueProperties, DeviceType, Error,
    HostAccess, KernelAccess, MemConfig, MemLocation, MutVecOrSlice, Output, VecOrSlice, Waitlist,
    Work, NumberType, NumberTyped, NumberTypedT,
};