You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/02/25 20:59:37 UTC

[GitHub] [incubator-mxnet] TristonC commented on issue #19897: 能否详细写一下最新的mxnet GPU如何在win10下编译?Can you write the latest MXNET GPU in detail how to compile under Win10?

TristonC commented on issue #19897:
URL: https://github.com/apache/incubator-mxnet/issues/19897#issuecomment-786199054


   > 
   > 
   > 我clone最新的OpenBLAS(不能用OpenBLAS 0.3.13 version源码编译,可能因为CPU的原因,会出错),按照 https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio 1. Native (MSVC) ABI的步骤编译了OpenBLAS。
   > 在安装了依赖后,运行cmake .. -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 -DDYNAMIC_ARCH=ON -DCMAKE_BUILD_TYPE=Release配置工程,运行cmake --build . --config Release编译,运行cmake --install . --prefix d:\opt -v 安装。发现d:\opt目录下的文件并不能满足mxnet的cmake Configure。
   > 我从 https://github.com/xianyi/OpenBLAS/releases 下载 OpenBLAS-0.3.13-x64.zip ,将包内的include和lib目录都拷贝到我编译时创建的build目录,并且把环境变量OpenBLAS_HOME设为build目录。现在能用cmake-gui配置、生成mxnet的vs2019工程并编译。
   > 开始编译的debug版本,编译到后面可能我的笔记本配置不够,vs2019没反应了。现在在编译release版本,目前还没出错,希望最后能编译成功。
   > 前面的出错原因,可能用nvcc编译.cu文件时,-I包含的OpenBLAS头文件有问题,而不是CUDA的问题。
   > 虽然现在能win10系统编译mxnet了,但我对OpenBLAS的编译和安装还是比较迷糊(并没通过编译OpenBLAS获得所需的文件,但用到了编译时的build目录)。
   
   Did you use static link or dynamic link for OpenBlas? The libopenblas.dll is under bin directory instead of lib directory for windows.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org