[][src]Struct accel::linker::Linker

pub struct Linker {
    state: CUlinkState,
    cfg: JITConfig,
    ctx: Context,
}

Consuming builder for cubin from PTX and cubins

Fields

state: CUlinkStatecfg: JITConfigctx: Context

Methods

impl Linker[src]

pub fn create(ctx: &Context, cfg: JITConfig) -> Result<Self>[src]

Create a new Linker

unsafe fn add_data(
    self,
    input_type: CUjitInputType,
    data: &[u8]
) -> Result<Self>
[src]

Wrapper of cuLinkAddData

unsafe fn add_file(
    self,
    input_type: CUjitInputType,
    path: &Path
) -> Result<Self>
[src]

Wrapper of cuLinkAddFile

pub fn add(self, data: &Instruction) -> Result<Self>[src]

Add a resouce into the linker stack.

pub fn complete(self) -> Result<Instruction>[src]

Wrapper of cuLinkComplete

LinkComplete returns a reference to cubin, which is managed by LinkState. Use owned strategy to avoid considering lifetime.

Trait Implementations

impl Contexted for Linker[src]

impl Drop for Linker[src]

Auto Trait Implementations

impl RefUnwindSafe for Linker

impl !Send for Linker

impl !Sync for Linker

impl Unpin for Linker

impl UnwindSafe for Linker

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.