[Chapel Merge] Fix and improve the GPU math test

Branch: refs/heads/main
Revision: 36e6a91
Author: e-kayrakli
Link: Fix and improve the GPU math test by e-kayrakli · Pull Request #20157 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20157 from e-kayrakli/gpu-math-test-fix

Fix and improve the GPU math test

This PR fixes a GPU test by using local variables instead of module-scope ones.

Supersedes Emit an error for potential remote access in GPU kernels, fix a test by e-kayrakli · Pull Request #20152 · chapel-lang/chapel · GitHub
The underlying issue is captured in How should we handle module-scope variables w.r.t GPU support in the short term? · Issue #20156 · chapel-lang/chapel · GitHub

Test passes with gasnet+gpu config.

[Trivial, not reviewed]

Modified Files:
M test/gpu/native/math.chpl

Compare: https://github.com/chapel-lang/chapel/compare/7afca8cb55e9...36e6a91af953