[Chapel Merge] Make deviceAttributes test more robust

Branch: refs/heads/main
Revision: db373276ae1e4e84e1835ad105bb56ac03866b2b
Author: jabraham17
Link: Make deviceAttributes test more robust by jabraham17 · Pull Request #28737 · chapel-lang/chapel · GitHub
Log Message:
Make deviceAttributes test more robust (#28737)

Makes the deviceAttributes test more robust to sporadic failures.

Previously, we could see sporadic failures because we were actually
launching the program twice. This takes more time and could potentially
launch onto nodes with different GPUs, causing sporadic failures.

This PR resolves the issue by having a single program print both sets of
output, and then use the prediff to split the output for comparison.

Tentatively resolves https://github.com/Cray/chapel-private/issues/7262

Tested with CPU-as-device mode

[Reviewed by @benharsh]

Compare: Comparing 5c7ae9990a50b3dffdb6be96a7af0fbec691923f...8964dd48ef29c885521d10e9c926db814e3f64dc · chapel-lang/chapel · GitHub

Diff:
M test/gpu/native/deviceAttributes.chpl
M test/gpu/native/deviceAttributes.cpu.c
M test/gpu/native/deviceAttributes.prediff
https://github.com/chapel-lang/chapel/pull/28737.diff