Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 529293595
  • Loading branch information
syshafi authored and copybara-github committed May 4, 2023
1 parent 2c157ec commit cb3eeb7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 40 deletions.
26 changes: 11 additions & 15 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ pip_install(
requirements = "//agent_based_epidemic_sim/learning:requirements.txt",
)

skylib_version = "0.9.0"
http_archive(
name = "bazel_skylib",
type = "tar.gz",
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel_skylib-{}.tar.gz".format(skylib_version, skylib_version),
sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0",
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@bazel_skylib//lib:versions.bzl", "versions")
versions.check(minimum_bazel_version = "2.0.0")
versions.check(minimum_bazel_version = "3.7.2")

http_archive(
name = "six_archive",
Expand Down Expand Up @@ -107,18 +110,11 @@ http_archive(

http_archive(
name = "com_google_absl",
sha256 = "3ea49a7d97421b88a8c48a0de16c16048e17725c7ec0f1d3ea2683a2a75adc21", # SHARED_ABSL_SHA
strip_prefix = "abseil-cpp-20230125.0",
urls = [
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20210324.2.tar.gz",
],
# Remove after https://github.com/abseil/abseil-cpp/issues/326 is solved.
patches = [
"@//third_party:com_google_absl_f863b622fe13612433fdf43f76547d5edda0c93001.diff"
],
patch_args = [
"-p1",
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.0.tar.gz",
],
strip_prefix = "abseil-cpp-20210324.2",
sha256 = "59b862f50e710277f8ede96f083a5bb8d7c9595376146838b9580be90374ee1f"
)

# GoogleTest/GoogleMock framework. Used by most unit-tests.
Expand Down
8 changes: 0 additions & 8 deletions agent_based_epidemic_sim/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("//tools/build_defs/license:license.bzl", "license")

package(
default_applicable_licenses = ["//agent_based_epidemic_sim:license"],
default_visibility = [
":internal",
],
)

license(
name = "license",
package_name = "agent_based_epidemic_sim",
)

licenses(["notice"])

exports_files(["LICENSE"])
Expand Down
4 changes: 2 additions & 2 deletions agent_based_epidemic_sim/port/executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class StdThreadExecutor : public Executor {
void Add(std::function<void()> fn) ABSL_LOCKS_EXCLUDED(mu_);
bool Ready() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_);
std::vector<std::thread> threads_;
bool done_ GUARDED_BY(mu_) = false;
std::vector<std::function<void()> > work_ GUARDED_BY(mu_);
bool done_ ABSL_GUARDED_BY(mu_) = false;
std::vector<std::function<void()>> work_ ABSL_GUARDED_BY(mu_);
};

class StdThreadExecution : public Execution {
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion third_party/highwayhash.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ cc_library(
deps = [
":arch_specific",
":compiler_specific",
":hh_types",
":hh_portable",
":hh_types",
] + select({
":cpu_ppc": [":hh_vsx"],
"//conditions:default": [
Expand Down

0 comments on commit cb3eeb7

Please sign in to comment.