mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
fix autodiff perf by running the enzyme opt pass before autodiff
This commit is contained in:
@@ -964,6 +964,7 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
|
||||
.env("LLVM_CONFIG_REAL", &llvm_config)
|
||||
.define("LLVM_ENABLE_ASSERTIONS", "ON")
|
||||
.define("ENZYME_EXTERNAL_SHARED_LIB", "ON")
|
||||
.define("ENZYME_RUNPASS", "ON")
|
||||
.define("LLVM_DIR", builder.llvm_out(target));
|
||||
|
||||
cfg.build();
|
||||
|
||||
Reference in New Issue
Block a user