Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/src/interface.cpp
Show All 38 Lines | if (RTL.register_lib) { | ||||
DP("Could not register library with %s", RTL.RTLName.c_str()); | DP("Could not register library with %s", RTL.RTLName.c_str()); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
PM->RTLs.RegisterLib(desc); | PM->RTLs.RegisterLib(desc); | ||||
} | } | ||||
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// | ||||
/// Initialize all available devices without registering any image | |||||
EXTERN void __tgt_init_all_rtls() { PM->RTLs.initAllRTLs(); } | |||||
//////////////////////////////////////////////////////////////////////////////// | |||||
/// unloads a target shared library | /// unloads a target shared library | ||||
EXTERN void __tgt_unregister_lib(__tgt_bin_desc *desc) { | EXTERN void __tgt_unregister_lib(__tgt_bin_desc *desc) { | ||||
TIMESCOPE(); | TIMESCOPE(); | ||||
PM->RTLs.UnregisterLib(desc); | PM->RTLs.UnregisterLib(desc); | ||||
for (auto &RTL : PM->RTLs.UsedRTLs) { | for (auto &RTL : PM->RTLs.UsedRTLs) { | ||||
if (RTL->unregister_lib) { | if (RTL->unregister_lib) { | ||||
if ((*RTL->unregister_lib)(desc) != OFFLOAD_SUCCESS) { | if ((*RTL->unregister_lib)(desc) != OFFLOAD_SUCCESS) { | ||||
DP("Could not register library with %s", RTL->RTLName.c_str()); | DP("Could not register library with %s", RTL->RTLName.c_str()); | ||||
▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines |