From b063b55ba45f518f0310676a15107da0b658da58 Mon Sep 17 00:00:00 2001 From: Sam Wu <22262939+samjwu@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:03:13 -0700 Subject: [PATCH] Add amdclang++ path to cmake prefix path --- .jenkins/common.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.jenkins/common.groovy b/.jenkins/common.groovy index 65a9a90ec..d059d3249 100644 --- a/.jenkins/common.groovy +++ b/.jenkins/common.groovy @@ -11,6 +11,7 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s String buildStatic = staticLibrary ? '-DBUILD_SHARED_LIBS=OFF' : '-DBUILD_SHARED_LIBS=ON' String codeCovFlag = codeCoverage ? '-DCODE_COVERAGE=ON' : '' String cmake = platform.jenkinsLabel.contains('centos') ? 'cmake3' : 'cmake' + String cmakePrefixPath = '-DMAKE_PREFIX_PATH=/opt/rocm/bin' //Set CI node's gfx arch as target if PR, otherwise use default targets of the library String amdgpuTargets = env.BRANCH_NAME.startsWith('PR-') ? '-DAMDGPU_TARGETS=\$gfx_arch' : '' @@ -20,7 +21,7 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s mkdir -p build/${buildTypeDir} && cd build/${buildTypeDir} # gfxTargetParser reads gfxarch and adds target features such as xnack ${auxiliary.gfxTargetParser()} - ${cmake} --toolchain=toolchain-linux.cmake ${buildTypeArg} ${buildStatic} ${amdgpuTargets} ${codeCovFlag} -DBUILD_TEST=ON -DBUILD_BENCHMARK=ON ../.. + ${cmake} --toolchain=toolchain-linux.cmake ${cmakePrefixPath} ${buildTypeArg} ${buildStatic} ${amdgpuTargets} ${codeCovFlag} -DBUILD_TEST=ON -DBUILD_BENCHMARK=ON ../.. make -j\$(nproc) """