liangyong928 edited a comment on issue #19897:
URL: 
https://github.com/apache/incubator-mxnet/issues/19897#issuecomment-780207064


   @yajiedesign 我用gitee搬移和代理( https://www.bilibili.com/read/cv8442044 
)都试了一下,但clone第三方时,代理就不起作用了,又自动回到github。我感到奇怪的是,即使提示我已经clone的第三方,我在目录下也看不到clone的文件。我在2020年12月份曾经试过linux
 cpu版本的编译,我看了一下当时下载的代码,第三方目录下的文件都能看到。
   官网上除了说可以clone github,还提供了另一种网站( 
https://mxnet.apache.org/get_started/download 
)下载。我下载了最新的1.7.0版本,里面有第三方文件。我试着用cmake-gui,configure能成功,但提示了几个问题和红字,我摘录如下:
   USE_LAPACK is ON(红字)
   Looking for pthread.h - not found
   Looking for clock_gettime in rt - not found
   Looking for fopen64 - not found
   Looking for C++ include cxxabi.h - not found
   Looking for nanosleep - not found
   Looking for backtrace - not found
   Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR) 
   Looking for sys/types.h - found
   Looking for stdint.h - found
   Looking for stddef.h - found
   -- CUDA: Using the following NVCC architecture flags 
-gencode;arch=compute_75,code=sm_75(红字)
   Performing Test SUPPORT_MSSE3 - Failed
   Performing Test SUPPORT_MSSE2 - Failed
   F16C instruction set is not yet supported for MSVC(红字)
   Google Test not found
   
   我generate后也能生成vs2019工程,但也提示了红字:
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "mxnet_75".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "mxnet_75".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "mxnet_75".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "mxnet_75".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "customop_gpu_lib".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "customop_gpu_lib".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "customop_gpu_lib".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   CMake Warning (dev) in CMakeLists.txt:
     Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
     empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
     for policy details.  Use the cmake_policy command to set the policy and
     suppress this warning.
   
     CUDA_ARCHITECTURES is empty for target "customop_gpu_lib".
   This warning is for project developers.  Use -Wno-dev to suppress it.
   (以上红字)
   Generating done
   
   打开vs2019编译mxnet失败:
   
![image](https://user-images.githubusercontent.com/32471537/108138636-5af36400-70f9-11eb-8a9c-52a8a6223bd0.png)
   
   我查看了mxnet源码的cmake目录,看到里面有些目录象是linux的,比如:
   SET(Open_BLAS_INCLUDE_SEARCH_PATHS
     /usr/include
     /usr/include/openblas
     /usr/include/openblas-base
     /usr/local/include
     /usr/local/include/openblas
     /usr/local/include/openblas-base
     /opt/OpenBLAS/include
     /usr/local/opt/openblas/include
     ${PROJECT_SOURCE_DIR}/3rdparty/OpenBLAS/include
     ${PROJECT_SOURCE_DIR}/thirdparty/OpenBLAS/include
     ${OpenBLAS_HOME}
     ${OpenBLAS_HOME}/include
   )
   在config目录下的配置文件也都是linux的,我也试着用过,也是不行的。
   如果想在win10下编译,是不是还需要修改cmake目录下的文件,或者需要MINGW?


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to