Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make get_global_resource host/device
The function is called from a host/device constructors and may be invoked from the device code. As it happens neither NVCC nor clang diagnose such an invalid call. llvm/llvm-project#118415 As the result, in unoptimized builds we end up with ptxas failing with an unresolved reference to this function because it is never generated during GPU-side compilation. NVIDIA#2813 (comment)
- Loading branch information