[Chapel Merge] Improve the portability of the "multiGPU" test

Branch: refs/heads/main
Revision: a2c7053
Author: e-kayrakli
Link: Unavailable
Log Message:

Merge pull request #20288 from e-kayrakli/gpu-multiGPU-test-fixes

Improve the portability of the "multiGPU" test

This test was pretty hard coded for the system where we run nightly testing (8
GPUs per node). This PR:

  • Fixes that by instead of writing the arrays on the console, asserting values
    on the CPU.
  • While there, uses the "new" gpus interface
  • While there, uses writeln to write arrays as this test no longer uses
    --verbose (changed in a previous PR)

[Trivial test change, not reviewed]

Test: