[WIP][xpu][fix] test_aot_inductor: Make caching_allocator_disabled device-agnostic#179659
Draft
etaf wants to merge 6 commits intogh/etaf/218/basefrom
Draft
[WIP][xpu][fix] test_aot_inductor: Make caching_allocator_disabled device-agnostic#179659etaf wants to merge 6 commits intogh/etaf/218/basefrom
etaf wants to merge 6 commits intogh/etaf/218/basefrom
Conversation
etaf
added a commit
that referenced
this pull request
Apr 8, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: 81004c9 Pull-Request: #179659
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/179659
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 10 New FailuresAs of commit 53e6b77 with merge base 2279133 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
etaf
added a commit
that referenced
this pull request
Apr 9, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: caf3d25 Pull-Request: #179659
etaf
added a commit
that referenced
this pull request
Apr 9, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: 340ee3f Pull-Request: #179659
etaf
added a commit
that referenced
this pull request
Apr 9, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: f567e0a Pull-Request: #179659
etaf
added a commit
that referenced
this pull request
Apr 12, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: a0c1904 Pull-Request: #179659
etaf
added a commit
that referenced
this pull request
Apr 12, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: a0c1904 Pull-Request: #179659
etaf
added a commit
that referenced
this pull request
Apr 12, 2026
…agnostic 8 AOTInductor tests fail on XPU because `caching_allocator_disabled()` (Intorduced by #177418) from `torch.cuda.memory` calls `torch._C._cuda_cudaCachingAllocator_is_enabled()` which doesn't exist in XPU-only builds. Replace the direct import of `torch.cuda.caching_allocator_disabled` with a device-aware wrapper that delegates to the CUDA implementation on CUDA builds and acts as a no-op on other GPU backends (XPU, etc.). ghstack-source-id: 5a4f221 Pull-Request: #179659
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
8 AOTInductor tests fail on XPU because
caching_allocator_disabled()(Intorduced by #177418) from
torch.cuda.memorycallstorch._C._cuda_cudaCachingAllocator_is_enabled()which doesn't exist in XPU-only builds.
Replace the direct import of
torch.cuda.caching_allocator_disabledwith adevice-aware wrapper that delegates to the CUDA implementation on CUDA builds
and acts as a no-op on other GPU backends (XPU, etc.).
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo