Adding check for chrpath for unit tests

[ROCm/rccl commit: 248e1d61cc]
This commit is contained in:
Gilbert Lee
2019-05-17 17:13:40 +00:00
parent 0e17bed9e6
commit edf1a1e9c1
+6
View File
@@ -4,6 +4,12 @@ if(BUILD_TESTS)
message("Going to build unit tests (Installed in /test/UnitTests)")
# chrpath is required to properly set rpath for the UnitTests executable
find_program(CHRPATH chrpath)
if(NOT CHRPATH)
message(FATAL_ERROR "chrpath is required for UnitTests. Please install (e.g. sudo apt-get install chrpath)")
endif()
# OpenMP is used to drive GPUs (one per thread)
find_package(OpenMP REQUIRED)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")