From fe997dbbca79b829ae36080def10ada6a1dcded2 Mon Sep 17 00:00:00 2001 From: Alexey Kamenev <alexeyk@microsoft.com> Date: Thu, 11 Feb 2016 15:02:38 -0800 Subject: [PATCH] Fix for printf warning. --- Source/Math/CuDnnConvolutionEngine.cu | 2 +- Source/Math/GPUMatrix.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Math/CuDnnConvolutionEngine.cu b/Source/Math/CuDnnConvolutionEngine.cu index 20b07f577018..64ab0b109d21 100644 --- a/Source/Math/CuDnnConvolutionEngine.cu +++ b/Source/Math/CuDnnConvolutionEngine.cu @@ -463,7 +463,7 @@ public: t(scaleBiasT), ptr(scale), ptr(bias), ptr(runMean), ptr(runInvStdDev), CUDNN_BN_MIN_EPSILON)); } else if (m_bnImpl == BatchNormImpl::Cntk) - {; + { CUDA_CALL(BatchNormalizationForwardInference(inT, spatial, ptr(in), ptr(out), ptr(scale), ptr(bias), ptr(runMean), ptr(runInvStdDev), m_stream)); } diff --git a/Source/Math/GPUMatrix.cu b/Source/Math/GPUMatrix.cu index a66c5f15e8bc..270d3fb32062 100644 --- a/Source/Math/GPUMatrix.cu +++ b/Source/Math/GPUMatrix.cu @@ -4300,7 +4300,7 @@ void GPUMatrix<ElemType>::CreateCurandObject(unsigned long seed, const char* cal if (s_curandGenerator == NULL) { unsigned long long cudaSeed = (seed == USE_TIME_BASED_SEED) ? time(NULL) : seed; - fprintf(stderr, "%s (GPU): creating curand object with seed %llu, sizeof(ElemType)==%u\n", + fprintf(stderr, "%s (GPU): creating curand object with seed %llu, sizeof(ElemType)==%lu\n", caller, cudaSeed, (unsigned long)sizeof(ElemType)); s_curandGenerator = new curandGenerator_t; // Create pseudo-random number generator