Error with GPU0 Tesla K20m with cuda capability 3.5 and pytorch

Gk14: <p>Hello All,<br>
Need your help in resolving this issue.<br>
I am using (1.11.0+cu10.2) pytorch and cuda version respectively. I am using Tesla K20m GPU currently and facing the below issue.</p>
<p>/home/garimak1/.local/lib/python3.7/site-packages/mmcv/<strong>init</strong>.py:21: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in<br>
which it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See <a href="https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md" class="inline-onebox" rel="noopener nofollow ugc">mmcv/compatibility.md at master · open-mmlab/mmcv · GitHub</a> for more details.<br>
'On January 1, 2023, MMCV will release v2.0.0, in which it will remove ’<br>
/umbc/rs/nasa-access/users/garimak1/conda-u/envs/cot_retrieval/lib/python3.7/site-packages/torch/cuda/<strong>init</strong>.py:122: UserWarning:<br>
Found GPU0 Tesla K20m which is of cuda capability 3.5.<br>
PyTorch no longer supports this GPU because it is too old.<br>
The minimum cuda capability supported by this library is 3.7.</p>
<p>warnings.warn(old_gpu_warn % (d, name, major, minor, min_arch // 10, min_arch % 10))<br>
Traceback (most recent call last):<br>
File “test.py”, line 269, in <br>
fold = 4, stride=10)<br>
File “test.py”, line 115, in get_profile_pred1<br>
test_loss,patch_pred = get_pred(model=model,X_test=patch,Y_test=label,device=“cuda:0”)<br>
File “/umbc/xfs1/student/users/garimak1/project/ver0.1/DL_3d_cloud_retrieval-main/COT_retrievals_from_LES_cloud_scenes_reflectances/utilities/utilities.py”, line 297, in get_pred<br>
output = model(X_test)<br>
File “/umbc/rs/nasa-access/users/garimak1/conda-u/envs/cot_retrieval/lib/python3.7/site-packages/torch/nn/modules/module.py”, line<br>
1110, in _call_impl<br>
return forward_call(*input, **kwargs)<br>
File “/umbc/xfs1/student/users/garimak1/project/ver0.1/DL_3d_cloud_retrieval-main/COT_retrievals_from_LES_cloud_scenes_reflectances/model_config/DNN2w.py”, line 46, in forward<br>
x = self.activation(self.conv1(x))<br>
File “/umbc/rs/nasa-access/users/garimak1/conda-u/envs/cot_retrieval/lib/python3.7/site-packages/torch/nn/modules/module.py”, line<br>
1110, in _call_impl<br>
return forward_call(*input, **kwargs)<br>
File “/umbc/rs/nasa-access/users/garimak1/conda-u/envs/cot_retrieval/lib/python3.7/site-packages/torch/nn/modules/conv.py”, line 447, in forward<br>
return self._conv_forward(input, self.weight, self.bias)<br>
File “/umbc/rs/nasa-access/users/garimak1/conda-u/envs/cot_retrieval/lib/python3.7/site-packages/torch/nn/modules/conv.py”, line 444, in _conv_forward<br>
self.padding, self.dilation, self.groups)<br>
RuntimeError: CUDA error: no kernel image is available for execution on the device<br>
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.<br>
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.</p>

eqy: <p>Unfortunately this is expected with later binary releases as support for compute capability 3.5 has been dropped. You could try building from source (e.g., as described here <a href="https://discuss.pytorch.org/t/solved-pytorch-no-longer-supports-this-gpu-because-it-is-too-old/15444" class="inline-onebox">[SOLVED] PyTorch no longer supports this GPU because it is too old</a>) or try installing older binaries that would support compute capability 3.5: <a href="https://pytorch.org/get-started/previous-versions/" class="inline-onebox" rel="noopener nofollow ugc">Previous PyTorch Versions | PyTorch</a>.</p>