On 10/30/2015 05:44 PM, Alexander Monakov wrote:
+ /* Ignore "omp target entrypoint" here: OpenMP target region functions are + called from gomp_nvptx_main. The corresponding kernel entry is emitted + from write_omp_entry. */ }
I'm probably confused, but didn't we agree that this should be changed so that the entry point isn't gomp_nvptx_main but instead something that wraps a call to that function?
This patch creates a new "omp target entrypoint" annotation that appears not to be used - it would be better to just not annotate a function if it's not going to need entrypoint treatment. IMO a single type of attribute should be sufficient for that.
Bernd