Skip to content

Commit

Permalink
Merge pull request #108 from drnikolaev/nvcaffe-0.14-orig
Browse files Browse the repository at this point in the history
200169109 fix
  • Loading branch information
lukeyeager committed Jan 29, 2016
2 parents c887de9 + b0074e1 commit 3ba0387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/caffe/util/gpu_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ namespace caffe {
}
// retry once
CUDA_CHECK(cubAlloc->DeviceAllocate(ptr, size, stream));
// If retry succeeds we need to clean up last error:
cudaGetLastError();
}
break;
default:
Expand Down

0 comments on commit 3ba0387

Please # to comment.