Skip to content

Commit

Permalink
Merge pull request #2773 from ROCm/r2.14-rocm-enhanced_use_generic_ro…
Browse files Browse the repository at this point in the history
…cm_path

Use `/opt/rocm/` for ROCM_INSTALL_DIR environment variable
  • Loading branch information
hsharsha authored Nov 28, 2024
2 parents 44bf582 + 44012b7 commit 6a392e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build_rocm_python3
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ done
shift "$((OPTIND-1))"

# First positional argument (if any) specifies the ROCM_INSTALL_DIR
ROCM_INSTALL_DIR=/opt/rocm-6.1.2
ROCM_INSTALL_DIR=/opt/rocm/
if [[ -n $1 ]]; then
ROCM_INSTALL_DIR=$1
fi
Expand Down
2 changes: 1 addition & 1 deletion rocm_docs/tensorflow-build-from-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For details of the ROCm instructions, please refer to the [ROCm QuickStart Insta

To build with ROCm3.10, set the following environment variables, and add those environment variables at the end of ~/.bashrc
```
export ROCM_PATH=/opt/rocm-6.1.2
export ROCM_PATH=/opt/rocm/
export HCC_HOME=$ROCM_PATH/hcc
export HIP_PATH=$ROCM_PATH/hip
export PATH=$HCC_HOME/bin:$HIP_PATH/bin:$PATH
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/ci_build/Dockerfile.rocm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MAINTAINER Jeff Poznanovic <[email protected]>
ARG ROCM_DEB_REPO=https://repo.radeon.com/rocm/apt/6.1.2/
ARG ROCM_BUILD_NAME=ubuntu
ARG ROCM_BUILD_NUM=main
ARG ROCM_PATH=/opt/rocm-6.1.2
ARG ROCM_PATH=/opt/rocm/
ARG GPU_DEVICE_TARGETS="gfx900 gfx906 gfx908 gfx90a gfx940 gfx941 gfx942 gfx1030 gfx1100"

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/ci_build/linux/rocm/run_gpu_multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ -n $1 ]]; then
ROCM_INSTALL_DIR=$1
else
if [[ -z "${ROCM_PATH}" ]]; then
ROCM_INSTALL_DIR=/opt/rocm-6.1.2
ROCM_INSTALL_DIR=/opt/rocm/
else
ROCM_INSTALL_DIR=$ROCM_PATH
fi
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/ci_build/linux/rocm/run_gpu_single.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ -n $1 ]]; then
ROCM_INSTALL_DIR=$1
else
if [[ -z "${ROCM_PATH}" ]]; then
ROCM_INSTALL_DIR=/opt/rocm-6.1.2
ROCM_INSTALL_DIR=/opt/rocm/
else
ROCM_INSTALL_DIR=$ROCM_PATH
fi
Expand Down

0 comments on commit 6a392e3

Please sign in to comment.