Skip to content

Commit d660f39

Browse files
committed
gfx950 platform support
1 parent a0fc973 commit d660f39

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
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):

0 commit comments

Comments
 (0)