diff options
author | Xiaodong Wang <xdwang@fb.com> | 2019-02-11 12:27:12 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-02-11 13:18:36 -0800 |
commit | af0c79eed4080e9937e1ab5bbcaec7b27a249e49 (patch) | |
tree | 0d26f8b93c577dee4135343694c9a9e2fd8cb70f /README.md | |
parent | 29f096cc70cf9cc1a317ae7107228215b7dde60b (diff) | |
download | pytorch-af0c79eed4080e9937e1ab5bbcaec7b27a249e49.tar.gz pytorch-af0c79eed4080e9937e1ab5bbcaec7b27a249e49.tar.bz2 pytorch-af0c79eed4080e9937e1ab5bbcaec7b27a249e49.zip |
Catch cudaError_t return val (nodiscard in rocm) (#16399)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16399
Catching cudaError_t return values in a few places, because it's nodiscard in rocm. Unless we add -Wno-unused-result, it'll end up with a compilation error.
Also in c10/cuda/test, check whether a host has GPU or not. We were silently throwing out the error before (so not really testing the cuda api).
Reviewed By: bddppq
Differential Revision: D13828281
fbshipit-source-id: 587d1cc31c20b836ce9594e3c18f067d322b2934
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions