diff --git a/test/gpu/native/studies/minibude/Bude.good b/test/gpu/native/studies/minibude/Bude.good index f0e50b9b09a4..d39e5f0f8e31 100644 --- a/test/gpu/native/studies/minibude/Bude.good +++ b/test/gpu/native/studies/minibude/Bude.good @@ -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%. diff --git a/test/gpu/native/studies/minibude/Bude.prediff b/test/gpu/native/studies/minibude/Bude.prediff new file mode 100755 index 000000000000..a60f1bc6ad92 --- /dev/null +++ b/test/gpu/native/studies/minibude/Bude.prediff @@ -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 diff --git a/test/gpu/native/studies/minibude/SKIPIF b/test/gpu/native/studies/minibude/SKIPIF index 8d87dec0d473..adadd40bf568 100755 --- a/test/gpu/native/studies/minibude/SKIPIF +++ b/test/gpu/native/studies/minibude/SKIPIF @@ -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