Properly use cudaGetLastError return code. (#18485)
authorEdward Yang <ezyang@fb.com>
Tue, 26 Mar 2019 19:17:31 +0000 (12:17 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 26 Mar 2019 19:26:44 +0000 (12:26 -0700)
commit0aeaeffb6c59d514d080db00078c6a59ef77d4e4
treebf38b54106348207e16b89514af74842f4cec4be
parent265fa0ce4d4a10feeeaf76c2445fdd1fe0080b2e
Properly use cudaGetLastError return code. (#18485)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18485

I don't know how (1) we landed the wrong version of the patch and (2) how
this passed the push blocking test

Reviewed By: pjh5

Differential Revision: D14621961

fbshipit-source-id: 0a3953d7adcdc79727a61c2acff65f436dcafe55
c10/cuda/CUDAFunctions.h