[gomp4] Lack of OpenACC NVPTX devices is not an error during scanning
Julian Brown
julian@codesourcery.com
Tue May 19 10:40:00 GMT 2015
Hi,
This patch fixes an oversight whereby if the CUDA libraries are
available for some reason on a system that doesn't actually contain an
nVidia card, an OpenACC program will raise an error if the NVPTX
backend is picked as a default instead of falling back to some other
device instead.
OK for gomp4 branch? For trunk?
Thanks,
Julian
ChangeLog
libgomp/
* plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
on cuInit failure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-ptx-devices-not-error-1.diff
Type: text/x-patch
Size: 839 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150519/f14c3dc0/attachment.bin>
More information about the Gcc-patches
mailing list