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
Harden green context stream creation and resource queries
- Let the driver validate the nonblocking flag for green context streams:
cuGreenCtxStreamCreate rejects CU_STREAM_DEFAULT. On failure, check if
the context is green + nonblocking is False and raise a clear ValueError.
- cuCtxGetStreamPriorityRange failure (CUDA_ERROR_INVALID_CONTEXT) now
raises: "No current CUDA context. Call dev.set_current() before
creating streams."
- C++ create_stream_handle returns CUDA_ERROR_NOT_SUPPORTED if the
context is green but cuGreenCtxStreamCreate is unavailable (CUDA < 12.5),
instead of falling through to cuStreamCreateWithPriority.
- ctx.resources.workqueue now dispatches to cuGreenCtxGetDevResource for
green contexts, matching the SM query path.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments