From 5304784b6ccd9ce9dd08eee6e46d903067f9fdc6 Mon Sep 17 00:00:00 2001 From: Frank Seide Date: Mon, 29 Feb 2016 21:27:49 -0800 Subject: [PATCH] fixed NoGPU build re do_sync; updated ExperimentalHTKMLFReader w.r.t. file naming --- Makefile | 4 ++-- Source/Math/NoGPU.cpp | 8 -------- .../ExperimentalHTKMLFReader.vcxproj | 4 ++-- .../ExperimentalHTKMLFReader.vcxproj.filters | 4 ++-- .../{DataReader.cpp => Exports.cpp} | 0 5 files changed, 6 insertions(+), 14 deletions(-) rename Source/Readers/ExperimentalHTKMLFReader/{DataReader.cpp => Exports.cpp} (100%) diff --git a/Makefile b/Makefile index d3439fac9af1..975689301433 100644 --- a/Makefile +++ b/Makefile @@ -327,10 +327,10 @@ $(LIBDIR)/HTKMLFReader.so: $(HTKMLFREADER_OBJ) | $(CNTKMATH_LIB) ######################################## EXPERIMENTALHTKMLFREADER_SRC =\ - $(SOURCEDIR)/Readers/HTKMLFReader/DataWriter.cpp \ + $(SOURCEDIR)/Readers/HTKMLFReader/DataWriterLocal.cpp \ $(SOURCEDIR)/Readers/HTKMLFReader/HTKMLFWriter.cpp \ $(SOURCEDIR)/Readers/ExperimentalHTKMLFReader/ConfigHelper.cpp \ - $(SOURCEDIR)/Readers/ExperimentalHTKMLFReader/DataReader.cpp \ + $(SOURCEDIR)/Readers/ExperimentalHTKMLFReader/Exports.cpp \ $(SOURCEDIR)/Readers/ExperimentalHTKMLFReader/HTKDataDeserializer.cpp \ $(SOURCEDIR)/Readers/ExperimentalHTKMLFReader/HTKMLFReader.cpp \ $(SOURCEDIR)/Readers/ExperimentalHTKMLFReader/MLFDataDeserializer.cpp \ diff --git a/Source/Math/NoGPU.cpp b/Source/Math/NoGPU.cpp index 7e11bdbc671e..41e793884a81 100644 --- a/Source/Math/NoGPU.cpp +++ b/Source/Math/NoGPU.cpp @@ -214,14 +214,6 @@ ElemType GPUSparseMatrix::Adagrad(GPUMatrix& c, const bool n //template //void GPUSparseMatrix::FSAdagrad(CPUMatrix& gradients, CPUMatrix&, ElemType, ElemType, ElemType, ElemType) { } -#ifdef NO_SYNC -template -bool GPUSparseMatrix::do_sync = false; -#else -template -bool GPUSparseMatrix::do_sync = true; -#endif - template void GPUSparseMatrix::MultiplyAndWeightedAdd(ElemType alpha, const GPUSparseMatrix& a, const bool transposeA, const GPUMatrix& b, const bool transposeD, ElemType beta, GPUMatrix& c) diff --git a/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj b/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj index 3505c96a697a..f8a8ebfd2ce5 100644 --- a/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj +++ b/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj @@ -109,7 +109,7 @@ NotUsing - + false @@ -130,4 +130,4 @@ - + \ No newline at end of file diff --git a/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj.filters b/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj.filters index 53053f08725c..b3fa676b31c2 100644 --- a/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj.filters +++ b/Source/Readers/ExperimentalHTKMLFReader/ExperimentalHTKMLFReader.vcxproj.filters @@ -3,7 +3,6 @@ - Common @@ -23,6 +22,7 @@ Common + @@ -61,4 +61,4 @@ {812d1247-04eb-4693-a0d2-5399a94e6235} - + \ No newline at end of file diff --git a/Source/Readers/ExperimentalHTKMLFReader/DataReader.cpp b/Source/Readers/ExperimentalHTKMLFReader/Exports.cpp similarity index 100% rename from Source/Readers/ExperimentalHTKMLFReader/DataReader.cpp rename to Source/Readers/ExperimentalHTKMLFReader/Exports.cpp