[−][src]Struct accel::linker::Linker
Consuming builder for cubin from PTX and cubins
Fields
state: CUlinkState
cfg: JITConfig
ctx: 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]
self,
input_type: CUjitInputType,
data: &[u8]
) -> Result<Self>
Wrapper of cuLinkAddData
unsafe fn add_file(
self,
input_type: CUjitInputType,
path: &Path
) -> Result<Self>
[src]
self,
input_type: CUjitInputType,
path: &Path
) -> Result<Self>
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]
fn sync(&self) -> Result<()>
[src]
fn version(&self) -> Result<u32>
[src]
fn guard(&self) -> Result<ContextGuard>
[src]
fn get_ref(&self) -> ContextRef
[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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,