diff options
-rw-r--r-- | jenkinsfiles/RHEL_Check.groovy | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/jenkinsfiles/RHEL_Check.groovy b/jenkinsfiles/RHEL_Check.groovy index f8215fb7d002..63ef59d0ae15 100644 --- a/jenkinsfiles/RHEL_Check.groovy +++ b/jenkinsfiles/RHEL_Check.groovy @@ -214,16 +214,17 @@ pipeline { } } - stage('Check_tests') { + stage('Tests_dpcpp_gpu_cxx_17') { steps { timeout(time: 2, unit: 'HOURS') { script { try { - dir("./src") { - withEnv(readFile('../envs_tobe_loaded.txt').split('\n') as List) { + dir("./src/build") { + withEnv(readFile('../../envs_tobe_loaded.txt').split('\n') as List) { sh script: """ + rm -rf * export PATH=/usr/bin/:$PATH - cmake -DCMAKE_CXX_COMPILER=dpcpp -DCMAKE_CXX_STANDARD=17 -DONEDPL_BACKEND=dpcpp -DONEDPL_DEVICE_TYPE=GPU -DCMAKE_BUILD_TYPE=release . + cmake -DCMAKE_CXX_COMPILER=dpcpp -DCMAKE_CXX_STANDARD=17 -DONEDPL_BACKEND=dpcpp -DONEDPL_DEVICE_TYPE=GPU -DCMAKE_BUILD_TYPE=release .. make VERBOSE=1 build-all -j`nproc` -k || true ctest --output-on-failure --timeout ${TEST_TIMEOUT} """, label: "all tests" @@ -245,6 +246,39 @@ pipeline { } } + stage('Tests_dpcpp_fpga_emu_cxx_17') { + steps { + timeout(time: 2, unit: 'HOURS') { + script { + try { + dir("./src/build") { + withEnv(readFile('../../envs_tobe_loaded.txt').split('\n') as List) { + def TESTS="merge.pass copy_if.pass remove_copy.pass adjacent_find.pass all_of.pass equal.pass for_each.pass minmax_element.pass set.pass partial_sort_copy.pass sort.pass transform_reduce.pass transform_scan.pass" + sh script: """ + rm -rf * + export PATH=/usr/bin/:$PATH + cmake -DCMAKE_CXX_COMPILER=dpcpp -DCMAKE_CXX_STANDARD=17 -DONEDPL_BACKEND=dpcpp -DONEDPL_DEVICE_TYPE=FPGA_EMU -DCMAKE_BUILD_TYPE=release .. + make VERBOSE=1 ${TESTS} -k || true + ctest -R \"^(`echo ${TESTS} | sed 's/ /|/g'`)\$\" --output-on-failure --timeout ${TEST_TIMEOUT} + """, label: "run FPGA test suite" + } + + } + } + catch(e) { + build_ok = false + echo "Exception is" + e.toString() + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + sh script: """ + exit -1 + """ + } + } + } + } + } + } + stage('Check_Samples') { steps { timeout(time: 1, unit: 'HOURS'){ |