mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-06-27 17:01:10 -04:00
add cupbop test functionality (update CI workflow to use actions/cache@v3)
This commit is contained in:
parent
63b41f21c6
commit
cc56e8997a
2 changed files with 53 additions and 7 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Toolchain Directory
|
- name: Cache Toolchain Directory
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: tools
|
path: tools
|
||||||
key: ${{ runner.os }}-toolchain-v0.1
|
key: ${{ runner.os }}-toolchain-v0.1
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Third Party Directory
|
- name: Cache Third Party Directory
|
||||||
id: cache-thirdparty
|
id: cache-thirdparty
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: third_party
|
path: third_party
|
||||||
key: ${{ runner.os }}-thirdparty-v0.1
|
key: ${{ runner.os }}-thirdparty-v0.1
|
||||||
|
@ -79,7 +79,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Toolchain Directory
|
- name: Cache Toolchain Directory
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: tools
|
path: tools
|
||||||
key: ${{ runner.os }}-toolchain-v0.1
|
key: ${{ runner.os }}-toolchain-v0.1
|
||||||
|
@ -88,7 +88,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Third Party Directory
|
- name: Cache Third Party Directory
|
||||||
id: cache-thirdparty
|
id: cache-thirdparty
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: third_party
|
path: third_party
|
||||||
key: ${{ runner.os }}-thirdparty-v0.1
|
key: ${{ runner.os }}-thirdparty-v0.1
|
||||||
|
@ -117,7 +117,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm, vector]
|
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm, vector, cupbop]
|
||||||
xlen: [32, 64]
|
xlen: [32, 64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -130,7 +130,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Toolchain Directory
|
- name: Cache Toolchain Directory
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: tools
|
path: tools
|
||||||
key: ${{ runner.os }}-toolchain-v0.1
|
key: ${{ runner.os }}-toolchain-v0.1
|
||||||
|
@ -139,7 +139,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Third Party Directory
|
- name: Cache Third Party Directory
|
||||||
id: cache-thirdparty
|
id: cache-thirdparty
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: third_party
|
path: third_party
|
||||||
key: ${{ runner.os }}-thirdparty-v0.1
|
key: ${{ runner.os }}-thirdparty-v0.1
|
||||||
|
|
|
@ -403,6 +403,48 @@ vector()
|
||||||
echo "vector tests done!"
|
echo "vector tests done!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cupbop() {
|
||||||
|
|
||||||
|
echo "begin cupbop tests..."
|
||||||
|
|
||||||
|
if [ "$XLEN" == "32" ]; then
|
||||||
|
echo "cupbop tests skipped for 32-bit"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "downloading cupbop binaries..."
|
||||||
|
CUPBOP_URL="https://www.dropbox.com/scl/fi/qxiofb0ejfxoog9m7tmae/cupbop.zip?rlkey=kcboy03c08xcn6yizd4nv8h88&st=7yuqftef&dl=1"
|
||||||
|
|
||||||
|
wget -O cupbop.zip "${CUPBOP_URL}" || curl -L -o cupbop.zip "${CUPBOP_URL}"
|
||||||
|
unzip -o cupbop.zip -d tests/
|
||||||
|
rm cupbop.zip
|
||||||
|
|
||||||
|
echo "building simx runtime..."
|
||||||
|
make -C runtime/simx
|
||||||
|
|
||||||
|
PERF_CLASS=2
|
||||||
|
VORTEX_RUNTIME_DIR="runtime"
|
||||||
|
CUPBOP_RUNTIME_DIR="tests/cupbop/runtime"
|
||||||
|
|
||||||
|
tests=("bfs" "nn")
|
||||||
|
tests_args=("./graph20.txt" "./filelist.txt -r 10 -lat 30 -lng 90")
|
||||||
|
|
||||||
|
for i in "${!tests[@]}"; do
|
||||||
|
test="${tests[$i]}"
|
||||||
|
args="${tests_args[$i]}"
|
||||||
|
echo "running test: $test"
|
||||||
|
(
|
||||||
|
cd "tests/cupbop/$test" || exit
|
||||||
|
chmod +x "./host_${XLEN}.out"
|
||||||
|
LD_LIBRARY_PATH="../../../${CUPBOP_RUNTIME_DIR}:../../../${VORTEX_RUNTIME_DIR}/simx:../../../${VORTEX_RUNTIME_DIR}:${LD_LIBRARY_PATH}" \
|
||||||
|
./host_${XLEN}.out ${args}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "cupbop tests done!"
|
||||||
|
}
|
||||||
|
|
||||||
show_usage()
|
show_usage()
|
||||||
{
|
{
|
||||||
echo "Vortex Regression Test"
|
echo "Vortex Regression Test"
|
||||||
|
@ -459,6 +501,9 @@ while [ "$1" != "" ]; do
|
||||||
--vector )
|
--vector )
|
||||||
tests+=("vector")
|
tests+=("vector")
|
||||||
;;
|
;;
|
||||||
|
--cupbop )
|
||||||
|
tests+=("cupbop")
|
||||||
|
;;
|
||||||
--all )
|
--all )
|
||||||
tests=()
|
tests=()
|
||||||
tests+=("unittest")
|
tests+=("unittest")
|
||||||
|
@ -475,6 +520,7 @@ while [ "$1" != "" ]; do
|
||||||
tests+=("stress")
|
tests+=("stress")
|
||||||
tests+=("synthesis")
|
tests+=("synthesis")
|
||||||
tests+=("vector")
|
tests+=("vector")
|
||||||
|
tests+=("cupbop")
|
||||||
;;
|
;;
|
||||||
-h | --help )
|
-h | --help )
|
||||||
show_usage
|
show_usage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue