compiling caffe on Yosemite

后端 未结 2 842
说谎
说谎 2021-02-04 13:17

I\'m trying to install caffe on Yosemite, and my C is not the strongest. Here is my error:

Alis-MacBook-Pro:caffe ali$ make all
NVCC src/caffe/layers/absval_laye         


        
相关标签:
2条回答
  • 2021-02-04 13:33

    its a boost version problem.

    If you using brew do the following:

    http://itinerantbioinformaticist.blogspot.com/2015/05/caffe-incompatible-with-boost-1580.html

    0 讨论(0)
  • 2021-02-04 13:45

    I had the same problem. As someone else said, it turned out for me to be a problem with boost 1.58.0

    I fixed it by doing the following (assuming you have brew installed)

     $ cd /usr/local/Library/Formula 
     $ cd Library/Formula/
     $ cp boost.rb boost_backup.rb
     $ cp boost-python.rb boost-python_backup.rb
     $ wget https://raw.githubusercontent.com/Homebrew/homebrew/6fd6a9b6b2f56139a44dd689d30b7168ac13effb/Library/Formula/boost.rb
     $ mv boost.rb.1 boost.rb
     $ wget https://raw.githubusercontent.com/Homebrew/homebrew/3141234b3473717e87f3958d4916fe0ada0baba9/Library/Formula/boost-python.rb
     $ mv boost-python.rb.1 boost-python.rb
     $ brew uninstall --force boost
     $ brew install boost
    

    After doing this I was able to make all with GPU support no problem.

    source

    0 讨论(0)
提交回复
热议问题