Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Sep 21, 2024
1 parent 3c5337b commit 4a3d53c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions libspu/compiler/tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
5 changes: 1 addition & 4 deletions libspu/compiler/tools/spu-translate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
#include "libspu/compiler/core/core.h"
#undef EXPOSE_PIPELINE_BUILDER

template <typename T>
struct fmt::formatter<xt::xarray<T>> : ostream_formatter {};

llvm::cl::opt<uint32_t> ProtocolKind(
"protocol_kind", llvm::cl::init(1),
llvm::cl::desc("1 for REF2k, 2 for SEMI2k, 3 for ABY3, 4 for Cheetah"));
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 4a3d53c

Please sign in to comment.