Skip to content

Commit

Permalink
Fix miniBude nightly testing (chapel-lang#24580)
Browse files Browse the repository at this point in the history
Fixes a few issues with the test configuration for miniBude in nightly
testing.

- SKIPIF testing for CHPL_GPU=cpu
- filter output when running on multiple gpus


Tested on system with 1 gpu, 2 gpus, and with CHPL_GPU=cpu

[Not reviewed, trivial]
  • Loading branch information
jabraham17 authored Mar 11, 2024
2 parents 7660c5f + fb554e2 commit db5a05f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/gpu/native/studies/minibude/Bude.good
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config:
wgsize: [64]
device: { index: 0, name: "Chapel CPU" }

Running Chapel on 1 GPU
Running Chapel on NN GPUs

Largest difference was less than 0.020%.

5 changes: 5 additions & 0 deletions test/gpu/native/studies/minibude/Bude.prediff
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

# filter number of gpus run on from output
cat $2 | sed 's/Running Chapel on [0-9]\{1,\} GPUs\{0,1\}/Running Chapel on NN GPUs/' > $2.prediff.tmp
mv $2.prediff.tmp $2
6 changes: 6 additions & 0 deletions test/gpu/native/studies/minibude/SKIPIF
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env bash

# skip if using CHPL_GPU=cpu
if [ "$CHPL_GPU" = "cpu" ]; then
echo "True"
exit
fi

CWD=$(cd $(dirname ${BASH_SOURCE[0]}) ; pwd)

# We're currently using Josh's fork, at some point this may get integrated into
Expand Down

0 comments on commit db5a05f

Please sign in to comment.