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

Commit

Permalink
Fix warning on macro expansion using defined.
Browse files Browse the repository at this point in the history
warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
  • Loading branch information
larroy committed Apr 5, 2019
1 parent d5d1d7a commit ed0dfd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/operator/nn/dropout-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
#include "../random/sampler.h"
#include "../tensor/elemwise_binary_broadcast_op.h"

#define MXNET_USE_MKL_DROPOUT defined(USE_MKL) && defined(_OPENMP) && !defined(__CUDACC__)
#if defined(USE_MKL) && defined(_OPENMP) && !defined(__CUDACC__)
#define MXNET_USE_MKL_DROPOUT 1
#endif

#if MXNET_USE_MKL_DROPOUT
#include <omp.h>

Expand Down

0 comments on commit ed0dfd5

Please sign in to comment.