pub struct CudaGraphCompiler { /* private fields */ }Expand description
Compiles a teeny-core Graph into a runnable CUDA model.
Implementations§
Source§impl CudaGraphCompiler
impl CudaGraphCompiler
Sourcepub fn new(compiler: LlvmCompiler) -> Self
pub fn new(compiler: LlvmCompiler) -> Self
Wraps an LlvmCompiler as a graph compiler.
Sourcepub fn compile_model<'a, L: Lowering<'a>, T: Target>(
&self,
graph: &Graph,
lowering: &L,
target: &T,
mode: LoweringMode,
force: bool,
) -> Result<CudaModel<'a>>
pub fn compile_model<'a, L: Lowering<'a>, T: Target>( &self, graph: &Graph, lowering: &L, target: &T, mode: LoweringMode, force: bool, ) -> Result<CudaModel<'a>>
Compile a graph to a CudaModel, returning the concrete type directly.
Use this when you need access to the compiled DAG (e.g. in tests).
Trait Implementations§
Source§impl Clone for CudaGraphCompiler
impl Clone for CudaGraphCompiler
Source§fn clone(&self) -> CudaGraphCompiler
fn clone(&self) -> CudaGraphCompiler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CudaGraphCompiler
impl Debug for CudaGraphCompiler
Source§impl GraphCompiler for CudaGraphCompiler
impl GraphCompiler for CudaGraphCompiler
Auto Trait Implementations§
impl Freeze for CudaGraphCompiler
impl RefUnwindSafe for CudaGraphCompiler
impl Send for CudaGraphCompiler
impl Sync for CudaGraphCompiler
impl Unpin for CudaGraphCompiler
impl UnsafeUnpin for CudaGraphCompiler
impl UnwindSafe for CudaGraphCompiler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more