Skip to content

Commit eff4f1a

Browse files
committed
Remove a deadlock. The call GetStats() also ask for the lock. But we already own it. So it deadlock.
1 parent 4ae0971 commit eff4f1a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tensorflow/core/common_runtime/gpu/gpu_cudamallocasync_allocator.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ void* GpuCudaMallocAsyncAllocator::AllocateRaw(size_t alignment,
212212
num_bytes, pool_, cuda_stream_)) {
213213
size_t free, total;
214214
cuMemGetInfo(&free, &total);
215-
mutex_lock lock(lock_);
216215
LOG(ERROR) << Name() << " cuMemAllocAsync failed to allocate " << num_bytes
217216
<< ": " << GetCudaErrorMessage(result)
218217
<< "\n Free memory/Total memory: " << free << "/" << total;

0 commit comments

Comments
 (0)