Skip to content

Commit

Permalink
Enable TOSA conversions in bazel build
Browse files Browse the repository at this point in the history
  • Loading branch information
sjain-stanford committed Feb 12, 2025
1 parent aa74936 commit b48f409
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/bazel/torch-mlir-overlay/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ gentbl_cc_library(
[
"-gen-pass-decls",
"-DTORCH_MLIR_ENABLE_STABLEHLO",
"-DTORCH_MLIR_ENABLE_TOSA",
],
"include/torch-mlir/Conversion/Passes.h.inc",
),
Expand Down Expand Up @@ -334,6 +335,7 @@ gentbl_cc_library(
[
"-gen-pass-decls",
"-DTORCH_MLIR_ENABLE_STABLEHLO",
"-DTORCH_MLIR_ENABLE_TOSA",
],
"include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h.inc",
),
Expand Down Expand Up @@ -887,6 +889,7 @@ cc_library(
copts = [
"-DTORCH_MLIR_ENABLE_REFBACKEND",
"-DTORCH_MLIR_ENABLE_STABLEHLO",
"-DTORCH_MLIR_ENABLE_TOSA",
],
strip_include_prefix = "include",
deps = [
Expand Down

0 comments on commit b48f409

Please sign in to comment.