mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

CMake on Windows 10

Open Chunde opened this issue 11 years ago • 15 comments

Hi, I downloaded the MXNet Source, and tried to build it on Windows 10 using VS 2015. I first use CMake GUI to load the source folder, then press configure(I know I need to set the third-party path, I have CUDA 7.5, CUDNN v3, and OpenBlas). But i got the following errors:

CMake Error at CMakeLists.txt:16 (include): include could not find load file:

mshadow/cmake/mshadow.cmake

CMake Error at CMakeLists.txt:17 (include): include could not find load file:

mshadow/cmake/Utils.cmake

CMake Error at CMakeLists.txt:18 (include): include could not find load file:

mshadow/cmake/Cuda.cmake

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find CUDA: Found unsuitable version "7.5", but required is exact version "6.0" (found C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE) C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindCUDA.cmake:845 (find_package_handle_standard_args) E:/OpenCV249/OpenCVConfig.cmake:215 (find_package) CMakeLists.txt:39 (find_package)

PS: It seems something is missing. Any idea?

Chunde avatar Nov 05 '15 07:11 Chunde

You need those submodules like mshadow, ps-lite and dmlc-core.

It is suggested that you use git to get the code (git clone --recursive https://github.com/dmlc/mxnet), github download does not handle submodules properly.

Or you can also try to download the submodules yourself. They are located under github.com/dmlc/

On Thu, Nov 5, 2015 at 3:08 PM, Chunde [email protected] wrote:

Hi, I downloaded the MXNet Source, and tried to build it on Windows 10 using VS 2015. I first use CMake GUI to load the source folder, then press configure(I know I need to set the third-party path, I have CUDA 7.5, CUDNN v3, and OpenBlas). But i got the following errors:

CMake Error at CMakeLists.txt:16 (include): include could not find load file:

mshadow/cmake/mshadow.cmake

CMake Error at CMakeLists.txt:17 (include): include could not find load file:

mshadow/cmake/Utils.cmake

CMake Error at CMakeLists.txt:18 (include): include could not find load file:

mshadow/cmake/Cuda.cmake

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find CUDA: Found unsuitable version "7.5", but required is exact version "6.0" (found C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE) C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindCUDA.cmake:845 (find_package_handle_standard_args) E:/OpenCV249/OpenCVConfig.cmake:215 (find_package) CMakeLists.txt:39 (find_package)

PS: It seems something is missing. Any idea?

— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/494.

HONG Chuntao System Research Group Microsoft Research Asia

hjk41 avatar Nov 05 '15 07:11 hjk41

Also, if you don't plan to modify mxnet itself, I suggest you download the binary releases directly: https://github.com/dmlc/mxnet/releases

On Thu, Nov 5, 2015 at 3:19 PM, Chuntao HONG [email protected] wrote:

You need those submodules like mshadow, ps-lite and dmlc-core.

It is suggested that you use git to get the code (git clone --recursive https://github.com/dmlc/mxnet), github download does not handle submodules properly.

Or you can also try to download the submodules yourself. They are located under github.com/dmlc/

On Thu, Nov 5, 2015 at 3:08 PM, Chunde [email protected] wrote:

Hi, I downloaded the MXNet Source, and tried to build it on Windows 10 using VS 2015. I first use CMake GUI to load the source folder, then press configure(I know I need to set the third-party path, I have CUDA 7.5, CUDNN v3, and OpenBlas). But i got the following errors:

CMake Error at CMakeLists.txt:16 (include): include could not find load file:

mshadow/cmake/mshadow.cmake

CMake Error at CMakeLists.txt:17 (include): include could not find load file:

mshadow/cmake/Utils.cmake

CMake Error at CMakeLists.txt:18 (include): include could not find load file:

mshadow/cmake/Cuda.cmake

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find CUDA: Found unsuitable version "7.5", but required is exact version "6.0" (found C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE) C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindCUDA.cmake:845 (find_package_handle_standard_args) E:/OpenCV249/OpenCVConfig.cmake:215 (find_package) CMakeLists.txt:39 (find_package)

PS: It seems something is missing. Any idea?

— Reply to this email directly or view it on GitHub https://github.com/dmlc/mxnet/issues/494.

HONG Chuntao System Research Group Microsoft Research Asia

HONG Chuntao System Research Group Microsoft Research Asia

hjk41 avatar Nov 05 '15 07:11 hjk41

Hello Chuntao,

Many thanks, I see the problem now. Actually I am interested by the project, so I would like to read through the code, and try to test it with the source code running on VS.

Chunde avatar Nov 05 '15 07:11 Chunde

if you want use cuda,must use vs2013,the cuda 7.5 not support 2015.

yajiedesign avatar Nov 05 '15 23:11 yajiedesign

Hi yajie, I know, when I compiled using VS 2015, it pops out some errors, so I use VS 2013, everything now seems good. Thanks!

Chunde avatar Nov 06 '15 01:11 Chunde

@xmuhcd, do you successfully enable USE_DIST_KVSTORE on windows ? I met several error due to the dependency in ps-lite, basically protobuf, gflags, glog. @tqchen, do we have a doc on the ps-lite also ?

Thanks.

lsvigorous avatar Nov 11 '15 12:11 lsvigorous

@Isvigorous, I didn't notice that symbol, just use all default setting. So I'm not sure about that.

Best regards

Chunde avatar Nov 11 '15 16:11 Chunde

@lsvigorous i am send pr fix promble https://github.com/dmlc/ps-lite/pull/25

yajiedesign avatar Nov 12 '15 11:11 yajiedesign

@yajiedesign, I met no problem with USE_DIST_KVSTORE disabled, will try your solution.

lsvigorous avatar Nov 13 '15 01:11 lsvigorous

@xmuhcd do you succeed in config mxnet on windows? I across a problem with use https://github.com/dmlc/mxnet/releases GPU version. image

bcd33bcd avatar Dec 08 '15 11:12 bcd33bcd

@bcd33bcd I did it successfully. However, I am using VS 2013, it not works for 2015.

Chunde avatar Dec 08 '15 21:12 Chunde

@xmuhcd I have used VS2013 either. And I considerd may be my lib/dll files broken.Could you send me libmxnet.dll/libmxnet.lib from email?

bcd33bcd avatar Dec 08 '15 23:12 bcd33bcd

@bcd33bcd Sure, I can send the entire project to you tonight. I am now working at school.

Chunde avatar Dec 08 '15 23:12 Chunde

@xmuhcd thank you very much.Please sent it to [email protected] .

bcd33bcd avatar Dec 08 '15 23:12 bcd33bcd

@bcd33bcd the similar error with you, do you solve it now?

Trangle avatar Apr 06 '16 21:04 Trangle