This is an archive of the discontinued LLVM Phabricator instance.

[openmp] Do not use shared memory on Android
ClosedPublic

Authored by pirama on Jul 30 2021, 10:10 AM.

Details

Summary

Android provides ashmem/ASharedMemory support on newer releases, which
we can use if requested by openmp users on Android.

Diff Detail

Event Timeline

pirama created this revision.Jul 30 2021, 10:10 AM
pirama requested review of this revision.Jul 30 2021, 10:10 AM
Herald added a project: Restricted Project. · View Herald Transcript

I uploaded this as a starter but we should abstract the check to avoid repetition. Is kmp_config.h.cmake or kmp_platform.h a good place for defining a 'KMP_USE_SHMEM' and using it here?

Also, I added reviewers based on arc cover. Please add other relevant reviewers.

pirama updated this revision to Diff 364901.Aug 6 2021, 3:44 PM

Refactor preprocessor check to kmp_config.h.

This revision is now accepted and ready to land.Aug 9 2021, 3:09 AM
This revision was landed with ongoing or failed builds.Aug 9 2021, 9:47 AM
This revision was automatically updated to reflect the committed changes.