diff --git a/Common/hostname.h b/Common/Include/hostname.h similarity index 90% rename from Common/hostname.h rename to Common/Include/hostname.h index 41690f789..d1de27abb 100644 --- a/Common/hostname.h +++ b/Common/Include/hostname.h @@ -7,6 +7,9 @@ #pragma once #include + +#ifdef _WIN32 + #include // Note: this may conflict with WinSock2.h users (dup definition errors; don't know a general solution) #pragma comment(lib, "ws2_32.lib") @@ -38,3 +41,7 @@ public: assign (hostname); } }; + +#else // __unix__ +std::string GetHostName() { return "localhost"; } // TODO: implement this for Linux/GCC +#endif diff --git a/MachineLearning/cn/ComputationNetworkHelper.h b/MachineLearning/cn/ComputationNetworkHelper.h index abc3582e5..5c088b2df 100644 --- a/MachineLearning/cn/ComputationNetworkHelper.h +++ b/MachineLearning/cn/ComputationNetworkHelper.h @@ -13,8 +13,8 @@ #include "basetypes.h" #include "fileutil.h" #include "commandArgUtil.h" -#include -#include +//#include +//#include #include using namespace std; diff --git a/MachineLearning/cn/SGD.h b/MachineLearning/cn/SGD.h index ef39cbf66..d23b071e7 100644 --- a/MachineLearning/cn/SGD.h +++ b/MachineLearning/cn/SGD.h @@ -14,9 +14,6 @@ #include "basetypes.h" #include "fileutil.h" #include "commandArgUtil.h" -#include -#include -#include #include #include diff --git a/MachineLearning/cn/SimpleEvaluator.h b/MachineLearning/cn/SimpleEvaluator.h index 8686c3a8a..2717efcfe 100644 --- a/MachineLearning/cn/SimpleEvaluator.h +++ b/MachineLearning/cn/SimpleEvaluator.h @@ -14,8 +14,6 @@ #include "basetypes.h" #include "fileutil.h" #include "commandArgUtil.h" -#include -#include #include using namespace std; diff --git a/MachineLearning/cn/SimpleOutputWriter.h b/MachineLearning/cn/SimpleOutputWriter.h index b514e72dc..a0e99891c 100644 --- a/MachineLearning/cn/SimpleOutputWriter.h +++ b/MachineLearning/cn/SimpleOutputWriter.h @@ -14,8 +14,6 @@ #include "basetypes.h" #include "fileutil.h" #include "commandArgUtil.h" -#include -#include #include using namespace std; diff --git a/MachineLearning/cn/cn.cpp b/MachineLearning/cn/cn.cpp index f9c12942e..1773c2ce7 100644 --- a/MachineLearning/cn/cn.cpp +++ b/MachineLearning/cn/cn.cpp @@ -25,7 +25,6 @@ #include #include "io.h" #include "hostname.h" -#include #ifdef LEAKDETECT #include "vld.h" // for memory leak detection #endif diff --git a/MachineLearning/cn/cn.vcxproj b/MachineLearning/cn/cn.vcxproj index fd207b7d2..43b897ab0 100644 --- a/MachineLearning/cn/cn.vcxproj +++ b/MachineLearning/cn/cn.vcxproj @@ -219,6 +219,7 @@ + diff --git a/MachineLearning/cn/cn.vcxproj.filters b/MachineLearning/cn/cn.vcxproj.filters index 1b374cc33..4a9cca7f1 100644 --- a/MachineLearning/cn/cn.vcxproj.filters +++ b/MachineLearning/cn/cn.vcxproj.filters @@ -16,17 +16,33 @@ Common + + Common + Common - - - - - - - - + + Model Editing + + + Nodes + + + Execution Engine + + + Network + + + Main + + + Main + + + Main + @@ -56,35 +72,86 @@ Common\Include - - - - - - - - - - - - - - - - - - - - + + Network + + + Network + + + Network + + + Execution Engine + + + Model Editing + + + Nodes + + + Nodes + + + Nodes + + + Network + + + Network + - Common + Network + + + Network + + + Execution Engine + + + Execution Engine + + + Network + + + Network + + + Network + + + Execution Engine + + + Nodes + + + Main + + + Main + + + Common\Include - - - - + + Model Editing + + + Model Editing + + + Main + + + Main + @@ -93,5 +160,20 @@ {85226dda-87ba-4da6-af04-563d0ce23b94} + + {498bb2e9-53de-4955-970e-813e3f21025b} + + + {53c3735f-1374-4044-ab58-8a646c95a5e8} + + + {3ddfc109-3a90-45f5-91e8-1930759cfe9d} + + + {0b366814-48b2-4619-bf92-85ee24e3cbc1} + + + {3c119a92-ffb2-4850-adae-01778324974d} + \ No newline at end of file