We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6baf698 commit 9ff4b28Copy full SHA for 9ff4b28
offload/libomptarget/OffloadRTL.cpp
@@ -32,12 +32,6 @@ void initRuntime() {
32
if (PM == nullptr)
33
PM = new PluginManager();
34
35
- if (OffloadPolicy::isOffloadDisabled()) {
36
- DP("Offload is disabled. Skipping library initialization\n");
37
- // Do only absolutely needed initialization
38
- return;
39
- }
40
-
41
RefCount++;
42
if (RefCount == 1) {
43
DP("Init offload library!\n");
@@ -46,6 +40,10 @@ void initRuntime() {
46
llvm::omp::target::ompt::connectLibrary();
47
#endif
48
+ if (OffloadPolicy::isOffloadDisabled()) {
44
+ DP("Offload is disabled. Skipping plugin initialization\n");
45
+ return;
+ }
49
PM->init();
50
PM->registerDelayedLibraries();
51
}
0 commit comments