Skip to content

Commit

Permalink
add separate good file for cpu-as-device
Browse files Browse the repository at this point in the history
---
Signed-off-by: Andy Stone <[email protected]>
  • Loading branch information
stonea committed Oct 24, 2023
1 parent f462c76 commit a799762
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions test/gpu/native/diags.cpu.good
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
warning: The prototype GPU support implies --no-checks. This may impact debuggability. To suppress this warning, compile with --no-checks explicitly
Start
0 (cpu): diags.chpl:nn: allocate xxB of domain(1,int(64),one) at 0xPREDIFFED
0 (cpu): diags.chpl:nn: allocate xxB of [domain(1,int(64),one)] int(64) at 0xPREDIFFED
0 (cpu): diags.chpl:nn: allocate xxB of array elements at 0xPREDIFFED
0 (cpu): diags.chpl:nn: allocate xxB of _EndCount(atomic int(64),int(64)) at 0xPREDIFFED
0 (cpu): diags.chpl:nn: free xxB of _EndCount(atomic int(64),int(64)) at 0xPREDIFFED
0 (gpu 0): diags.chpl:nn: allocate xxB of [domain(1,int(64),one)] int(64) at 0xPREDIFFED
0 (gpu 0): diags.chpl:nn: allocate xxB of array elements at 0xPREDIFFED
0 (gpu 0): diags.chpl:nn: free xxB of array elements at 0xPREDIFFED
0 (gpu 0): diags.chpl:nn: free xxB of [domain(1,int(64),one)] int(64) at 0xPREDIFFED
2 2 2 2 2 2 2 2 2 2
End
8 changes: 7 additions & 1 deletion test/gpu/native/diags.execopts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
--memTrack
#!/usr/bin/env bash

if [[ "$CHPL_GPU" == "cpu" ]]; then
echo "--memTrack # diags.cpu.good"
else
echo "--memTrack"
fi

0 comments on commit a799762

Please sign in to comment.