-
Notifications
You must be signed in to change notification settings - Fork 245
Open
Labels
P0High priority - Must do!High priority - Must do!cuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core moduleenhancementAny code-related improvementsAny code-related improvements
Milestone
Description
Summary
On platforms where CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS is 0 (e.g., certain Windows/WSL configurations), Unified Memory cannot be safely accessed from the host while any GPU kernel is in flight on any stream. This makes ManagedMemoryResource effectively unusable in general-purpose code on these platforms.
Proposed Changes
- Runtime warning: When
ManagedMemoryResourceis created, queryCU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS. If it is 0, emit a prominent warning stating that host access to managed memory requires explicit synchronization at every point or the process will segfault, with a link to the CUDA Programming Guide. - Test coverage: Skip managed memory tests on affected platforms.
Context
See discussion in #1539.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P0High priority - Must do!High priority - Must do!cuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core moduleenhancementAny code-related improvementsAny code-related improvements