diff --git a/cmake/public/LoadHIP.cmake b/cmake/public/LoadHIP.cmake index 7c035fe7bfa05..1468cc9473b0a 100644 --- a/cmake/public/LoadHIP.cmake +++ b/cmake/public/LoadHIP.cmake @@ -83,6 +83,13 @@ ELSE() SET(ROCRAND_PATH $ENV{ROCRAND_PATH}) ENDIF() +# MIOPENGEMM +IF(NOT DEFINED ENV{MIOPENGEMM_PATH}) + SET(MIOPENGEMM_PATH ${ROCM_PATH}/miopengemm) +ELSE() + SET(MIOPENGEMM_PATH $ENV{MIOPENGEMM_PATH}) +ENDIF() + # MIOPEN_PATH IF(NOT DEFINED ENV{MIOPEN_PATH}) SET(MIOPEN_PATH ${ROCM_PATH}/miopen) @@ -133,6 +140,7 @@ IF(HIP_FOUND) set(rocrand_DIR ${ROCRAND_PATH}/lib/cmake/rocrand) set(hiprand_DIR ${HIPRAND_PATH}/lib/cmake/hiprand) set(rocblas_DIR ${ROCBLAS_PATH}/lib/cmake/rocblas) + set(miopengemm_DIR ${MIOPENGEMM_PATH}/lib/cmake/miopengemm) set(miopen_DIR ${MIOPEN_PATH}/lib/cmake/miopen) set(rocfft_DIR ${ROCFFT_PATH}/lib/cmake/rocfft) set(hipsparse_DIR ${HIPSPARSE_PATH}/lib/cmake/hipsparse) @@ -142,7 +150,7 @@ IF(HIP_FOUND) find_package_and_print_version(hiprand REQUIRED) find_package_and_print_version(rocblas REQUIRED) find_package_and_print_version(miopen REQUIRED) - find_package_and_print_version(miopengemm) + find_package_and_print_version(miopengemm REQUIRED) find_package_and_print_version(rocfft REQUIRED) #find_package_and_print_version(hipsparse REQUIRED) find_package_and_print_version(rocsparse REQUIRED) diff --git a/docker/caffe2/jenkins/common/install_rocm.sh b/docker/caffe2/jenkins/common/install_rocm.sh index 90d80902e0178..25d2f1da44663 100644 --- a/docker/caffe2/jenkins/common/install_rocm.sh +++ b/docker/caffe2/jenkins/common/install_rocm.sh @@ -25,7 +25,8 @@ install_ubuntu() { cxlactivitylogger \ rocsparse \ hipsparse \ - rocrand + rocrand \ + hip-thrust # HIP has a bug that drops DEBUG symbols in generated MakeFiles. # https://github.com/ROCm-Developer-Tools/HIP/pull/588 @@ -41,6 +42,8 @@ install_centos() { install_hip_thrust() { # Needed for now, will be replaced soon + # We are now (redundantly) installing the Thrust package into another location (/opt/rocm/include/thrust) which we will + # switch over to git clone --recursive https://github.com/ROCmSoftwarePlatform/Thrust.git /data/Thrust rm -rf /data/Thrust/thrust/system/cuda/detail/cub-hip git clone --recursive https://github.com/ROCmSoftwarePlatform/cub-hip.git /data/Thrust/thrust/system/cuda/detail/cub-hip