You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/04/29 21:36:13 UTC
[GitHub] sl1pkn07 opened a new issue #10743: CUDA 9.1.xx failed if not set
OLDCMAKECUDA on cmake 3.10.3 with unix makefile generator
sl1pkn07 opened a new issue #10743: CUDA 9.1.xx failed if not set OLDCMAKECUDA on cmake 3.10.3 with unix makefile generator
URL: https://github.com/apache/incubator-mxnet/issues/10743
https://github.com/apache/incubator-mxnet/blob/6bef58a920506e6cc2848ffd4ec3b4d5bce6120a/CMakeLists.txt#L197-L202
`CUDA_TOOLSET` is set with CUDA 9.1.xx with cmake 3.10.3. (you can see this if put `message(STATUS "cuda toolset: ${CUDA_TOOLSET}")` between the L197 and L198
then with that snipplet doing:
```
-- CUDA_ARCH_LIST: Auto
CMake Error at /tmp/makepkg/sl1-mxnet-git/src/build/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project):
Generator
Unix Makefiles
does not support toolset specification, but toolset
cuda=,host=x64
was specified.
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
CMake Error at cmake/FirstClassLangCuda.cmake:79 (try_run):
Failed to configure test project build system.
Call Stack (most recent call first):
cmake/FirstClassLangCuda.cmake:147 (mshadow_detect_installed_gpus)
CMakeLists.txt:504 (mshadow_select_nvcc_arch_flags)
-- Configuring incomplete, errors occurred!
```
then i change the line
~~~cmake
if(CUDA_TOOLSET STREQUAL "")
~~~
to
~~~cmake
if(NOT CUDA_TOOLSET STREQUAL "")
~~~
then:
```
-- CUDA_ARCH_LIST: Auto
CMake Error at /tmp/makepkg/sl1-mxnet-git/src/build/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project):
Generator
Unix Makefiles
does not support toolset specification, but toolset
cuda=9.1,host=x64
was specified.
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
CMake Error at cmake/FirstClassLangCuda.cmake:79 (try_run):
Failed to configure test project build system.
Call Stack (most recent call first):
cmake/FirstClassLangCuda.cmake:147 (mshadow_detect_installed_gpus)
CMakeLists.txt:504 (mshadow_select_nvcc_arch_flags)
-- Configuring incomplete, errors occurred!
```
then i change the Generator to Ninja, but in this snipplet
https://github.com/apache/incubator-mxnet/blob/6bef58a920506e6cc2848ffd4ec3b4d5bce6120a/CMakeLists.txt#L40-L56
not detect the Ninja generator, seting fallback to OLDCMAKECUDA
this is the correct behavior with CUDA 9.1.xx?
greetings
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services