Skip to content

Commit

Permalink
revert x_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
liligwu committed Dec 12, 2023
1 parent d9cae30 commit f85b8cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 101 deletions.
22 changes: 11 additions & 11 deletions .github/scripts/fbgemm_gpu_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ 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 "==============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
Expand Down
90 changes: 0 additions & 90 deletions fbgemm_gpu/cmake/Hip.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,96 +18,6 @@ else()
set(HIP_ROOT_DIR $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{hip_DIR})
set(hip_DIR ${ROCM_PATH}/lib/cmake/hip)
else()
set(hip_DIR $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{AMDDeviceLibs_DIR})
set(AMDDeviceLibs_DIR ${ROCM_PATH}/lib/cmake/AMDDeviceLibs)
else()
set(AMDDeviceLibs_DIR $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{amd_comgr_DIR})
set(amd_comgr_DIR ${ROCM_PATH}/lib/cmake/amd_comgr)
else()
set(amd_comgr_DIR $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{hsa-runtime64_DIR})
set(hsa-runtime64_DIR ${ROCM_PATH}/lib/cmake/hsa-runtime64)
else()
set(hsa-runtime64_DIR $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{rocrand_DIR})
set(rocrand_DIR ${ROCM_PATH}/lib/cmake/rocrand)
else()
set(rocrand_DIR $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{miopen_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/miopen)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{hipfft_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/hipfft)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{rocfft_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/rocfft)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{rocblas_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/rocblas)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{rocsparse_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/rocsparse)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{hipcub_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/hipcub)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{hipblas_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/hipblas)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{hiprand_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/hiprand)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{rocm_smi_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/rocm_smi)
else()
set(miopen $ENV{ROCM_PATH})
endif()

if(NOT DEFINED ENV{rocthrust_DIR})
set(miopen ${ROCM_PATH}/lib/cmake/rocthrust)
else()
set(miopen $ENV{ROCM_PATH})
endif()

macro(torch_hip_get_arch_list store_var)
if(DEFINED ENV{PYTORCH_ROCM_ARCH})
set(_TMP $ENV{PYTORCH_ROCM_ARCH})
Expand Down

0 comments on commit f85b8cf

Please sign in to comment.