Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
print log for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Li, Hao H committed Mar 22, 2019
1 parent a523b77 commit 908b498
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/operator/rnn-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,26 @@ class RNNOp {
const size_t work_cpu_space_size = GetRNNWorkspaceSize(param_.seq_length_, param_.batch_size_,
param_.state_size, direction, param_.mode);
DType* work_cpu_space = NULL;
#if MXNET_USE_CUDNN_RNN
LOG(INFO) << "MXNET_USE_CUDNN_RNN:true";
else
LOG(INFO) << "MXNET_USE_CUDNN_RNN:false";
#endif
#if defined(__CUDACC__)
LOG(INFO) << "defined(__CUDACC__):true";
else
LOG(INFO) << "defined(__CUDACC__):false";
#endif
#if MXNET_USE_CUDNN == 1
LOG(INFO) << "MXNET_USE_CUDNN == 1:true";
else
LOG(INFO) << "MXNET_USE_CUDNN == 1:false";
#endif
#if CUDNN_VERSION >= 7200
LOG(INFO) << "CUDNN_VERSION >= 7200:true";
else
LOG(INFO) << "CUDNN_VERSION >= 7200:false";
#endif

#if MXNET_USE_CUDNN_RNN && defined(__CUDACC__)
if (!init_cudnn_) {
Expand Down

0 comments on commit 908b498

Please sign in to comment.