[Chapel Merge] update cpu-as-device mode for prior PR on ref intent scalars

Branch: refs/heads/main
Revision: 8ad46b8583fec729670816fee1c8aaee1d45ea80
Author: stonea
Link: update cpu-as-device mode for prior PR on ref intent scalars by stonea · Pull Request #25651 · chapel-lang/chapel · GitHub
Log Message:
update cpu-as-device mode for prior PR on ref intent scalars (#25651)

This should have been done as part of #25647 (which made updates so we
could have ref intents to scalars in gpuized loops work on AMD). Anyway,
that PR updated the signature of chpl_gpu_impl_host_register (to have
it return the device pointer for the thing you're ref intent'ing) but I
forgot to update it in the cpu-as-device implementation. This PR does
that update.This should have been done as part of #25647 (which made
updates so we could have ref intents to scalars in gpuized loops work on
AMD). Anyway, that PR updated the signature of
chpl_gpu_impl_host_register (to have it return the device pointer for
the thing you're ref intent'ing) but I forgot to update it in the
cpu-as-device implementation. This PR does that update.

Written by @stonea. Merged by @jabraham17 late on Friday to prevent build errors

Compare: Comparing 07f6ceb3fe56e0baeefda0624928885705685665...ac737cc78db01732174958a09a98bb6fd5c6113b · chapel-lang/chapel · GitHub

Diff:
M runtime/src/gpu/cpu/gpu-cpu.c
https://github.com/chapel-lang/chapel/pull/25651.diff