[Chapel Merge] Fix for not finding c_pointer_return call from GPU

Branch: refs/heads/main
Revision: 87c5320
Author: e-kayrakli
Link: Fix for not finding c_pointer_return call from GPU by ShreyasKhandekar · Pull Request #20053 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20053 from ShreyasKhandekar/GPUcpointerreturnFix

Fix for not finding c_pointer_return call from GPU

When a routine called from the GPU invoked the c_pointer_return function defined in chapel/chpltypes.h at main · chapel-lang/chapel · GitHub we run into the following issue.

$CHPL_HOME/modules/internal/ChapelStandard.chpl:24: error: Could not find C function for c_pointer_return;  perhaps it is missing or is a macro?

Fix was to create a device version of this function as suggested by @e-kayrakli

[Reviewed and merged on behalf of @ShreyasKhandekar by @e-kayrakli]

Test: