Repository navigation
[DO NOT MERGE][ROCm] Validating july 12th rocm 7.14 wheel - #190399
chinmaydk99 wants to merge 8 commits into
Conversation
Squashed replay of pytorch#188429 (experiment/rocm-preview-wheels-rerun-20260629) onto current main: switch the rocm-preview lane from tarballs to the multi-arch TheRock wheel set, rename rocm-nightly -> rocm-preview, and pin the TheRock nightly ROCm install. Pin bumped from the June-12 (7.14.0a20260612) build used on pytorch#189229 to 7.15.0a20260712 — the wheel consumed by TheRock validation run 29612396655 (torch 2.14.0a0+rocm7.15.0a20260712) on users/chinmaydk99/pytorch-2.14-stabilize.
test_selections.py detected ROCm only via os.path.exists("/opt/rocm"), which is
false on the TheRock preview-wheel lane (ROCm ships inside the wheel under
_rocm_sdk_devel, not /opt/rocm). That skipped the rocminfo-based
`NUM_PROCS = min(gpu_count, 8)` clamp, so NUM_PROCS stayed at 3 on a 1-GPU
runner. run_test.py's maybe_set_hip_visible_devies() then round-robins
HIP_VISIBLE_DEVICES = _identity % NUM_PROCS across devices {0,1,2}; workers
assigned to the nonexistent indices 1 and 2 see torch.cuda.device_count()==0,
which turns every arch-gated test (skipIfRocmArch -> getRocmArchName ->
_cuda_init) into a "No CUDA GPUs are available" error during collection.
Detect ROCm via torch.version.hip as well so wheel-based lanes reach the clamp.
torch is already imported transitively here; make it explicit and null-guarded.
Verified on an 8x MI300X box against the 7.14 preview wheel: NUM_PROCS now
resolves to the real GPU count (8 unmasked, 1 when masked to a single GPU via
ROCR_VISIBLE_DEVICES), so all pool workers map to device 0 and device_count()
stays nonzero.
(cherry picked from commit bc1375a)
Introduces skipIfRocmVersionAtLeast([7, 14]) and its multiprocess counterpart skip_if_rocm_ver_atleast_multiprocess([7, 14]), then applies them to the tests that fail on the ROCm 7.15 preview wheel but pass on 7.2.x. Dormant on the current 7.2 CI; activate automatically when the rocm-preview lane switches to the TheRock 7.15 wheel. Skip set mirrors TheRock skip_tests/pytorch_2.14.py on users/chinmaydk99/pytorch-2.14-stabilize (the -k list run by TheRock validation run 29612396655 on 2.14.0a0+rocm7.15.0a20260712). 32 -k entries encoded as: - method/class decorators where the whole test/class is skipped (test_hip_device_count, test_allocator_backend, cholesky_solve_batched_many_batches, TestExportOnFakeCuda class covering the 9 fake_export/preserve_original CUDA subcases) - inline version-gated skipTest guards for parametrized subcases a decorator cannot target (out_of_memory scoped to expandable segments, linear_cross_entropy_loss_default bias=False/f32, module_to_empty cuda/f32, rosenbrock_sparse SGD/lrsched=False/f64, sparse.sampled_addmm dtypes, log10 inductor numerics/default f16/f32) - multiprocess decorators for the distributed suite (virtual_local_rank, nccl_annotations, ce_allgather/alltoall, post_optim_event, two_shot_all_reduce, replicate compile_fp16/compile_gpu, cp_flex attention causal/document mask)
torch.cuda.device_count() consults the smi path (amdsmi on ROCm) and only fell back to the HIP/CUDA runtime count when smi returned < 0. On some ROCm containers amdsmi initializes successfully but enumerates 0 processors -- e.g. pods that mount only /dev/dri/renderD* nodes (enough for HIP compute via /dev/kfd) but not the DRM card* nodes amdsmi discovers through. There _device_count_amdsmi() returns a legitimate 0, `0 < 0` is False, and torch trusts the spurious 0 over the HIP runtime, so device_count() returns 0 while torch._C._cuda_getDeviceCount() correctly reports N. Verified on rocm-preview distributed shards (both gfx942 and gfx950): raw hipGetDeviceCount and _C._cuda_getDeviceCount return N (4/2) while _device_count_amdsmi() and a direct amdsmi_get_processor_handles() both return 0, and device_count() returns 0 -- failing the distributed preflight. Change the guard to `<= 0` so a spurious smi 0 falls back to the runtime count. No regression: on a genuinely 0-GPU host _cuda_getDeviceCount() also returns 0. Symmetric for CUDA/nvml. (cherry picked from commit 1574ec0)
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/190399
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit f8e054a with merge base e412c24 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
2 similar comments
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
_linux-build.yml no longer declares a use-arc input on current main (it hardcodes use-arc: true internally when calling setup-linux), so the rocm-preview caller passing use-arc: true failed workflow validation at startup: Invalid workflow file .github/workflows/rocm-preview.yml (Line: 49): Invalid input, use-arc is not defined in the referenced workflow. The input came from the pytorch#188429 payload, which was authored against an older main. Remove the line; arc runners are still selected via runner_prefix "mt-".
- ruff-format reflow of the inline skip guards in test_cuda.py (collapse) and test_ops.py (wrap) to the formatter's line-length choice - test_nn.py: blank line before the nested MyModule class (FLAKE8 E306) - test_selections.py: drop the extra blank line ruff-format flagged in the cherry-picked NUM_PROCS clamp No behavior change.
- test_cxx_flags: fails on 7.15 wheel (torch.__config__._cxx_flags()) - TestCudaAllocator ×6: amdsmi_get_gpu_enumeration_info() returns [] on ROCm 7.15 container → IndexError in _get_amdsmi_handler(); also covers test_cuda_expandable_segments which imports the same class - test_respect_scaled_grouped_mm_layout_tag: ck/config.h missing on 7.14+ wheel stack; IS_SM90 guard passes on gfx942 so test runs - test_register_errors (Nccl2WindowTest): fails distributed 1 shard; tentatively version-gated, will revise if periodic-mi300 confirms it also fails on 7.2 All confirmed passing on rocm-mi300 (7.2) → skipIfRocmVersionAtLeast is correct. test_cuda_expandable_segments needs no change (imports TestCudaAllocator from test_cuda, decorators carry over).
6dff2f5 to
d269c47
Compare
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
Preview was bumped to 8 default + 4 inductor shards for timeout relief (Run 5 of PR pytorch#190399). The parity downloader constructs S3 artifact names as test-reports-test-{config}-{i}-{TOTAL} using the config total, so a mismatch causes silent zero-match for all preview default/inductor shards. This fixes the 'Didn't find any test reports in s3' warnings seen on run 28898344903. Co-authored-by: Chinmay Kuchinad <[email protected]>
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
Ports all skips from pytorch_2.14.py (TheRock) to upstream-style in-code decorators on ROCm/pytorch release/2.13. Infrastructure (mirrors PR pytorch#190399): - common_utils.py: add skipIfRocmVersionAtLeast() - common_distributed.py: add skip_if_rocm_ver_atleast_multiprocess() New skips not in PR pytorch#190399: - test/dynamo/test_logging.py: test_logs_out (spurious ROCm W-lines) - test/test_serialization.py: test_debug_set_in_ci (TORCH_SERIALIZATION_DEBUG not set by TheRock runner) - test/test_multiprocessing.py: test_fs, test_fs_is_shared, test_fs_pool, test_fs_preserve_sharing, test_fs_sharing (torch_shm_manager cannot resolve ROCm libs in spawned children on 7.14+)
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
…on ROCm Adds three skip groups surfaced by rocm-preview run 29663705913 (4th validation run of PR pytorch#190399 on ROCm 7.15 wheel): 1. test_symmetric_memory.py -- test_dispatcher_torchbind_symmetric_memory and test_low_contention_all_gather (both True/False variants): version- gated skip_if_rocm_ver_atleast_multiprocess([7, 14]). CUDASymmetricMemory rendezvous hangs indefinitely on gfx942 >=7.14 (subprocess blocks 1201s each). Confirmed passing on periodic-mi300 7.2 (job 88133649520, 3h55m, no timeout). Was masked in prior runs by early shard cancellation. 2. test_compile_benchmark_util.py -- test_training_and_inference: skipCUDAIfRocm (unconditional). fp32 precision flag leak (torch.set_float32_matmul_precision side-effect not restored after TypeError in torch.compile). Fails on both 7.2 (mi300 default) and 7.15 (rocm-preview). 3. test_ck_backend.py -- 18 standalone (CK/CKTILE) variants across 6 methods: skipIfRocmVersionAtLeast([7, 14]) via subtest(decorators=[...]) to gate only the standalone parametrization. ck/config.h missing from the 7.14+ ck4inductor wheel -> NoValidChoicesError on every compile. Fallback variants pass and are left running. mi300 inductor (run 29663707002) is fully green -- failure is rocm-preview/7.15 wheel-specific.
|
The main PR has landed upstream #188593. Closing this. |
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben