EnzymeAD / Enzyme

High-performance automatic differentiation of LLVM and MLIR.

Home Page:https://enzyme.mit.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding an advanced option flag with Enzyme CMake

gaurav-arya opened this issue · comments

I'm using Enzyme's CMake template (https://github.com/EnzymeAD/CMake-Template/blob/main/CMakeLists.txt) and I'm not sure how to add advanced options like loose-type-analysis that are mentioned in the docs: https://enzyme.mit.edu/getting_started/UsingEnzyme/. I'd appreciate any help, thanks!

I haven’t tried myself. But maybe something like add_link_options(-mllvm -your-flag) in case you are using LLDEnzyme. Or add_compile_options(-mllvm -your-flag) for ClangEnzyme

Resolved by adding extra parameters to Enzyme exported cmake