diff --git a/.bazelrc b/.bazelrc index 968a49d493a4..d889b51552f9 100644 --- a/.bazelrc +++ b/.bazelrc @@ -160,7 +160,7 @@ build:win_clang --compiler=clang-cl build:rocm_base --crosstool_top=@local_config_rocm//crosstool:toolchain build:rocm_base --define=using_rocm=true --define=using_rocm_hipcc=true build:rocm_base --repo_env TF_NEED_ROCM=1 -build:rocm_base --action_env TF_ROCM_AMDGPU_TARGETS="gfx906,gfx908,gfx90a,gfx942,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201" +build:rocm_base --action_env TF_ROCM_AMDGPU_TARGETS="gfx906,gfx908,gfx90a,gfx942,gfx950,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201" # Build with hipcc for ROCm and clang for the host. build:rocm --config=rocm_base diff --git a/build/build.py b/build/build.py index 8ccc7114bf5c..8dcad96dd40b 100755 --- a/build/build.py +++ b/build/build.py @@ -241,7 +241,7 @@ def add_artifact_subcommand_arguments(parser: argparse.ArgumentParser): rocm_group.add_argument( "--rocm_amdgpu_targets", type=str, - default="gfx906,gfx908,gfx90a,gfx942,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201", + default="gfx906,gfx908,gfx90a,gfx942,gfx950,gfx1030,gfx1100,gfx1101,gfx1200,gfx1201", help="A comma-separated list of ROCm amdgpu targets to support.", ) diff --git a/build/rocm/Dockerfile.ms b/build/rocm/Dockerfile.ms index 8c13028f92f4..a621f710c82b 100644 --- a/build/rocm/Dockerfile.ms +++ b/build/rocm/Dockerfile.ms @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # Add target file to help determine which device(s) to build for -ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" +ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" ENV GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS} # Install ROCm diff --git a/build/rocm/build_wheels/Dockerfile.manylinux_2_28_x86_64.rocm b/build/rocm/build_wheels/Dockerfile.manylinux_2_28_x86_64.rocm index 782d50a1ec88..a300046fef13 100644 --- a/build/rocm/build_wheels/Dockerfile.manylinux_2_28_x86_64.rocm +++ b/build/rocm/build_wheels/Dockerfile.manylinux_2_28_x86_64.rocm @@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \ --mount=type=bind,source=build/rocm/tools/get_rocm.py,target=get_rocm.py \ python3 get_rocm.py --rocm-version=$ROCM_VERSION --job-name=$ROCM_BUILD_JOB --build-num=$ROCM_BUILD_NUM -ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" +ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" RUN printf '%s\n' > /opt/rocm/bin/target.lst ${GPU_DEVICE_TARGETS} # Install LLVM 18 and dependencies. diff --git a/build/rocm/docker/Dockerfile.jax-ubu22 b/build/rocm/docker/Dockerfile.jax-ubu22 index c83bac72dc0a..0d5438a10eb9 100644 --- a/build/rocm/docker/Dockerfile.jax-ubu22 +++ b/build/rocm/docker/Dockerfile.jax-ubu22 @@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # Add target file to help determine which device(s) to build for -ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" +ARG GPU_DEVICE_TARGETS="gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" ENV GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS} # Install ROCM diff --git a/build/rocm/docker/Dockerfile.jax-ubu24 b/build/rocm/docker/Dockerfile.jax-ubu24 index 07eef537cc28..8010f0fe99ee 100644 --- a/build/rocm/docker/Dockerfile.jax-ubu24 +++ b/build/rocm/docker/Dockerfile.jax-ubu24 @@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # Add target file to help determine which device(s) to build for -ARG GPU_DEVICE_TARGETS="gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" +ARG GPU_DEVICE_TARGETS="gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" ENV GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS} # Install ROCM diff --git a/build/rocm/setup.rocm.sh b/build/rocm/setup.rocm.sh index 2f14aac08366..1defd8c892fe 100755 --- a/build/rocm/setup.rocm.sh +++ b/build/rocm/setup.rocm.sh @@ -94,6 +94,6 @@ echo $ROCM_PATH echo $GPU_DEVICE_TARGETS # Ensure the ROCm target list is set up -GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS:-"gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"} +GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS:-"gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201"} printf '%s\n' ${GPU_DEVICE_TARGETS} | tee -a "$ROCM_PATH/bin/target.lst" touch "${ROCM_PATH}/.info/version" diff --git a/build/rocm/tools/build_wheels.py b/build/rocm/tools/build_wheels.py index 36d2c35d2f36..4c7162eb474e 100644 --- a/build/rocm/tools/build_wheels.py +++ b/build/rocm/tools/build_wheels.py @@ -35,7 +35,7 @@ LOG = logging.getLogger(__name__) -GPU_DEVICE_TARGETS = "gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" +GPU_DEVICE_TARGETS = "gfx906 gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201" def build_rocm_path(rocm_version_str): diff --git a/third_party/xla/workspace.bzl b/third_party/xla/workspace.bzl index 2b25f1628500..5e51ce4dd05f 100644 --- a/third_party/xla/workspace.bzl +++ b/third_party/xla/workspace.bzl @@ -21,8 +21,8 @@ load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") # curl -L https://github.com/openxla/xla/archive/.tar.gz | sha256sum # and update XLA_SHA256 with the result. -XLA_COMMIT = "5a5a4c876abeee9c8bd1f4d40d304e399cc02ca8" -XLA_SHA256 = "8341772675ebf86519e8f7b85ce07af15eb3f38bc2fc5d23612902407aeca4b2" +XLA_COMMIT = "481f22c127b18e169ab8a0044e7f28b101a3ebfd" +XLA_SHA256 = "318dbd169e872e31297e67ae320eb47a6be9d5328d931d86e3cf5e51581a2259" def repo(): tf_http_archive(