From bebae0ed7cd049d30470f700cac512223cc33e60 Mon Sep 17 00:00:00 2001 From: shaojian Date: Thu, 19 Dec 2024 16:16:11 +0800 Subject: [PATCH 1/2] repo-sync-2024-12-19T16:16:02+0800 --- .../paillier_clustar_fpga/fpga_engine/driver/driver.cc | 7 ++++--- heu/pylib/version.py | 2 +- third_party/bazel_cpp/repositories.bzl | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/heu/library/algorithms/paillier_clustar_fpga/fpga_engine/driver/driver.cc b/heu/library/algorithms/paillier_clustar_fpga/fpga_engine/driver/driver.cc index 2527c80b..9e883917 100644 --- a/heu/library/algorithms/paillier_clustar_fpga/fpga_engine/driver/driver.cc +++ b/heu/library/algorithms/paillier_clustar_fpga/fpga_engine/driver/driver.cc @@ -797,9 +797,10 @@ int fpga_fedai_operator_accl(fpga_config *cfg, char *para, char *data1, } // Check whether data_size is supported unsigned long long max_task_memspace = 0; - max_task_memspace = memory_total_size[fpga_id] / taskid_counts[fpga_id] * - 1024 * 1024 * 1024 - - 16 * 1024; + max_task_memspace = + static_cast(memory_total_size[fpga_id]) / + taskid_counts[fpga_id] * 1024 * 1024 * 1024 - + 16 * 1024; // Updated by Ant Group // fprintf(stdout,"cmd_size %ld, para_size %ld, data_size %ld, total_size // %ld, max_task_space %ld\n",16*1024,cfg->para_data_size, // cfg->data1_size,16*1024+cfg->para_data_size+cfg->data1_size,max_task_memspace+16*1024); diff --git a/heu/pylib/version.py b/heu/pylib/version.py index cf3c182c..ef6eafa1 100644 --- a/heu/pylib/version.py +++ b/heu/pylib/version.py @@ -13,4 +13,4 @@ # limitations under the License. -__version__ = "0.6.0.dev20241106" +__version__ = "0.6.0.dev0" diff --git a/third_party/bazel_cpp/repositories.bzl b/third_party/bazel_cpp/repositories.bzl index 0776bac4..f09e1f67 100644 --- a/third_party/bazel_cpp/repositories.bzl +++ b/third_party/bazel_cpp/repositories.bzl @@ -15,6 +15,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + def heu_cpp_deps(): _bazel_skylib() _com_github_eigenteam_eigen() From f5d65462bd7592b571e2b819b741234de48adf04 Mon Sep 17 00:00:00 2001 From: shaojian-ant <121606618+shaojian-ant@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:20:12 +0800 Subject: [PATCH 2/2] Update repositories.bzl --- third_party/bazel_cpp/repositories.bzl | 1 - 1 file changed, 1 deletion(-) diff --git a/third_party/bazel_cpp/repositories.bzl b/third_party/bazel_cpp/repositories.bzl index f09e1f67..0776bac4 100644 --- a/third_party/bazel_cpp/repositories.bzl +++ b/third_party/bazel_cpp/repositories.bzl @@ -15,7 +15,6 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - def heu_cpp_deps(): _bazel_skylib() _com_github_eigenteam_eigen()