Skip to content

Commit a3864ea

Browse files
committed
gfx950 platform support
1 parent a0fc973 commit a3864ea

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ build:win_clang --compiler=clang-cl
160160
build:rocm_base --crosstool_top=@local_config_rocm//crosstool:toolchain
161161
build:rocm_base --define=using_rocm=true --define=using_rocm_hipcc=true
162162
build:rocm_base --repo_env TF_NEED_ROCM=1
163-
build:rocm_base --action_env TF_ROCM_AMDGPU_TARGETS="gfx906,gfx908,gfx90a,gfx942,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201"
163+
build:rocm_base --action_env TF_ROCM_AMDGPU_TARGETS="gfx906,gfx908,gfx90a,gfx942,gfx950,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201"
164164

165165
# Build with hipcc for ROCm and clang for the host.
166166
build:rocm --config=rocm_base

build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def add_artifact_subcommand_arguments(parser: argparse.ArgumentParser):
241241
rocm_group.add_argument(
242242
"--rocm_amdgpu_targets",
243243
type=str,
244-
default="gfx906,gfx908,gfx90a,gfx942,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201",
244+
default="gfx906,gfx908,gfx90a,gfx942,gfx950,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201",
245245
help="A comma-separated list of ROCm amdgpu targets to support.",
246246
)
247247

build/rocm/Dockerfile.ms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
1313
&& rm -rf /var/lib/apt/lists/*
1414
1515
# Add target file to help determine which device(s) to build for
16-
ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
16+
ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
1717
ENV GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS}
1818
1919
# Install ROCm

build/rocm/build_wheels/Dockerfile.manylinux_2_28_x86_64.rocm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \
1212
--mount=type=bind,source=build/rocm/tools/get_rocm.py,target=get_rocm.py \
1313
python3 get_rocm.py --rocm-version=$ROCM_VERSION --job-name=$ROCM_BUILD_JOB --build-num=$ROCM_BUILD_NUM
1414

15-
ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
15+
ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
1616
RUN printf '%s\n' > /opt/rocm/bin/target.lst ${GPU_DEVICE_TARGETS}
1717

1818
# Install LLVM 18 and dependencies.

build/rocm/docker/Dockerfile.jax-ubu22

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
1010
&& rm -rf /var/lib/apt/lists/*
1111

1212
# Add target file to help determine which device(s) to build for
13-
ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
13+
ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
1414
ENV GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS}
1515

1616
# Install ROCM

build/rocm/docker/Dockerfile.jax-ubu24

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
1010
&& rm -rf /var/lib/apt/lists/*
1111

1212
# Add target file to help determine which device(s) to build for
13-
ARG GPU_DEVICE_TARGETS="gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
13+
ARG GPU_DEVICE_TARGETS="gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
1414
ENV GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS}
1515

1616
# Install ROCM

build/rocm/setup.rocm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ echo $ROCM_PATH
9494
echo $GPU_DEVICE_TARGETS
9595

9696
# Ensure the ROCm target list is set up
97-
GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS:-"gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"}
97+
GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS:-"gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"}
9898
printf '%s\n' ${GPU_DEVICE_TARGETS} | tee -a "$ROCM_PATH/bin/target.lst"
9999
touch "${ROCM_PATH}/.info/version"

build/rocm/tools/build_wheels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
LOG = logging.getLogger(__name__)
3636

3737

38-
GPU_DEVICE_TARGETS = "gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
38+
GPU_DEVICE_TARGETS = "gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"
3939

4040

4141
def build_rocm_path(rocm_version_str):

third_party/xla/workspace.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
2121
# curl -L https://github.com/openxla/xla/archive/<git hash>.tar.gz | sha256sum
2222
# and update XLA_SHA256 with the result.
2323

24-
XLA_COMMIT = "5a5a4c876abeee9c8bd1f4d40d304e399cc02ca8"
25-
XLA_SHA256 = "8341772675ebf86519e8f7b85ce07af15eb3f38bc2fc5d23612902407aeca4b2"
24+
XLA_COMMIT = "481f22c127b18e169ab8a0044e7f28b101a3ebfd"
25+
XLA_SHA256 = "318dbd169e872e31297e67ae320eb47a6be9d5328d931d86e3cf5e51581a2259"
2626

2727
def repo():
2828
tf_http_archive(

0 commit comments

Comments
 (0)