This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Disable building `libomptarget` on 32-bit systems
ClosedPublic

Authored by tianshilei1992 on Jan 18 2023, 7:44 AM.

Details

Summary

There are plenty of assumptions in libomptarget and the device runtime
about the pointer size or size_t, etc. 32-bit systems are not supported. There
is no point to refine whole things to make it portable. This patch simply disables
building on 32-bit systems.

Fix #60121.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Jan 18 2023, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2023, 7:44 AM
tianshilei1992 requested review of this revision.Jan 18 2023, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2023, 7:44 AM
tianshilei1992 edited the summary of this revision. (Show Details)Jan 18 2023, 7:50 AM

update one more

tianshilei1992 edited the summary of this revision. (Show Details)Jan 18 2023, 7:52 AM
jdoerfert accepted this revision.Jan 18 2023, 10:37 AM

LG

openmp/CMakeLists.txt
77–78
This revision is now accepted and ready to land.Jan 18 2023, 10:37 AM