See the PR description in https://github.com/NVIDIA/numba-cuda/pull/604. The two commits there should be backported so as to prepare for https://github.com/NVIDIA/cuda-python/issues/716 and https://github.com/NVIDIA/cuda-python/issues/762.
See the PR description in NVIDIA/numba-cuda#604. The two commits there should be backported so as to prepare for #716 and #762.