From 5468479e8f3de4658205751d42a6fbe073487e2e Mon Sep 17 00:00:00 2001 From: William Moses Date: Sat, 27 Apr 2024 20:20:37 -0700 Subject: [PATCH] Bazel fix include script on non outermost project (#1852) --- enzyme/BUILD | 4 ++-- enzyme/Enzyme/MLIR/Passes/EnzymeWrapPass.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/enzyme/BUILD b/enzyme/BUILD index b1ca7fddb79c..266eb1b0044d 100644 --- a/enzyme/BUILD +++ b/enzyme/BUILD @@ -144,7 +144,7 @@ cc_library( data = ["@llvm-project//clang:builtin_headers_gen"], visibility = ["//visibility:public"], deps = [ - "bundled-includes", + ":bundled-includes", ":binop-derivatives", ":blas-attributor", ":blas-derivatives", @@ -206,7 +206,7 @@ genrule( name = "bundled-includes", srcs = glob(["include/**"]) + ["scripts/bundle-includes.sh"], outs = ["bundled_includes.h"], - cmd = "scripts/bundle-includes.sh ./include $@", + cmd = "$(location :scripts/bundle-includes.sh) ./include $@", ) genrule( name = "gen_enzyme-clang++", diff --git a/enzyme/Enzyme/MLIR/Passes/EnzymeWrapPass.cpp b/enzyme/Enzyme/MLIR/Passes/EnzymeWrapPass.cpp index 049c1557578e..42db5f74fbda 100644 --- a/enzyme/Enzyme/MLIR/Passes/EnzymeWrapPass.cpp +++ b/enzyme/Enzyme/MLIR/Passes/EnzymeWrapPass.cpp @@ -39,7 +39,7 @@ std::vector parseActivityString(StringRef inp) { ArgActivity.push_back(DIFFE_TYPE::CONSTANT); else if (str == "enzyme_dupnoneed") ArgActivity.push_back(DIFFE_TYPE::DUP_NONEED); - else if (str == "enzyme_out") + else if (str == "enzyme_active") ArgActivity.push_back(DIFFE_TYPE::OUT_DIFF); else { llvm::errs() << "unknown activity to parse, found: '" << str << "'\n";