Skip to content

Commit 2c81b47

Browse files
authored
Update test.sh
1 parent 8173368 commit 2c81b47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/phoenix/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ export TMPDIR=$currentdir
99
n_test_threads=8
1010

1111
build_opts=""
12-
if [ "$job_device" = "gpu" ]; then
12+
if [ "$device" = "gpu" ]; then
1313
build_opts="--gpu"
1414
fi
1515

1616
./mfc.sh test --dry-run -j $n_test_threads $build_opts
1717

18-
if [ "$job_device" = "gpu" ]; then
18+
if [ "$device" = "gpu" ]; then
1919
gpu_count=$(nvidia-smi -L | wc -l) # number of GPUs on node
2020
gpu_ids=$(seq -s ' ' 0 $(($gpu_count-1))) # 0,1,2,...,gpu_count-1
2121
device_opts="-g $gpu_ids"

0 commit comments

Comments
 (0)