cuda-python
cuda-python copied to clipboard
Address known thread-safety issues in `cuda.core`
In general,
cuda.corehas a few internal, module-level states that should be guarded by a lock. We haven't done that extensively.
Originally posted by @leofang in https://github.com/NVIDIA/cuda-python/pull/1364#discussion_r2624683212
Example: https://github.com/NVIDIA/cuda-python/blob/027ba105fc33ac148c6d7343a9f71801e9f5ff72/cuda_core/cuda/core/experimental/_launcher.pyx#L20-L35
Sebastian's comment here is relevant: https://github.com/NVIDIA/cuda-python/pull/1390#discussion_r2626380632