pub struct Linker { /* private fields */ }
Expand description

A linker used to link together PTX files into a single module.

Implementations

Creates a new linker.

Add some PTX assembly string to be linked in. The PTX code will be compiled into cubin by CUDA then linked in.

Returns

Returns an error if the PTX is invalid, cuda is out of memory, or the PTX is of an unsupported version.

Add some cubin (CUDA binary) to be linked in.

Returns

Returns an error if the cubin is invalid or CUDA is out of memory.

Add a fatbin (Fat Binary) to be linked in.

Returns

Returns an error if the fatbin is invalid or CUDA is out of memory.

Runs the linker to generate the final cubin bytes. Also returns a duration for how long it took to run the linker.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.