Trait WmmaCompiler

Source
pub trait WmmaCompiler<D: Dialect>:
    Default
    + Clone
    + Copy
    + Debug
    + Send
    + Sync
    + Eq
    + Hash
    + 'static {
    type Architecture: Architecture;

    // Required methods
    fn wmma_includes(f: &mut Formatter<'_>) -> Result;
    fn deftypes(f: &mut Formatter<'_>) -> Result;
    fn local_variables(f: &mut Formatter<'_>) -> Result;
    fn compile_fragment_ident(
        ident: &FragmentIdent<D>,
        f: &mut Formatter<'_>,
    ) -> Result;
    fn compile_fragment_layout(
        layout: &FragmentLayout<D>,
        f: &mut Formatter<'_>,
    ) -> Result;
    fn compile_fragment(fragment: &Fragment<D>, f: &mut Formatter<'_>) -> Result;
    fn compile_instruction(
        instruction: &WmmaInstruction<D>,
        f: &mut Formatter<'_>,
    ) -> Result;
    fn supported_wmma_combinations(
        arch: &Self::Architecture,
    ) -> SupportedWmmaCombinations;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§