[fix] Jenkinsfile: build for slambench
@@ -152,24 +152,24 @@ void buildAndTest(String JDK, String tornadoProfile) {
}
stage('Clone & Build KFusion') {
timeout(time: 5, unit: 'MINUTES') {
- sh 'cd /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor && git reset HEAD --hard && git fetch && git pull origin master && mvn clean install -DskipTests'
+ // TODO Remove the single backend build once the slambench compilation failure is fixed.
+ sh "make ${tornadoProfile} BACKEND=opencl"
+ sh 'cd ${KFUSION_ROOT} && git reset HEAD --hard && git fetch && git pull origin master && mvn clean install -DskipTests'
}
}
stage('OpenCL: Run KFusion') {
sleep 5
timeout(time: 5, unit: 'MINUTES') {
- sh 'ps -ef | grep $JAVA_HOME | grep -v grep | awk \'{print $2}\' | xargs -r kill -9'
- sh "cd /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor && sed -i 's/kfusion.tornado.platform=0/kfusion.tornado.platform=1/' conf/traj2.settings"
- sh 'cd /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor && kfusion kfusion.tornado.Benchmark /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor/conf/traj2.settings'
+ sh 'cd ${KFUSION_ROOT} && kfusion kfusion.tornado.Benchmark ${KFUSION_ROOT}/conf/traj2.settings'
}
}
stage('PTX: Run KFusion') {
sleep 5
timeout(time: 5, unit: 'MINUTES') {
- sh 'ps -ef | grep $JAVA_HOME | grep -v grep | awk \'{print $2}\' | xargs -r kill -9'
- sh "cd /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor && sed -i 's/kfusion.tornado.backend=OpenCL/kfusion.tornado.backend=PTX/' conf/kfusion.settings"
- sh "cd /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor && sed -i 's/kfusion.tornado.platform=1/kfusion.tornado.platform=0/' conf/traj2.settings"
- sh 'cd /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor && kfusion kfusion.tornado.Benchmark /var/lib/jenkins/workspace/Slambench/slambench-tornado-refactor/conf/traj2.settings'
+ // TODO Remove the single backend build once the slambench compilation failure is fixed.
+ sh "cd ${TORNADO_ROOT} make ${tornadoProfile} BACKEND=ptx"
+ sh "cd ${KFUSION_ROOT} && sed -i 's/kfusion.tornado.backend=OpenCL/kfusion.tornado.backend=PTX/' conf/kfusion.settings"
+ sh 'cd ${KFUSION_ROOT} && kfusion kfusion.tornado.Benchmark ${KFUSION_ROOT}/conf/traj2.settings'
}
}
}
