Skip to content

Commit 8b69d6a

Browse files
committed
rocm
1 parent 05aeff9 commit 8b69d6a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

deps/ReactantExtra/.bazelrc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,16 @@ build:cuda --@local_config_cuda//:cuda_compiler=nvcc
4444
# build:cuda --@local_config_nvshmem//:override_include_nvshmem_libs=true
4545
# build:cuda --@local_config_nvshmem//cuda:include_nvshmem_libs=true
4646

47-
build:rocm --repo_env TF_NEED_ROCM=1
48-
build:rocm --define=using_rocm=true
49-
build:rocm --define=using_rocm_hipcc=true
50-
build:rocm --action_env TF_ROCM_AMDGPU_TARGETS="gfx900,gfx906,gfx908,gfx90a,gfx1030"
5147

48+
build:rocm --crosstool_top=@local_config_rocm//crosstool:toolchain
49+
build:rocm --define=using_rocm=true --define=using_rocm_hipcc=true
50+
build:rocm --repo_env TF_NEED_ROCM=1
51+
build:rocm --action_env TF_ROCM_AMDGPU_TARGETS="gfx900,gfx906,gfx908,gfx90a,gfx940,gfx941,gfx942,gfx1030,gfx1100,gfx1200,gfx1201"
52+
53+
# Build with hipcc for ROCm and clang for the host.
54+
build:rocm --config=rocm_base
55+
build:rocm --action_env=TF_ROCM_CLANG="1"
56+
build:rocm --action_env=CLANG_COMPILER_PATH="/usr/lib/llvm-18/bin/clang"
57+
build:rocm --copt=-Wno-gnu-offsetof-extensions
58+
build:rocm --copt=-Qunused-arguments
59+
build:rocm --action_env=TF_HIPCC_CLANG="1"

0 commit comments

Comments
 (0)