Skip to content

Commit

Permalink
move PATH overwrite to prepare_fbgemm_gpu_build
Browse files Browse the repository at this point in the history
  • Loading branch information
liligwu committed Dec 12, 2023
1 parent fb6d601 commit fa668e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .github/scripts/fbgemm_gpu_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ prepare_fbgemm_gpu_build () {
# shellcheck disable=SC2155
local env_prefix=$(env_name_or_prefix "${env_name}")

echo "==============old path"
echo $PATH
new_path="$PATH:/opt/rocm/llvm/bin:\
/opt/rocm/opencl/bin:\
/opt/rocm/hip/bin:\
/opt/rocm/hcc/bin:\
/opt/rocm/bin
"
echo "==============new path"
echo $new_path
print_exec conda env config vars set ${env_prefix} PATH="$new_path"

echo "[BUILD] Installing other build dependencies ..."
# shellcheck disable=SC2086
(exec_with_retries 3 conda run --no-capture-output ${env_prefix} python -m pip install -r requirements.txt) || return 1
Expand Down
12 changes: 0 additions & 12 deletions .github/scripts/utils_pytorch.bash
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,6 @@ install_pytorch_pip () {
# shellcheck disable=SC2155
local env_prefix=$(env_name_or_prefix "${env_name}")

echo "==============old path"
echo $PATH
new_path="$PATH:/opt/rocm/llvm/bin:\
/opt/rocm/opencl/bin:\
/opt/rocm/hip/bin:\
/opt/rocm/hcc/bin:\
/opt/rocm/bin
"
echo "==============new path"
echo $new_path
print_exec conda env config vars set ${env_prefix} PATH="$new_path"

# Install the package from PyTorch PIP (not PyPI)
install_from_pytorch_pip "${env_name}" torch "${pytorch_version}" "${pytorch_variant_type}" "${pytorch_variant_version}" || return 1

Expand Down

0 comments on commit fa668e8

Please sign in to comment.