Repository: pytorch
Issue: DISABLED test_cat_slice_cat_cuda_cuda_wrapper (__main__.TestCudaWrapper)
Labels: triaged,module: flaky-tests,skipped,oncall: pt2,module: inductor

Platforms: linux

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_cat_slice_cat_cuda_cuda_wrapper&suite=TestCudaWrapper&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/29689879614).

Over the past 3 hours, it has been determined flaky in 8 workflow(s) with 10 failures and 8 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_cat_slice_cat_cuda_cuda_wrapper`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.



<details><summary>Sample error message</summary>

```
Traceback (most recent call last):
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/__init__.py", line 2194, in __eq__
    and self.config == other.config
AttributeError: '_TorchCompileInductorWrapper' object has no attribute 'config'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 11381, in new_test
    return value(self)
  File "/opt/conda/envs/py_3.10/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/var/lib/jenkins/workspace/test/inductor/test_cuda_cpp_wrapper.py", line 113, in fn
    _, code = test_torchinductor.run_and_get_cpp_code(
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/_inductor/utils.py", line 1936, in run_and_get_cpp_code
    result = fn(*args, **kwargs)
  File "/var/lib/jenkins/workspace/test/inductor/test_pattern_matcher.py", line 753, in test_cat_slice_cat_cuda
    actual = torch.compile(fn)(*args)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 465, in _fn
    return fn(*args, **kwargs)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 1189, in __call__
    is_skipfile = trace_rules.check(frame.f_code)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/_dynamo/trace_rules.py", line 3488, in check
    return check_verbose(obj, is_inlined_call).skipped
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/_dynamo/trace_rules.py", line 3454, in check_verbose
    if isinstance(
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/_dynamo/variables/base.py", line 104, in __instancecheck__
    if type.__instancecheck__(
SystemError: <method '__instancecheck__' of 'type' objects> returned a result with an exception set

To execute this test, run the following from the base repo dir:
    python test/inductor/test_cuda_cpp_wrapper.py TestCudaWrapper.test_cat_slice_cat_cuda_cuda_wrapper

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```

</details>


Test file path: `inductor/test_cuda_cpp_wrapper.py`

cc @clee2000 @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire