Repository: pytorch
Issue: Can't run torch conv2d with AMD Instinct MI250X
Labels: module: rocm,triaged

### 🐛 Describe the bug

I am on AMD 250X GPU after installed rocm5.6 with pytorch version 2.2 following commend

```
 pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/rocm5.6
```

I am on slurm system, I don't have super admin right.

I am trying to run a test_code.py

```
import torch

device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
x = torch.rand(1, 3, 64, 64, device=device)  # Random tensor
conv = torch.nn.Conv2d(3, 16, kernel_size=3, stride=1, padding=1).to(device)
y = conv(x)
print(y.shape)
```
I got an error looks like

```
MIOpen(HIP): Warning [FindWinogradSolutions] /MIOpen/src/sqlite_db.cpp:220: Internal error while accessing SQLite database: disk I/O error
MIOpen(HIP): Warning [FindDataGemmSolutions] /MIOpen/src/sqlite_db.cpp:220: Internal error while accessing SQLite database: disk I/O error
MIOpen(HIP): Warning [FindDataDirectSolutions] /MIOpen/src/sqlite_db.cpp:220: Internal error while accessing SQLite database: disk I/O error
MIOpen(HIP): Warning [FindDataImplicitGemmSolutions] /MIOpen/src/sqlite_db.cpp:220: Internal error while accessing SQLite database: disk I/O error
MIOpen(HIP): Warning [FindFftSolutions] /MIOpen/src/sqlite_db.cpp:220: Internal error while accessing SQLite database: disk I/O error
MIOpen Error: /MIOpen/src/ocl/convolutionocl.cpp:517: Forward Convolution cannot be executed due to incorrect params
....
.../python3.9/site-packages/torch/nn/modules/conv.py", line 456, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: miopenStatusUnknownError
```

I've followed couple of suggestions, including different versions of the rocm, however, non works. 

P.S.: I find that this version works on AMD MI210 but not on AMD MI250.

### Versions

Collecting environment information...
PyTorch version: 2.2.0+rocm5.6
Is debug build: False
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: 5.6.31061-8c743ae5d

OS: SUSE Linux Enterprise Server 15 SP5 (x86_64)
GCC version: (SUSE Linux) 7.5.0
Clang version: Could not collect
CMake version: version 3.20.4
Libc version: glibc-2.31

Python version: 3.9.13 (main, Aug 10 2022, 17:20:06)  [GCC 9.3.0 20200312 (Cray Inc.)] (64-bit runtime)
Python platform: Linux-5.14.21-150500.55.49_13.0.57-cray_shasta_c-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: AMD Instinct MI250X (gfx90a:sramecc+:xnack-)
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: 5.6.31061
MIOpen runtime version: 2.20.0
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.21.5
[pip3] pytorch-triton-rocm==2.2.0
[pip3] torch==2.2.0+rocm5.6
[pip3] torchaudio==2.2.0+rocm5.6
[pip3] torchvision==0.17.0+rocm5.6
[conda] numpy                     1.26.3                   pypi_0    pypi
[conda] pytorch-triton-rocm       2.2.0                    pypi_0    pypi
[conda] torch                     2.2.0+rocm5.6            pypi_0    pypi
[conda] torchaudio                2.2.0+rocm5.6            pypi_0    pypi
[conda] torchvision               0.17.0+rocm5.6           pypi_0    pypi

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd