Skip to content

Commit

Permalink
Merge pull request BVLC#56 from lukeyeager/nvidia/fix-destroy-cudnn
Browse files Browse the repository at this point in the history
Fix cuDNN handle destruction error
  • Loading branch information
slayton58 committed Oct 30, 2015
2 parents ae1ac60 + d52bc27 commit 9068a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caffe/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void Caffe::SetDevice(const int device_id) {
CURAND_CHECK(curandSetPseudoRandomGeneratorSeed(Get().curand_generator_,
cluster_seedgen()));
#ifdef USE_CUDNN
if (Get().cublas_handle_) CUDNN_CHECK(cudnnDestroy(Get().cudnn_handle_));
if (Get().cudnn_handle_) CUDNN_CHECK(cudnnDestroy(Get().cudnn_handle_));
CUDNN_CHECK(cudnnCreate(&Get().cudnn_handle_));
#endif
}
Expand Down

0 comments on commit 9068a9e

Please sign in to comment.