[Openmp-commits] [clang] [llvm] [openmp] ReworkCtorDtor (PR #71739)

Artem Belevich via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 8 14:24:05 PST 2023

@@ -95,7 +95,7 @@ using namespace llvm;
 static cl::opt<bool>
                   cl::desc("Lower GPU ctor / dtors to globals on the device."),
-                  cl::init(false), cl::Hidden);
+                  cl::init(true), cl::Hidden);
Artem-B wrote:

This will allow global constructors/destructors for all users by default, but it relies on something to call those constructors and that something will only be provided by OpenMP. We do want to diagnose it if there's no runtime support avaialble.

I think we still need to keep false as the default.


More information about the Openmp-commits mailing list