[openacc] adjust default num_gangs

Cesar Philippidis cesar@codesourcery.com
Wed Nov 2 19:35:00 GMT 2016


This patch teaches the libgomp runtime how to probe the CUDA driver to
extract the number of Stream Multiprocessors that are available on the
graphics hardware and use that as the default value for num_gangs.
Without that patch, libgomp used to have num_gangs default to 32, which
was chosen arbitrarily. At least this value maps onto a hardware value.

More details regarding this patch can be found here:

  https://gcc.gnu.org/ml/gcc-patches/2016-08/msg02064.html
  https://gcc.gnu.org/ml/gcc-patches/2016-08/msg02084.html

Is this patch OK for trunk?

Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default-parallelism.diff
Type: text/x-patch
Size: 5345 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161102/182dc40f/attachment.bin>


More information about the Gcc-patches mailing list