Repository: pytorch
Issue: RuntimeError: CUDA error: unknown error
Labels: needs reproduction,module: cuda,triaged

Hi there,
I am issuing this problem on pytorch. I know that there are lots of similar issues like this, however none of the solution proposed works to me. 

I am using this Linux system configuration:
> __Hardware Information__
Machine                                       : x86_64
CPU Name                                      : skylake-avx512
CPU count                                     : 64
CFS restrictions                              : None
CPU Features                                  :
64bit adx aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vl bmi bmi2
clflushopt clwb cmov cx16 f16c fma fsgsbase invpcid lzcnt mmx movbe pclmul pku
popcnt prfchw rdrnd rdseed rtm sahf sse sse2 sse3 sse4.1 sse4.2 ssse3 xsave
xsavec xsaveopt xsaves

> __OS Information__
Platform                                      : Linux-3.10.0-1062.1.2.el7.x86_64-x86_64-with-redhat-7.6-Nitrogen
Release                                       : 3.10.0-1062.1.2.el7.x86_64
System Name                                   : Linux
Version                                       : #1 SMP Fri Sep 20 08:24:10 CDT 2019
OS specific info                              : Scientific Linux7.6Nitrogen
glibc info                                    : glibc 2.10

> __Python Information__
Python Compiler                               : GCC 7.3.0
Python Implementation                         : CPython
Python Version                                : 3.7.4
Python Locale                                 : en_GB UTF-8

> __LLVM information__
LLVM version                                  : 8.0.0

> __CUDA Information__
Found 1 CUDA devices
id 0              b'TITAN V'                              [SUPPORTED]
                      compute capability: 7.0
                           pci device id: 0
                              pci bus id: 175
Summary:
        1/1 devices are supported
CUDA driver version                           : 10010
CUDA libraries:
Finding cublas from Conda environment
        named  libcublas.so.10.2.0.168
        trying to open library...       ok
Finding cusparse from Conda environment
        named  libcusparse.so.10.1.168
        trying to open library...       ok
Finding cufft from Conda environment
        named  libcufft.so.10.1.168
        trying to open library...       ok
Finding curand from Conda environment
        named  libcurand.so.10.1.168
        trying to open library...       ok
Finding nvvm from Conda environment
        named  libnvvm.so.3.3.0
        trying to open library...       ok
Finding libdevice from Conda environment
        searching for compute_20...     ok
        searching for compute_30...     ok
        searching for compute_35...     ok
        searching for compute_50...     ok

I tried to remove the ~./nv folder, updated the last CUDA and nvidia drivers, without success.
I was just verifying if everything works with the system configuration, just by running two lines of code:
```python
import torch
torch.rand(1).cuda()
```
and I got this error
```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: CUDA error: unknown error
```
I also have the same error if I try to run another piece of code from another project I have.
The nvidia GPU samples work correctly, so I believe that nvidia drivers and CUDA drivers are ok.