This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget-nvptx] Fix ancestor_thread_num and team_size (non-SPMD)
ClosedPublic

Authored by Hahnfeld on Sep 7 2018, 6:32 AM.

Details

Summary

According to OpenMP 4.5, p250:12-14:

If the requested nest level is outside the range of 0 and the
nest level of the current thread, as returned by the omp_get_level
routine, the routine returns -1.

The SPMD code path will need a similar fix.

Diff Detail

Repository
rL LLVM

Event Timeline

Hahnfeld created this revision.Sep 7 2018, 6:32 AM
grokos accepted this revision.Sep 29 2018, 12:35 PM

Looks good.

This revision is now accepted and ready to land.Sep 29 2018, 12:35 PM
This revision was automatically updated to reflect the committed changes.