Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaise Tine committed Nov 16, 2020
1 parent 61add25 commit 3e1fe66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ script:
- ci/blackbox.sh -run_2c
- ci/blackbox.sh -run_4c
- ci/blackbox.sh -run_4c_l2
#- travis_wait 30 ci/blackbox.sh -run_8c_2l2
#- travis_wait 30 ci/blackbox.sh -run_4c_2l2_l3
#- travis_wait 30 ci/blackbox.sh -run_8c_4l2_l3

Expand Down
17 changes: 3 additions & 14 deletions ci/blackbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,19 @@ run_4c_l2()
make -C benchmarks/opencl/sgemm run-vlsim
}

run_8c_2l2()
{
# test 8 cores with 2xL2
make -C driver/opae/vlsim clean
CONFIGS="-DNUM_CLUSTERS=2 -DNUM_CORES=4 -DL2_ENABLE=1" make -C driver/opae/vlsim > /dev/null 2>&1
make -C benchmarks/opencl/sgemm run-vlsim
}

run_4c_2l2_l3()
{
# test 4 cores with L2 and L3
make -C driver/opae/vlsim clean
CONFIGS="-DNUM_CLUSTERS=2 -DNUM_CORES=2 -DL2_ENABLE=1 -DL3_ENABLE=1" make -C driver/opae/vlsim > /dev/null 2>&1
CONFIGS="-DNUM_CLUSTERS=2 -DNUM_CORES=2 -DL2_ENABLE=1" make -C driver/opae/vlsim > /dev/null 2>&1
make -C benchmarks/opencl/sgemm run-vlsim
}

run_8c_4l2_l3()
{
# test 8 cores with L2 and L3
make -C driver/opae/vlsim clean
CONFIGS="-DNUM_CLUSTERS=4 -DNUM_CORES=2 -DL2_ENABLE=1 -DL3_ENABLE=1" make -C driver/opae/vlsim > /dev/null 2>&1
CONFIGS="-DNUM_CLUSTERS=4 -DNUM_CORES=2 -DL2_ENABLE=1" make -C driver/opae/vlsim > /dev/null 2>&1
make -C benchmarks/opencl/sgemm run-vlsim
}

Expand All @@ -77,7 +69,7 @@ run_scope()

usage()
{
echo "usage: blackbox [[-run_1c] [-run_2c] [-run_4c] [-run_4c_l2] [-run_8c_2l2] [-run_4c_2l2_l3] [-run_8c_4l2_l3] [-run_debug] [-run_scope] [-all] [-h|--help]]"
echo "usage: blackbox [[-run_1c] [-run_2c] [-run_4c] [-run_4c_l2] [-run_4c_2l2_l3] [-run_8c_4l2_l3] [-run_debug] [-run_scope] [-all] [-h|--help]]"
}

while [ "$1" != "" ]; do
Expand All @@ -90,8 +82,6 @@ while [ "$1" != "" ]; do
;;
-run_4c_l2 ) run_4c_l2
;;
-run_8c_2l2 ) run_8c_2l2
;;
-run_4c_2l2_l3 ) run_4c_2l2_l3
;;
-run_8c_4l2_l3 ) run_8c_4l2_l3
Expand All @@ -104,7 +94,6 @@ while [ "$1" != "" ]; do
run_2c
run_4c
run_4c_l2
run_8c_2l2
run_4c_2l2_l3
run_8c_4l2_l3
run_debug
Expand Down

0 comments on commit 3e1fe66

Please sign in to comment.