This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Introduce ompx.h and 3D wrappers (threadId, threadDim, ...)
ClosedPublic

Authored by jdoerfert on Jul 27 2023, 8:50 PM.

Details

Summary

The new ompx.h header will give us a place to put extensions. The first
are 3D getters for the common cuda values:

`{threadId,threadDim,blockId,blockDim}.{x,y,z}`

Diff Detail

Event Timeline

jdoerfert created this revision.Jul 27 2023, 8:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 8:50 PM
jdoerfert requested review of this revision.Jul 27 2023, 8:50 PM
jdoerfert updated this revision to Diff 545012.Jul 27 2023, 8:51 PM

add missing file

tianshilei1992 added inline comments.Jul 27 2023, 8:55 PM
openmp/runtime/src/include/ompx.h.var
50

Since the patch contains host support as well, we need a test for host.

jdoerfert added inline comments.Jul 27 2023, 9:57 PM
openmp/runtime/src/include/ompx.h.var
50

The tests are for device and host, no?

tianshilei1992 accepted this revision.Jul 31 2023, 9:07 AM
This revision is now accepted and ready to land.Jul 31 2023, 9:07 AM
This revision was landed with ongoing or failed builds.Jul 31 2023, 1:45 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 1:45 PM