From a79976202113caef0735589e0b77c080248a64df Mon Sep 17 00:00:00 2001 From: Andy Stone Date: Tue, 24 Oct 2023 12:08:33 -0500 Subject: [PATCH] add separate good file for cpu-as-device --- Signed-off-by: Andy Stone --- test/gpu/native/diags.cpu.good | 13 +++++++++++++ test/gpu/native/diags.execopts | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 test/gpu/native/diags.cpu.good mode change 100644 => 100755 test/gpu/native/diags.execopts diff --git a/test/gpu/native/diags.cpu.good b/test/gpu/native/diags.cpu.good new file mode 100644 index 000000000000..b3a3f220033c --- /dev/null +++ b/test/gpu/native/diags.cpu.good @@ -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 diff --git a/test/gpu/native/diags.execopts b/test/gpu/native/diags.execopts old mode 100644 new mode 100755 index 5a7e3d4e6d23..79259284442e --- a/test/gpu/native/diags.execopts +++ b/test/gpu/native/diags.execopts @@ -1 +1,7 @@ ---memTrack +#!/usr/bin/env bash + +if [[ "$CHPL_GPU" == "cpu" ]]; then + echo "--memTrack # diags.cpu.good" +else + echo "--memTrack" +fi