Skip to content

Commit b063b55

Browse files
committed
Add amdclang++ path to cmake prefix path
1 parent dc3656f commit b063b55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.jenkins/common.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ 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 = '-DMAKE_PREFIX_PATH=/opt/rocm/bin'
1415
//Set CI node's gfx arch as target if PR, otherwise use default targets of the library
1516
String amdgpuTargets = env.BRANCH_NAME.startsWith('PR-') ? '-DAMDGPU_TARGETS=\$gfx_arch' : ''
1617

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

0 commit comments

Comments
 (0)