Files
rocm-systems/projects/hip/samples
Maneesh Gupta 01ee58e0c7 Fix sample module_api_global for hip-clang (#1201)
module_api_global relies on a HCC only feature which allows host code
to write to device variables. This feature does not exist in CUDA
or hip-clang, which causes the sample not working in CUDA or hip-clang.

This patch fixes the sample by using standard features of CUDA and
hip-clang. The fixed sample works in HCC, CUDA and hip-clang.

[ROCm/hip commit: 502a734ebf]
2019-07-03 08:52:19 +00:00
..