Skip to content

Commit

Permalink
Add patch to suppress XLA:GPU logging.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590780227
  • Loading branch information
hawkinsp authored and jax authors committed Dec 14, 2023
1 parent 25c16c0 commit b392622
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Remember to align the itemized text with the first line of an item within a list

## jaxlib 0.4.23

* Fixed a bug that caused verbose logging from the GPU compiler during
compilation.

## jax 0.4.22 (Dec 13, 2023)

* Deprecations
Expand Down
13 changes: 13 additions & 0 deletions third_party/xla/log.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/xla/service/gpu/gpu_compiler.cc b/xla/service/gpu/gpu_compiler.cc
index 302879c0f..9c55820c5 100644
--- a/xla/service/gpu/gpu_compiler.cc
+++ b/xla/service/gpu/gpu_compiler.cc
@@ -546,7 +546,7 @@ Status GpuCompiler::OptimizeHloModule(HloModule* hlo_module,

// LOG_LINES is used instead of LOG since the message can exceed the
// maximum line length, which results in the message being truncated.
- XLA_LOG_LINES(
+ XLA_VLOG_LINES(
1, absl::StrFormat("GpuCompilationEnvironment of hlo_module %s:\n%s",
hlo_module->name(), debug_options.DebugString()));

1 change: 1 addition & 0 deletions third_party/xla/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def repo():
sha256 = XLA_SHA256,
strip_prefix = "xla-{commit}".format(commit = XLA_COMMIT),
urls = tf_mirror_urls("https://github.com/openxla/xla/archive/{commit}.tar.gz".format(commit = XLA_COMMIT)),
patch_file = ["//third_party/xla:log.patch"],
)

# For development, one often wants to make changes to the TF repository as well
Expand Down

0 comments on commit b392622

Please sign in to comment.