public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/97331] New: [nvptx] Provide GCN_NUM_TEAMS/GCN_NUM_THREADS equivalent
@ 2020-10-08  8:40 vries at gcc dot gnu.org
  2020-10-08  8:50 ` [Bug libgomp/97331] " jakub at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2020-10-08  8:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97331

            Bug ID: 97331
           Summary: [nvptx] Provide GCN_NUM_TEAMS/GCN_NUM_THREADS
                    equivalent
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

When looking at the gcn plugin, there are a number of environment variables
that set/limit launch dimensions:
...
$ grep getenv libgomp/plugin/plugin-gcn.c | grep NUM
  const char *x = secure_getenv ("GCN_NUM_TEAMS");
    x = secure_getenv ("GCN_NUM_GANGS");
  const char *z = secure_getenv ("GCN_NUM_THREADS");
    z = secure_getenv ("GCN_NUM_WORKERS");
...

It would be nice to have similar ones for nvptx.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libgomp/97331] [nvptx] Provide GCN_NUM_TEAMS/GCN_NUM_THREADS equivalent
  2020-10-08  8:40 [Bug libgomp/97331] New: [nvptx] Provide GCN_NUM_TEAMS/GCN_NUM_THREADS equivalent vries at gcc dot gnu.org
@ 2020-10-08  8:50 ` jakub at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-10-08  8:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97331

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The OpenMP 5.1 way is OMP_{NUM_THREADS,...}_DEV_{0,1,2,...} etc., but we aren't
there yet.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-08  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08  8:40 [Bug libgomp/97331] New: [nvptx] Provide GCN_NUM_TEAMS/GCN_NUM_THREADS equivalent vries at gcc dot gnu.org
2020-10-08  8:50 ` [Bug libgomp/97331] " jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).