Skip to content

Commit 17ea1cd

Browse files
authored
Merge pull request vortexgpgpu#234 from CharliePu/master
CUPBOP CI Integration
2 parents 332e8ee + 09862be commit 17ea1cd

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
strategy:
118118
fail-fast: false
119119
matrix:
120-
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm, vector]
120+
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm, vector, cupbop]
121121
xlen: [32, 64]
122122

123123
steps:

ci/regression.sh.in

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,48 @@ vector()
403403
echo "vector tests done!"
404404
}
405405

406+
cupbop() {
407+
408+
echo "begin cupbop tests..."
409+
410+
if [ "$XLEN" == "32" ]; then
411+
echo "cupbop tests skipped for 32-bit"
412+
return
413+
fi
414+
415+
416+
echo "downloading cupbop binaries..."
417+
CUPBOP_URL="https://www.dropbox.com/scl/fi/qxiofb0ejfxoog9m7tmae/cupbop.zip?rlkey=kcboy03c08xcn6yizd4nv8h88&st=7yuqftef&dl=1"
418+
419+
wget -O cupbop.zip "${CUPBOP_URL}" || curl -L -o cupbop.zip "${CUPBOP_URL}"
420+
unzip -o cupbop.zip -d tests/
421+
rm cupbop.zip
422+
423+
echo "building simx runtime..."
424+
make -C runtime/simx
425+
426+
PERF_CLASS=2
427+
VORTEX_RUNTIME_DIR="runtime"
428+
CUPBOP_RUNTIME_DIR="tests/cupbop/runtime"
429+
430+
tests=("bfs" "nn")
431+
tests_args=("./graph20.txt" "./filelist.txt -r 10 -lat 30 -lng 90")
432+
433+
for i in "${!tests[@]}"; do
434+
test="${tests[$i]}"
435+
args="${tests_args[$i]}"
436+
echo "running test: $test"
437+
(
438+
cd "tests/cupbop/$test" || exit
439+
chmod +x "./host_${XLEN}.out"
440+
LD_LIBRARY_PATH="../../../${CUPBOP_RUNTIME_DIR}:../../../${VORTEX_RUNTIME_DIR}/simx:../../../${VORTEX_RUNTIME_DIR}:${LD_LIBRARY_PATH}" \
441+
./host_${XLEN}.out ${args}
442+
)
443+
done
444+
445+
echo "cupbop tests done!"
446+
}
447+
406448
show_usage()
407449
{
408450
echo "Vortex Regression Test"
@@ -459,6 +501,9 @@ while [ "$1" != "" ]; do
459501
--vector )
460502
tests+=("vector")
461503
;;
504+
--cupbop )
505+
tests+=("cupbop")
506+
;;
462507
--all )
463508
tests=()
464509
tests+=("unittest")
@@ -475,6 +520,7 @@ while [ "$1" != "" ]; do
475520
tests+=("stress")
476521
tests+=("synthesis")
477522
tests+=("vector")
523+
tests+=("cupbop")
478524
;;
479525
-h | --help )
480526
show_usage

0 commit comments

Comments
 (0)