[patch][OpenACC] Add target hook TARGET_GOACC_ADJUST_PARALLELISM

Cesar Philippidis cesar_philippidis@mentor.com
Wed Sep 5 20:05:00 GMT 2018


At present, GCC fixes the vector length on all targets. However, that is
an artificial restriction. This patch introduces a new
TARGET_GOACC_ADJUST_PARALLELISM hook that enables the runtime to correct
the default number of acc workers and vectors. Extra care need to be
done to ensure that large vectors fit inside workers. The target hook
itself doesn't do anything for the host, but the nvptx BE will make use
of it.

Is this patch OK for trunk? I regtested and bootstrapped for x86_64 with
nvptx offloading.

Thanks,
Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-openacc-Add-target-hook-TARGET_GOACC_ADJUST_PARALLEL.patch
Type: text/x-patch
Size: 4508 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180905/8e507c9b/attachment.bin>


More information about the Gcc-patches mailing list