This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][CUDA] Clean up the logic to initialize the limit and default number for teams and threads.
AbandonedPublic

Authored by tianshilei1992 on Mar 8 2022, 3:30 PM.

Details

Reviewers
jdoerfert
jhuber6
Summary

This patch makes some cleanup to the logic to determine the limit and
number of teams and threads to make it more clear.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Mar 8 2022, 3:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2022, 3:30 PM
tianshilei1992 requested review of this revision.Mar 8 2022, 3:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2022, 3:30 PM
tianshilei1992 added inline comments.Mar 8 2022, 3:31 PM
openmp/libomptarget/plugins/cuda/src/rtl.cpp
1151

If both num_teams and OMP_NUM_TEAMS exist, which one to honor?

tianshilei1992 abandoned this revision.Sep 4 2022, 12:18 PM