hpi-xnor / BMXNet

(New version is out: https://github.com/hpi-xnor/BMXNet-v2) BMXNet: An Open-Source Binary Neural Network Implementation Based on MXNet
Apache License 2.0
350 stars 95 forks source link

Could not turn off USE_CUDA #15

Closed JiangPQ closed 6 years ago

JiangPQ commented 6 years ago

There is a CMake error while compiling on raspberrypi: CMake Error at mshadow/cmake/mshadow.cmake:46 (message): -- CUDA is disabled. Call Stack (most recent call first): CMakeLists.txt:126 (include)

Operating System: raspbian

I've changed something in CMakeLists.txt and cmake again but it didn't work:

mxnet_option(USE_CUDA "Build with CUDA support" OFF) mxnet_option(USE_CUDNN "Build with cudnn support" OFF)

I use MESSAGE to print the variable USE_CUDA while cmake, it is still ON.

Can you tell me where is the right place to set USE_CUDA OFF?

yanghaojin commented 6 years ago

hi, pls make sure you dont have the same issue as in this track: https://github.com/hpi-xnor/BMXNet/issues/13

mtin commented 6 years ago

hey JianqPQ, you should not have to change the CMakeLists.txt file to disable CUDA. If you already ran cmake, then there should be a CMakeCache.txt file with the settings cmake determined. you can edit the value of USE_CUDA in that file.

Alternatively, you could use a cmake with a user interface, like ccmake to comfortably change the options.

JiangPQ commented 6 years ago

Thank you for your reply! I cleanned all the cmake generated files and cmake again then it works.