8000 DISABLED test_reorder_peak_memory_bfs (__main__.TestOperatorReorderForPeakMemory) · Issue #147949 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
DISABLED test_reorder_peak_memory_bfs (__main__.TestOperatorReorderForPeakMemory) #147949
Closed
@pytorch-bot

Description

@pytorch-bot

Platforms: rocm

This test was disabled because it is failing in CI. See recent examples and the most recent trunk workflow logs.

Over the past 3 hours, it has been determined flaky in 4 workflow(s) with 5 failures and 4 successes.

Debugging instructions (after clicking on the recent samples link):
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:

  1. Click on the workflow logs linked above
  2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
  3. Grep for test_reorder_peak_memory_bfs
  4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Sample error message
Traceback (most recent call last):
  File "/var/lib/jenkins/pytorch/test/inductor/test_memory.py", line 157, in test_reorder_peak_memory_bfs
    .run(code)
RuntimeError: Expected to find "buf2 = " but did not find it
Searched string:
        stream0 = get_raw_stream(0)
        triton_poi_fused_mm_0.run(primals_5, buf4, 12, grid=grid(12), stream=stream0)
        buf1 = empty_strided_cuda((2048, 12), (12, 1), torch.float32)
        # Topologically Sorted Source Nodes: [t1], Original ATen: [aten.mm]
        extern_kernels.mm(primals_2, buf0, out=buf1)
        del buf0
        buf5 = empty_strided_cuda((2048, 12), (12, 1), torch.float32)
        # Topologically Sorted Source Nodes: [t4], Original ATen: [aten.mm]
        extern_kernels.mm(buf2, buf4, out=buf5)
        del buf4
        buf3 = empty_strided_cuda((2048, 1), (1, 1), torch.float32)
        # Topologically Sorted Source Nodes: [t3], Original ATen: [aten.mm]
        extern_kernels.mm(reinterpret_tensor(buf1, (2048, 10), (12, 1), 0), primals_4, out=buf3)
        buf7 = empty_strided_cuda((3, ), (1, ), torch.float32)
        # Topologically Sorted Source Nodes: [sum_2], Original ATen: [aten.sum]
        stream0 = get_raw_stream(0)
        triton_red_fused_sum_1.run(buf5, buf7, 3, 6827, grid=grid(3), stream=stream0)
        del buf5
        buf6 = empty_strided_cuda((), (), torch.float32)
        # Topologically Sorted Source Nodes: [sum_1], Original ATen: [aten.sum]
        stream0 = get_raw_stream(0)
        triton_red_fused_sum_2.run(buf3, buf6, 1, 2048, grid=grid(1), stream=stream0)
        del buf3
        buf9 = buf6; del buf6  # reuse
        # Topologically Sorted Source Nodes: [sum_2, add], Original ATen: [aten.sum, aten.add]
        stream0 = get_raw_stream(0)
        triton_per_fused_add_sum_3.run(buf9, buf7, 1, 3, grid=grid(1), stream=stream0)
        del buf7
    return (buf9, primals_2, reinterpret_tensor(buf2, (1, 2048), (1, 1), 0), reinterpret_tensor(primals_5, (10, 1), (1, 10), 0), reinterpret_tensor(buf1, (10, 2048), (1, 12), 0), reinterpret_tensor(primals_4, (1, 10), (1, 1), 0), )


def benchmark_compiled_module(times=10, repeat=10):
    from torch._dynamo.testing import rand_strided
    from torch._inductor.utils import print_performance
    primals_1 = rand_strided((1, 10), (10, 1), device='cuda:0', dtype=torch.float32)
    primals_2 = rand_strided((2048, 1), (1, 1), device='cuda:0', dtype=torch.float32)
    primals_3 = rand_strided((1, 1), (1, 1), device='cuda:0', dtype=torch.float32)
    primals_4 = rand_strided((10, 1), (1, 1), device='cuda:0', dtype=torch.float32)
    primals_5 = rand_strided((1, 10), (10, 1), device='cuda:0', dtype=torch.float32)
    fn = lambda: call([primals_1, primals_2, primals_3, primals_4, primals_5])
    return print_performance(fn, times=times, repeat=repeat)


if __name__ == "__main__":
    from torch._inductor.wrapper_benchmark import compiled_module_main
    compiled_module_main('None', benchmark_compiled_module)
From CHECK: buf2 = 


To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_WITH_ROCM=1 python test/inductor/test_memory.py TestOperatorReorderForPeakMemory.test_reorder_peak_memory_bfs

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

Test file path: inductor/test_memory.py

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @clee2000 @wdvr @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: flaky-testsProblem is a flaky test in CImodule: inductormodule: rocmAMD GPU support for Pytorchoncall: pt2skippedDenotes a (flaky) test currently skipped in CI.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0