File tree Expand file tree Collapse file tree 3 files changed +0
-11
lines changed Expand file tree Collapse file tree 3 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,6 @@ struct PluginAdaptorTy {
82
82
83
83
llvm::DenseSet<const __tgt_device_image *> UsedImages;
84
84
85
- // Mutex for thread-safety when calling RTL interface functions.
86
- // It is easier to enforce thread-safety at the libomptarget level,
87
- // so that developers of new RTLs do not have to worry about it.
88
- std::mutex Mtx;
89
-
90
85
private:
91
86
// / Number of devices the underling plugins sees.
92
87
int32_t NumberOfPluginDevices = -1 ;
Original file line number Diff line number Diff line change @@ -561,7 +561,6 @@ llvm::Error DeviceTy::init() {
561
561
562
562
// Load binary to device.
563
563
__tgt_target_table *DeviceTy::loadBinary (__tgt_device_image *Img) {
564
- std::lock_guard<decltype (RTL->Mtx )> LG (RTL->Mtx );
565
564
return RTL->load_binary (RTLDeviceID, Img);
566
565
}
567
566
Original file line number Diff line number Diff line change 14
14
#include " OpenMP/OMPT/Interface.h"
15
15
#include " OpenMP/OMPT/Callback.h"
16
16
#include " PluginManager.h"
17
- #include " device.h"
18
- #include " omptarget.h"
19
17
#include " private.h"
20
- #include " rtl.h"
21
18
22
19
#include " Shared/EnvironmentVar.h"
23
20
#include " Shared/Profile.h"
28
25
#include < cstdint>
29
26
#include < cstdio>
30
27
#include < cstdlib>
31
- #include < mutex>
32
- #include < type_traits>
33
28
34
29
#ifdef OMPT_SUPPORT
35
30
using namespace llvm ::omp::target::ompt;
You can’t perform that action at this time.
0 commit comments