This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NVPTX] Disable building NVPTX deviceRTL by default on a non-CUDA system
ClosedPublic

Authored by tianshilei1992 on Jan 27 2021, 12:27 PM.

Details

Summary

D95466 dropped CUDA to build NVPTX deviceRTL and enabled it by default.
However, the building requires some libraries that are not available on non-CUDA
system by default, which could break the compilation. This patch disabled the
build by default. It can be enabled with LIBOMPTARGET_BUILD_NVPTX_BCLIB=ON.

Diff Detail

Event Timeline

tianshilei1992 requested review of this revision.Jan 27 2021, 12:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2021, 12:27 PM
kparzysz accepted this revision.Jan 27 2021, 1:01 PM

This compiles ok on my machine.

This revision is now accepted and ready to land.Jan 27 2021, 1:01 PM

also need to be backported to 12

This revision was landed with ongoing or failed builds.Jan 27 2021, 2:06 PM
This revision was automatically updated to reflect the committed changes.