This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Summary

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

Repository
rOMP OpenMP

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.