cmakelist change options

19 views
Skip to first unread message

mjj...@gmail.com

unread,
Apr 9, 2018, 3:43:45 AM4/9/18
to Caffe Users
Hello,I met a problem that when I compile caffe use cmake, I can't change the option to cpu_only, and I have tried, other option can't change neither. Do anybody met the same problem ? I changed the option in caffe_dir/CMakelist.txt . when I change CPU_ONLY to ON,the cmake log show the CPU_ONLY still be OFF. look forward any help , thx~~~~~~~~~

Przemek D

unread,
Apr 10, 2018, 4:56:15 AM4/10/18
to Caffe Users
You're not even supposed to change the file - read this SO answer on how to pass options to CMake. In this case, you want to run:
cmake -D CPU_ONLY=ON ..

mjj...@gmail.com

unread,
Apr 10, 2018, 5:48:59 AM4/10/18
to Caffe Users
Thx for the answer! I made some mistake here , the problem solved!

在 2018年4月10日星期二 UTC+8下午4:56:15,Przemek D写道:
Reply all
Reply to author
Forward
0 new messages