From b48f40923518e6232b2d548b8c64c2346c637142 Mon Sep 17 00:00:00 2001 From: Sambhav Jain Date: Wed, 12 Feb 2025 15:43:04 -0800 Subject: [PATCH] Enable TOSA conversions in bazel build --- utils/bazel/torch-mlir-overlay/BUILD.bazel | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/bazel/torch-mlir-overlay/BUILD.bazel b/utils/bazel/torch-mlir-overlay/BUILD.bazel index fc2c4b1c6ac1..9c8908e87f79 100644 --- a/utils/bazel/torch-mlir-overlay/BUILD.bazel +++ b/utils/bazel/torch-mlir-overlay/BUILD.bazel @@ -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", ), @@ -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", ), @@ -887,6 +889,7 @@ cc_library( copts = [ "-DTORCH_MLIR_ENABLE_REFBACKEND", "-DTORCH_MLIR_ENABLE_STABLEHLO", + "-DTORCH_MLIR_ENABLE_TOSA", ], strip_include_prefix = "include", deps = [