You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: DeviceMemoryResource.register() segfaults when IPC is not enabled #2568
DeviceMemoryResource.register() and PinnedMemoryResource.register() crash the interpreter with SIGSEGV when the memory resource does not have IPC enabled, including the default resource returned by Device().memory_resource. No exception is raised, so the call cannot be guarded with try.
The cause is an unconditional read of self._ipc_data in MP_register (cuda_core/cuda/core/_memory/_ipc.pyx), which is None unless IPC is enabled.
Present in released cuda-core 1.0.1, 1.1.0 and 1.1.1, and on main.
Activity
cuda.core: reject register() on a non-IPC memory resource (NVIDIA#2569)