Skip to content

Commit bf620a3

Browse files
committed
Add amdclang++ path to cmake prefix path in CMakeLists.txt
1 parent 651f5bc commit bf620a3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.jenkins/common.groovy

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s
1111
String buildStatic = staticLibrary ? '-DBUILD_SHARED_LIBS=OFF' : '-DBUILD_SHARED_LIBS=ON'
1212
String codeCovFlag = codeCoverage ? '-DCODE_COVERAGE=ON' : ''
1313
String cmake = platform.jenkinsLabel.contains('centos') ? 'cmake3' : 'cmake'
14-
String cmakePrefixPath = '-DCMAKE_PREFIX_PATH=/opt/rocm;/opt/rocm/llvm;/opt/rocm/bin'
1514
//Set CI node's gfx arch as target if PR, otherwise use default targets of the library
1615
String amdgpuTargets = env.BRANCH_NAME.startsWith('PR-') ? '-DAMDGPU_TARGETS=\$gfx_arch' : ''
1716

@@ -21,7 +20,7 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s
2120
mkdir -p build/${buildTypeDir} && cd build/${buildTypeDir}
2221
# gfxTargetParser reads gfxarch and adds target features such as xnack
2322
${auxiliary.gfxTargetParser()}
24-
${cmake} --toolchain=toolchain-linux.cmake ${cmakePrefixPath} ${buildTypeArg} ${buildStatic} ${amdgpuTargets} ${codeCovFlag} -DBUILD_TEST=ON -DBUILD_BENCHMARK=ON ../..
23+
${cmake} --toolchain=toolchain-linux.cmake ${buildTypeArg} ${buildStatic} ${amdgpuTargets} ${codeCovFlag} -DBUILD_TEST=ON -DBUILD_BENCHMARK=ON ../..
2524
make -j\$(nproc)
2625
"""
2726

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ if(WIN32)
204204
else()
205205
set(CMAKE_INSTALL_PREFIX "$ENV{ROCM_PATH}" CACHE PATH "Install path prefix, prepended onto install directories")
206206
#Adding CMAKE_PREFIX_PATH
207-
list( APPEND CMAKE_PREFIX_PATH $ENV{ROCM_PATH}/llvm $ENV{ROCM_PATH} )
207+
list( APPEND CMAKE_PREFIX_PATH $ENV{ROCM_PATH}/llvm $ENV{ROCM_PATH} $ENV{ROCM_PATH}/bin )
208208
if(NOT CPACK_PACKAGING_INSTALL_PREFIX)
209209
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
210210
endif()

0 commit comments

Comments
 (0)