Skip to content

Math dialect not working #5

@relativityhd

Description

@relativityhd

When adding the math dialect in CubeCL with pass_manager.add_pass(pass::conversion::create_math_to_llvm()); functions from use tracel_llvm::mlir_rs::dialect::ods::math produce the following error when called:

error: cannot be converted to LLVM IR: missing `LLVMTranslationDialectInterface` registration for dialect for op: math.acos

Please see also this PR, which is blocked by this problem: tracel-ai/cubecl#861
The relevant code changes there are in crates/cubecl-cpu/src/compiler/visitor/operation/arithmetic.rs and crates/cubecl-cpu/src/compiler/module.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions