diff --git a/libspu/compiler/tools/BUILD.bazel b/libspu/compiler/tools/BUILD.bazel index 562da61b..6465c247 100644 --- a/libspu/compiler/tools/BUILD.bazel +++ b/libspu/compiler/tools/BUILD.bazel @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@yacl//bazel:yacl.bzl", "OMP_DEPS") load("//bazel:spu.bzl", "spu_cc_binary") package( @@ -33,7 +32,7 @@ spu_cc_binary( "@llvm-project//mlir:Pass", "@xla//xla/mlir_hlo", "@xla//xla/mlir_hlo:mhlo_passes", - ] + OMP_DEPS, + ], ) spu_cc_binary( diff --git a/libspu/compiler/tools/spu-translate.cc b/libspu/compiler/tools/spu-translate.cc index 68857fa0..acf2ed87 100644 --- a/libspu/compiler/tools/spu-translate.cc +++ b/libspu/compiler/tools/spu-translate.cc @@ -41,9 +41,6 @@ #include "libspu/compiler/core/core.h" #undef EXPOSE_PIPELINE_BUILDER -template -struct fmt::formatter> : ostream_formatter {}; - llvm::cl::opt ProtocolKind( "protocol_kind", llvm::cl::init(1), llvm::cl::desc("1 for REF2k, 2 for SEMI2k, 3 for ABY3, 4 for Cheetah")); @@ -109,7 +106,7 @@ bool testOpHandler(::spu::SPUContext *sctx, mlir::Operation *op, auto error = xt::fabs(lhs - rhs); - for (auto v : error) { + for (double v : error) { if (v > tol) { llvm::report_fatal_error( fmt::format("Diff {} greater than tol {}", v, tol).c_str());