diff options
author | Chung-Lin Tang <cltang@codesourcery.com> | 2020-08-20 07:18:51 -0700 |
---|---|---|
committer | Chung-Lin Tang <cltang@codesourcery.com> | 2020-08-20 07:18:51 -0700 |
commit | f9b9832837b65046a8f01c18597cf615ff61db40 (patch) | |
tree | 15f85186a732ae278e234b344ac376071eea3b39 /gcc/cppbuiltin.c | |
parent | 656218ab982cc22b826227045826c92743143af1 (diff) | |
download | gcc-f9b9832837b65046a8f01c18597cf615ff61db40.zip gcc-f9b9832837b65046a8f01c18597cf615ff61db40.tar.gz gcc-f9b9832837b65046a8f01c18597cf615ff61db40.tar.bz2 |
libgomp: adjust nvptx_free callback context checking
Change test for CUDA callback context in nvptx_free() from using
GOMP_PLUGIN_acc_thread () into checking for CUDA_ERROR_NOT_PERMITTED,
for the former only works for OpenACC, but not OpenMP offloading.
2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
libgomp/
* plugin/plugin-nvptx.c (nvptx_free):
Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
comments.
Diffstat (limited to 'gcc/cppbuiltin.c')
0 files changed, 0 insertions, 0 deletions