diff --git a/third_party/tsl/third_party/compute_library/set_openmp_runtime_off_by_default.patch b/third_party/tsl/third_party/compute_library/set_openmp_runtime_off_by_default.patch new file mode 100644 index 00000000000000..cc4a6731441c88 --- /dev/null +++ b/third_party/tsl/third_party/compute_library/set_openmp_runtime_off_by_default.patch @@ -0,0 +1,16 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index f1766d9582..849a991cea 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -56,7 +56,7 @@ bool_flag( + + bool_flag( + name = "openmp", +- build_setting_default = True, ++ build_setting_default = False, + visibility = ["//visibility:public"], + ) + +-- +2.34.1 + diff --git a/third_party/tsl/workspace2.bzl b/third_party/tsl/workspace2.bzl index 35975688ae46ea..3efeb617cecb3b 100644 --- a/third_party/tsl/workspace2.bzl +++ b/third_party/tsl/workspace2.bzl @@ -177,6 +177,7 @@ def _tf_repositories(): patch_file = [ "//third_party/compute_library:compute_library.patch", "//third_party/compute_library:acl_thread_local_scheduler.patch", + "//third_party/compute_library:set_openmp_runtime_off_by_default.patch", ], sha256 = "c4ca329a78da380163b2d86e91ba728349b6f0ee97d66e260a694ef37f0b0d93", strip_prefix = "ComputeLibrary-23.05.1",