Page MenuHomePhabricator

[OpenMP-RT] Fix debug string for NVPTX runtime library

Authored by carlo.bertolli on Jan 31 2018, 12:09 PM.



The method ThreadsInTeam is used to determine the number of threads to be used in a parallel region under SPMD mode (see line 127 of supporti.h in libomptarget/deviceRTLs/nvptx/src/). This patch fixes the corresponding debug print upon initialization of the kernel in SPMD mode.

Diff Detail


Event Timeline

Hahnfeld accepted this revision.Jan 31 2018, 12:19 PM

Right, nthreads should be zero if I read InitLevelOneTaskDescr correctly?

This revision is now accepted and ready to land.Jan 31 2018, 12:19 PM
carlo.bertolli closed this revision.Feb 1 2018, 8:14 AM

That's correct, debug printfs were reporting zero threads to be used in SPMD region instead of the actual number used.

Committed revision 323978.