diff --git a/doc/source/install.rst b/doc/source/install.rst index 6e90208c5..353a4e8cd 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -170,13 +170,10 @@ installed Eigen and Boost (for example, at c:\\libs\\Eigen and c:\\libs\\boost_1 This will generate dynet.sln and a bunch of \*.vcxproj files (one for the DYNET library, and one per example). You should be able to just open dynet.sln and build all. **Note: multi-process functionality is -currently not supported in Windows, so you will not be able to build -rnnlm-mp. Go to build->Configuration Manager and uncheck the box next to -this project** +currently not supported in Windows, so the multi-process examples (*-mp) will not be included +in the generated solution** -The Windows build also supports CUDA. The latest (development) version of Eigen has some code that causes problems with the CUDA compiler. These issue change as Eigen is developed. Currently, the following three changes are needed in Eigen when compiling with CUDA support: +The Windows build also supports CUDA with the latest version of Eigen (as of Oct 28, 2016), with the following code change: -- block.h: add `#ifndef __CUDACC__` / `#endif` around `EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Block)` -- ref.h: add `#ifndef __CUDACC__ / #endif` around `EIGEN_INHERIT_ASSIGNMENT_OPERATORS(RefBase)` - TensorDeviceCuda.h: Change `sleep(1)` to `Sleep(1000)` diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index c3ed0da66..d96b787ef 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,6 +1,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) -foreach(TARGET mlc tok-embed poisson-regression tag-bilstm embed-cl encdec xor xor-xent xor-batch xor-batch-lookup rnnlm rnnlm-aevb rnnlm-cfsm rnnlm-batch nlm textcat rnnlm-mp read-write xor-mp segrnn-sup) +if (NOT MSVC) + set(MP_EXAMPLES rnnlm-mp xor-mp) +endif() + +foreach(TARGET mlc tok-embed poisson-regression tag-bilstm embed-cl encdec xor xor-xent xor-batch xor-batch-lookup rnnlm rnnlm-aevb rnnlm-cfsm rnnlm-batch nlm textcat read-write segrnn-sup ${MP_EXAMPLES}) ADD_EXECUTABLE(${TARGET} ${TARGET}.cc) if (WITH_CUDA_BACKEND) target_link_libraries(${TARGET} gdynet ${LIBS})