File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ CUDADeviceContext::~CUDADeviceContext() {
175
175
Place CUDADeviceContext::GetPlace () const { return place_; }
176
176
177
177
void CUDADeviceContext::Wait () const {
178
- std::lock_guard<std::recursive_mutex> guard (mutex_);
179
178
PADDLE_ENFORCE (cudaStreamSynchronize (stream_));
180
179
PADDLE_ENFORCE (cudaGetLastError ());
181
180
}
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ class CUDADeviceContext : public DeviceContext {
100
100
101
101
template <typename Callback>
102
102
void RecordEvent (cudaEvent_t ev, Callback callback) {
103
- std::lock_guard<std::recursive_mutex> guard (mutex_);
104
103
callback ();
105
104
PADDLE_ENFORCE (cudaEventRecord (ev, stream_));
106
105
}
@@ -110,8 +109,6 @@ class CUDADeviceContext : public DeviceContext {
110
109
111
110
std::unique_ptr<Eigen::GpuDevice> eigen_device_;
112
111
std::unique_ptr<EigenCudaStreamDevice> eigen_stream_;
113
-
114
- mutable std::recursive_mutex mutex_;
115
112
cudaStream_t stream_;
116
113
cudnnHandle_t cudnn_handle_;
117
114
cublasHandle_t cublas_handle_;
You can’t perform that action at this time.
0 commit comments