Collecting environment information…
PyTorch version: 1.8.1+cu111
Is debug build: False
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A
OS: Microsoft Windows Server 2019 Standard
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.20.1
Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: 11.1.105
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip3] numpy==1.20.2
[pip3] numpydoc==1.1.0
[pip3] torch==1.8.1+cu111
[pip3] torchaudio==0.8.1
[pip3] torchvision==0.9.1+cu111
[conda] blas                      1.0                         mkl
[conda] mkl                       2021.2.0           haa95532_296
[conda] mkl-include               2021.2.0           haa95532_296
[conda] mkl-service               2.3.0            py37h2bbff1b_1
[conda] mkl_fft                   1.3.0            py37h277e83a_2
[conda] mkl_random                1.2.1            py37hf11a4ad_2
[conda] numpy                     1.20.2                   pypi_0    pypi
[conda] numpy-base                1.20.1           py37haf7ebc8_0
[conda] numpydoc                  1.1.0              pyhd3eb1b0_1
[conda] torch                     1.8.1+cu111              pypi_0    pypi
[conda] torchaudio                0.8.1                    pypi_0    pypi
[conda] torchvision               0.9.1+cu111              pypi_0    pypi
Fri Apr 23 20:12:41 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 456.81       Driver Version: 456.81       CUDA Version: 11.1     |
|-------------------------------±---------------------±---------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla K20c          TCC  | 00000000:82:00.0 Off |                    0 |
| 30%   27C    P8    16W / 225W |      9MiB /  4737MiB |      0%      Default |
|                               |                      |                  N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
±----------------------------------------------------------------------------+
Simple code:
import torch
print(‘F’, torch.tensor([1.0, 2.0]).cuda())
Error:
F Traceback (most recent call last):
File “G:\Python_projects\OCR_new\1.py”, line 12, in 
print(‘F’, torch.tensor([1.0, 2.0]).cuda())
File “C:\Users\mgoliyad_admin\AppData\Local\Continuum\anaconda3\envs\cuda_11\lib\site-packages\torch\tensor.py”, line 193, in repr
return torch._tensor_str._str(self)
File “C:\Users\mgoliyad_admin\AppData\Local\Continuum\anaconda3\envs\cuda_11\lib\site-packages\torch_tensor_str.py”, line 383, in _str
return _str_intern(self)
File “C:\Users\mgoliyad_admin\AppData\Local\Continuum\anaconda3\envs\cuda_11\lib\site-packages\torch_tensor_str.py”, line 358, in _str_intern
tensor_str = _tensor_str(self, indent)
File “C:\Users\mgoliyad_admin\AppData\Local\Continuum\anaconda3\envs\cuda_11\lib\site-packages\torch_tensor_str.py”, line 242, in _tensor_str
formatter = _Formatter(get_summarized_data(self) if summarize else self)
File “C:\Users\mgoliyad_admin\AppData\Local\Continuum\anaconda3\envs\cuda_11\lib\site-packages\torch_tensor_str.py”, line 90, in init
nonzero_finite_vals = torch.masked_select(tensor_view, torch.isfinite(tensor_view) & tensor_view.ne(0))
RuntimeError: CUDA error: no kernel image is available for execution on the device
(cuda_11) G:\Python_projects\OCR_new>