Skip to content

Commit

Permalink
CTest - Add LD Library Path (#48)
Browse files Browse the repository at this point in the history
* CTest - Add LD Library Path

* CTest - Updates

* Jenkins - Fix ENV Path

* CTEST - Updates to Jenkins

* RHEL - Fix
  • Loading branch information
kiritigowda authored Aug 8, 2023
1 parent 78c25b2 commit 568e9b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .jenkins/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s
String buildTypeDir = debug ? 'debug' : 'release'
String backend = 'HIP'
String enableSCL = 'echo build-rocAL'
String libLocation = ''

if (platform.jenkinsLabel.contains('centos')) {
backend = 'CPU'
if (platform.jenkinsLabel.contains('centos7')) {
enableSCL = 'source scl_source enable llvm-toolset-7'
}
}
else if (platform.jenkinsLabel.contains('rhel')) {
libLocation = ':/usr/local/lib'
}
else if (platform.jenkinsLabel.contains('ubuntu20')) {
backend = 'OCL'
}
Expand All @@ -30,7 +34,7 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s
make -j\$(nproc)
sudo cmake --build . --target PyPackageInstall
sudo make install
make test ARGS="-VV"
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/rocm/lib${libLocation} make test ARGS="-VV"
sudo make package
"""

Expand Down

0 comments on commit 568e9b9

Please sign in to comment.