[−][src]Struct fil_ocl::Program
A program from which kernels can be created from.
To use with multiple devices, create manually with ::from_parts()
.
Destruction
Handled automatically. Feel free to store, clone, and share among threads as you please.
Methods
impl Program
[src]
pub fn builder<'b>() -> ProgramBuilder<'b>
[src]
Returns a new ProgramBuilder
.
pub fn with_source(
context: &ContextCore,
src_strings: &[CString],
devices: Option<&[Device]>,
cmplr_opts: &CString
) -> OclResult<Program>
[src]
context: &ContextCore,
src_strings: &[CString],
devices: Option<&[Device]>,
cmplr_opts: &CString
) -> OclResult<Program>
Returns a new program built from pre-created build components and device list.
Prefer ::builder
to create a new Program
.
pub fn with_binary(
context: &ContextCore,
devices: &[Device],
binaries: &[&[u8]],
cmplr_opts: &CString
) -> OclResult<Program>
[src]
context: &ContextCore,
devices: &[Device],
binaries: &[&[u8]],
cmplr_opts: &CString
) -> OclResult<Program>
Returns a new program built from pre-created build components and device list.
Prefer ::builder
to create a new Program
.
pub fn as_core(&self) -> &ProgramCore
[src]
Returns a reference to the core pointer wrapper, usable by functions in
the core
module.
pub fn info(&self, info_kind: ProgramInfo) -> OclCoreResult<ProgramInfoResult>
[src]
Returns info about this program.
pub fn build_info(
&self,
device: Device,
info_kind: ProgramBuildInfo
) -> OclCoreResult<ProgramBuildInfoResult>
[src]
&self,
device: Device,
info_kind: ProgramBuildInfo
) -> OclCoreResult<ProgramBuildInfoResult>
Returns info about this program's build.
- TODO: Check that device is valid.
Methods from Deref<Target = ProgramCore>
pub fn as_ptr(&self) -> *mut c_void
[src]
Returns a pointer, do not store it.
pub fn devices(&self) -> Result<Vec<DeviceId>, Error>
[src]
Returns the devices associated with this program.
Trait Implementations
impl From<Program> for Program
[src]
fn from(core: ProgramCore) -> Program
[src]
impl Clone for Program
[src]
impl Display for Program
[src]
impl Debug for Program
[src]
impl Deref for Program
[src]
type Target = ProgramCore
The resulting type after dereferencing.
fn deref(&self) -> &ProgramCore
[src]
impl DerefMut for Program
[src]
fn deref_mut(&mut self) -> &mut ProgramCore
[src]
Auto Trait Implementations
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
impl RefUnwindSafe for Program
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,