Skip to content

Commit fcee17f

Browse files
authored
Update bench.sh
1 parent 99fd4c2 commit fcee17f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/phoenix/bench.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
n_ranks=12
44

5-
export TMPDIR=/storage/home/hcoda1/6/sbryngelson3/scratch/runner-tmp
5+
rand=""
6+
for i in {1..10}; do
7+
rand="${rand}$((RANDOM % 10))"
8+
done
9+
TMPDIR=/tmp/$rand
10+
mkdir $TMPDIR
11+
chmod 777 $TMPDIR
12+
export TMPDIR=$TMPDIR
613

714
if [ "$job_device" == "gpu" ]; then
815
n_ranks=$(nvidia-smi -L | wc -l) # number of GPUs on node

0 commit comments

Comments
 (0)