[Chapel Merge] Update the test to handle different number of GPUs

Branch: refs/heads/main
Revision: f15e5f2
Author: e-kayrakli
Link: Update the test to handle different number of GPUs per locale by e-kayrakli · Pull Request #19556 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19556 from e-kayrakli/gpu-multiGPU-test-portability

Update the test to handle different number of GPUs per locale

This test was added to test the multiple GPU support. However, its good file was
pretty hardwired for 8 GPUs per node, which matches our current nightly testing
machine. It caused this test to fail for any other number of GPUs in the node.

This PR adjusts the test in question to report number of sublocales first. Then,
the prediff generates the expected good file based on that number.

[Reviewed by @daviditen]

Test: