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 9ff4b28 commit 370c7d6Copy full SHA for 370c7d6
offload/libomptarget/OffloadRTL.cpp
@@ -40,10 +40,6 @@ void initRuntime() {
40
llvm::omp::target::ompt::connectLibrary();
41
#endif
42
43
- if (OffloadPolicy::isOffloadDisabled()) {
44
- DP("Offload is disabled. Skipping plugin initialization\n");
45
- return;
46
- }
47
PM->init();
48
PM->registerDelayedLibraries();
49
}
offload/libomptarget/PluginManager.cpp
@@ -30,6 +30,11 @@ PluginManager *PM = nullptr;
30
31
void PluginManager::init() {
32
TIMESCOPE();
33
+ if (OffloadPolicy::isOffloadDisabled()) {
34
+ DP("Offload is disabled. Skipping plugin initialization\n");
35
+ return;
36
+ }
37
+
38
DP("Loading RTLs...\n");
39
// Attempt to create an instance of each supported plugin.
0 commit comments