Update install.sh (#317)
* Update install.sh Install.sh having hard code like /opt/rocm/bin/hipcc for rocm_path and default_path=/opt/rocm This will work only when we have standalone rocm installed. If anyone has installed, side-by-side, they will face below error. Can we keep like ROCM_PATH=$ROCM_PATH instead of “default_path” as variable name and ROCM_BIN_PATH=$ROCM_PATH/bin ,rocm_path can be replaced with ROCM_BIN_PATH. This way, we will have option to export ROCM_PATH as env variable as per need and use the script. I have also tried locally, it’s working. ROCM_PATH is common variable name, we are having. If you are ok, I can also submit the PR for the same. Error when side-by-side install is done for driver. # ./install.sh -dtr 2>&1 | tee /dockerx/6519_rccl-test.log CMake Error at /usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:48 (message): Could not find compiler set in environment variable CXX: /opt/rocm/bin/hipcc. Call Stack (most recent call first): CMakeLists.txt:12 (project) CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/root/driver/rccl/build/release/CMakeFiles/CMakeOutput.log". * Update install.sh Removed ROCM_PATH=$ROCM_PATH * Update install.sh Set default value if external value is not supplied.
Этот коммит содержится в:
+4
-5
@@ -23,9 +23,8 @@ function display_help()
|
||||
# #################################################
|
||||
# global variables
|
||||
# #################################################
|
||||
default_path=/opt/rocm
|
||||
build_package=false
|
||||
install_prefix=$default_path
|
||||
ROCM_PATH=${ROCM_PATH:="/opt/rocm"}
|
||||
build_tests=false
|
||||
run_tests=false
|
||||
run_tests_all=false
|
||||
@@ -103,7 +102,7 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
rocm_path=/opt/rocm/bin
|
||||
ROCM_BIN_PATH=$ROCM_PATH/bin
|
||||
|
||||
# /etc/*-release files describe the system
|
||||
if [[ -e "/etc/os-release" ]]; then
|
||||
@@ -177,9 +176,9 @@ fi
|
||||
check_exit_code "$?"
|
||||
|
||||
if ($build_tests) || (($run_tests) && [[ ! -f ./test/UnitTests ]]); then
|
||||
CXX=$rocm_path/$compiler $cmake_executable $cmake_common_options -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$install_prefix ../../.
|
||||
CXX=$ROCM_BIN_PATH/$compiler $cmake_executable $cmake_common_options -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$ROCM_PATH ../../.
|
||||
else
|
||||
CXX=$rocm_path/$compiler $cmake_executable $cmake_common_options -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$install_prefix ../../.
|
||||
CXX=$ROCM_BIN_PATH/$compiler $cmake_executable $cmake_common_options -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$ROCM_PATH ../../.
|
||||
fi
|
||||
check_exit_code "$?"
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user