[OpenMP][NFCI] Remove effectively unused mutex
The only use was already guarded by a different lock in the caller of loadBinary.
This commit is contained in:
parent
f0ccaeecd2
commit
2ada7bb68b
@ -82,11 +82,6 @@ struct PluginAdaptorTy {
|
||||
|
||||
llvm::DenseSet<const __tgt_device_image *> UsedImages;
|
||||
|
||||
// Mutex for thread-safety when calling RTL interface functions.
|
||||
// It is easier to enforce thread-safety at the libomptarget level,
|
||||
// so that developers of new RTLs do not have to worry about it.
|
||||
std::mutex Mtx;
|
||||
|
||||
private:
|
||||
/// Number of devices the underling plugins sees.
|
||||
int32_t NumberOfPluginDevices = -1;
|
||||
|
||||
@ -561,7 +561,6 @@ llvm::Error DeviceTy::init() {
|
||||
|
||||
// Load binary to device.
|
||||
__tgt_target_table *DeviceTy::loadBinary(__tgt_device_image *Img) {
|
||||
std::lock_guard<decltype(RTL->Mtx)> LG(RTL->Mtx);
|
||||
return RTL->load_binary(RTLDeviceID, Img);
|
||||
}
|
||||
|
||||
|
||||
@ -14,10 +14,7 @@
|
||||
#include "OpenMP/OMPT/Interface.h"
|
||||
#include "OpenMP/OMPT/Callback.h"
|
||||
#include "PluginManager.h"
|
||||
#include "device.h"
|
||||
#include "omptarget.h"
|
||||
#include "private.h"
|
||||
#include "rtl.h"
|
||||
|
||||
#include "Shared/EnvironmentVar.h"
|
||||
#include "Shared/Profile.h"
|
||||
@ -28,8 +25,6 @@
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <mutex>
|
||||
#include <type_traits>
|
||||
|
||||
#ifdef OMPT_SUPPORT
|
||||
using namespace llvm::omp::target::ompt;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user