diff --git a/test/gpu/nongpu/gpuId.chpl b/test/gpu/nongpu/gpuId.chpl new file mode 100644 index 000000000000..3d10ad7bd68b --- /dev/null +++ b/test/gpu/nongpu/gpuId.chpl @@ -0,0 +1 @@ +writeln(here.gpuId); diff --git a/test/gpu/nongpu/gpuId.good b/test/gpu/nongpu/gpuId.good new file mode 100644 index 000000000000..948c2afb6b1e --- /dev/null +++ b/test/gpu/nongpu/gpuId.good @@ -0,0 +1 @@ +gpuId.chpl:1: error: halt reached - Can not use 'gpuId' field on a non gpu locale