This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Make CUDA math library functions SPMD amenable
ClosedPublic

Authored by jhuber6 on Aug 30 2021, 4:55 PM.

Details

Summary

This patch adds the SPMD amenable assumption to the CUDA math library
defintions in Clang. Previously these functions would block SPMD
execution on the device because they're intrinsic calls into the library
and can't be calculated. These functions don't have side-effects so they
are safe to execute in SPMD mode.

Depends on D105937

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 30 2021, 4:55 PM
jhuber6 requested review of this revision.Aug 30 2021, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2021, 4:55 PM
This revision is now accepted and ready to land.Aug 30 2021, 8:37 PM
jhuber6 updated this revision to Diff 371153.Sep 7 2021, 12:42 PM

Adding no_openmp assumption as well.

jhuber6 updated this revision to Diff 371162.Sep 7 2021, 1:02 PM

Fixing end assumes using wrong syntax.

This revision was landed with ongoing or failed builds.Sep 10 2021, 11:53 AM
This revision was automatically updated to reflect the committed changes.