Repository navigation
[CUDA] Serialize green-context stream-pool initialization - #199129
MatthiasKohl wants to merge 12 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/199129
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 2cd25ba with merge base d0b8bbb ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Fix potential races in green context stream pool slot selection/creation/indexing. > Authored with an AI assistant. > > The lock covers creation through publication; failed creation leaves the index unchanged. Test Plan Tested on Rubin with driver R610 + CUDA 13.4 compat. All 3 focused stream-pool tests passed. ```sh python test/test_cuda.py TestGreenContextStreamPool -v ``` ghstack-source-id: 098f9c4 Pull-Request: pytorch#199129
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
AI-assisted |
> AI-assisted: map-style stream execution, localized-output docs, trim redundant tests. [ghstack-poisoned]
[ghstack-poisoned]
|
@pytorchbot merge |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
[ghstack-poisoned]
|
Starting merge as part of PR stack under #199130 |
….t. MPS (#199130) Improve documentation of the NVML based check for locality support: later attachment to MPS isn't supported. > Authored with an AI assistant. > > The limitation concerns the pre-initialization NVML estimate. Already attached clients use the CUDA driver path; query again after attachment rather than reusing an earlier estimate. These regression tests do not test dynamic MPS attachment. Test Plan Tested on Rubin with driver R610 + CUDA 13.4 compat. All 10 existing locality-query regression tests passed. ```sh python test/test_cuda.py TestCudaGreenContextsCUDA -k locality -v ``` Pull Request resolved: #199130 Approved by: https://github.com/ngimel ghstack dependencies: #199127, #199128, #199129
…9129) Fix potential races in green context stream pool slot selection/creation/indexing. > Authored with an AI assistant. > > The lock covers creation through publication; failed creation leaves the index unchanged. Test Plan Tested on Rubin with driver R610 + CUDA 13.4 compat. All 3 focused stream-pool tests passed. ```sh python test/test_cuda.py TestGreenContextStreamPool -v ``` Pull Request resolved: pytorch#199129 Approved by: https://github.com/ngimel ghstack dependencies: pytorch#199127, pytorch#199128
….t. MPS (pytorch#199130) Improve documentation of the NVML based check for locality support: later attachment to MPS isn't supported. > Authored with an AI assistant. > > The limitation concerns the pre-initialization NVML estimate. Already attached clients use the CUDA driver path; query again after attachment rather than reusing an earlier estimate. These regression tests do not test dynamic MPS attachment. Test Plan Tested on Rubin with driver R610 + CUDA 13.4 compat. All 10 existing locality-query regression tests passed. ```sh python test/test_cuda.py TestCudaGreenContextsCUDA -k locality -v ``` Pull Request resolved: pytorch#199130 Approved by: https://github.com/ngimel ghstack dependencies: pytorch#199127, pytorch#199128, pytorch#199129
Stack from ghstack (oldest at bottom):
Fix potential races in green context stream pool slot selection/creation/indexing.
Test Plan
Tested on Rubin with driver R610 + CUDA 13.4 compat.
All 3 focused stream-pool tests passed.