This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/78266] broken openacc loop partitioning on nvptx offloading targets
- From: "cesar at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Aug 2017 17:22:49 +0000
- Subject: [Bug middle-end/78266] broken openacc loop partitioning on nvptx offloading targets
- Auto-submitted: auto-generated
- References: <bug-78266-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78266
--- Comment #6 from cesar at gcc dot gnu.org ---
I'm not sure that solution is correct. A better solution would be to report an
error/warning stating that num_workers exceeds the size of the induction
variable. Also, in the case that user doesn't specify num_gangs and the type of
the induction variable is less than integer_node_type, then hard-code num_gangs
to 255 or something small so that the runtime doesn't assign num_gangs that
generate bogus results.