【问题标题】:make pycaffe -> "fatal error: cublas_v2.h: No such file or directory"make pycaffe ->“致命错误:cublas_v2.h:没有这样的文件或目录”
【发布时间】:2015-07-10 15:57:19
【问题描述】:

我编译了caffe,我知道尝试编译pycaffe。当我在 caffe 根文件夹中运行 make pycaffe 时,我得到:

f@f-VirtualBox:~/caffe/caffe-master$ make pycaffe
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common.hpp:19:0,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layer.hpp:8,
                 from src/caffe/layer_factory.cpp:3:
./include/caffe/util/device_alternate.hpp:34:23: fatal error: 
 cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
                       ^
compilation terminated.
Makefile:516: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1

如何解决?

【问题讨论】:

    标签: python neural-network deep-learning caffe


    【解决方案1】:

    如果您不打算使用 GPU,可以通过在 Makefile.config 中取消注释 CPU_ONLY := 1 来规避此问题:

    # CPU-only switch (uncomment to build without GPU support).
    CPU_ONLY := 1
    

    【讨论】:

    • 如果我们打算使用 GPU 怎么办?
    • @Hack-R 像你一样订阅 GitHub 问题,厌倦了等待,最终切换到其他一些库(我可以很容易地因为我没有做视觉)。
    • 大声笑的好答案。但是,我想我已经成功了——必须在https://developer.nvidia.com/cuda-downloads 处获取 .deb 文件,然后使用 apt-get 进行安装。我说我认为,因为它目前仍在我的系统上安装它。
    • @Hack-R 酷,如果它有效,欢迎您发布它作为答案。
    • 它耗尽了我所有的存储内存。我试图调整 VirtualBox VDI 的大小,但它已损坏。损失了 10 个小时的工作。 :/所以,我还不知道它是否会起作用。
    猜你喜欢
    • 2015-05-12
    • 2017-01-22
    • 2017-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-29
    • 2018-03-05
    • 2016-01-08
    相关资源
    最近更新 更多