From 704d860947ff22037401bcddbea025f7d1e9390f Mon Sep 17 00:00:00 2001 From: Jason Furmanek Date: Mon, 14 Apr 2025 21:59:11 +0000 Subject: [PATCH] Add offload-compress hipcc flag --- .bazelrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bazelrc b/.bazelrc index 06fdb78d6540f5..18451768215dca 100644 --- a/.bazelrc +++ b/.bazelrc @@ -294,6 +294,7 @@ build:rocm --config=rocm_base build:rocm --config=release_cpu_linux_base build:rocm --action_env=CLANG_COMPILER_PATH="/usr/lib/llvm-17/bin/clang" build:rocm --action_env=TF_ROCM_CLANG="1" +build:rocm --action_env=HIPCC_COMPILE_FLAGS_APPEND="--offload-compress" build:rocm --linkopt="-fuse-ld=lld" # We have some invalid linker scripts in the build, # so we need to disable this check