Package Details: caffe-git 1.0.r136.g9b8915401-1

Git Clone URL: https://aur.archlinux.org/caffe-git.git (read-only, click to copy)
Package Base: caffe-git
Description: A deep learning framework made with expression, speed, and modularity in mind (cpu only, git version)
Upstream URL: https://caffe.berkeleyvision.org/
Keywords: ai artificial cuda intelligence nvidia
Licenses: BSD
Conflicts: caffe, caffe-cpu-git
Provides: caffe, caffe-cpu-git
Replaces: caffe-cpu-git
Submitter: jyantis
Maintainer: dbermond
Last Packager: dbermond
Votes: 23
Popularity: 0.000000
First Submitted: 2014-12-08 01:10 (UTC)
Last Updated: 2022-03-01 14:46 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

ooxxcc commented on 2016-05-10 16:21 (UTC)

@fzavan add '-Xcompiler -std=c++98' to NVCCFLAGS in Makefile.config can solve this problem ref https://www.reddit.com/r/archlinux/comments/4iczja/a_work_around_if_you_are_using_cuda_and_have/

u1bmoW1r16 commented on 2016-05-09 17:34 (UTC)

Caffe is failing to build to with gcc 6.1, I wasted a couple of hours today trying to get it to work. Those who need this package might want to hold on to gcc 5.3 a little longer.

balta2ar commented on 2016-05-04 11:26 (UTC)

@simthadim @mrshr3d For some reason build process uses old version of /usr/lib/libcaffe.so which was linked to already absent opencv-2.4 (in my system). After I removed caffe-git and installed it again, compilation went fine.

simthadim commented on 2016-05-04 10:28 (UTC) (edited on 2016-05-04 11:24 (UTC) by simthadim)

@lostkhaos Thank you for your fast response! Your explanation was helpful. Unfortunately I get sort of the same error as @mrshr3d. It used to compile well with opencv2.4 (few weeks ago), but with 3.1 it still yields the following: CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin .build_release/lib/libcaffe.so: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' .build_release/lib/libcaffe.so: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)' .build_release/lib/libcaffe.so: undefined reference to `cv::imencode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' .build_release/lib/libcaffe.so: undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' .build_release/lib/libcaffe.so: undefined reference to `vtable for cv::_InputArray' collect2: error: ld returned 1 exit status Makefile:616: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1 In the Make.config file on caffe's github there is a line which states: "# Uncomment to use `pkg-config` to specify OpenCV library paths." Still playing around with these setting, but that should be a solution I guess.

lostkhaos commented on 2016-05-03 23:20 (UTC) (edited on 2016-05-03 23:21 (UTC) by lostkhaos)

@simthadim if you take a peek at the Makefile.config, you'll see a commented-out line: "CPU_ONLY := 1". Go ahead and uncomment it, and comment out the lines talking about CUDA (note that since you changed a source file that you'll have to run makepkg with the --skipchecksums flag (e.g. makepkg -sri --skipchecksums)). That should be sufficient! You can also go ahead and remove the cuda entry from the depends list.

simthadim commented on 2016-05-03 22:17 (UTC)

I want to install this as CPU only. How would I alter the makeconfig file in thuis pkgbuild? I see that there is a line "cp makeconfig.config caffe" This is most likely the key. Should I have a file called makeconfig.config in my current working directory such that the pkgbuild can use this? Sorry for this, perhaps, trivial question: first time altering a PKGBUILD script.

lostkhaos commented on 2016-05-03 20:47 (UTC)

@mrshr3d: thanks for the heads-up, should be fixed now.

mrshr3d commented on 2016-05-03 17:13 (UTC) (edited on 2016-05-04 12:32 (UTC) by mrshr3d)

EDIT @lostkhaos - thanks, installed flawlessly this evening :) ----- I'm getting the following error (trying to build caffe-git as dependency of deepdream install). Tail end of the log/error: NVCC src/caffe/layers/batch_reindex_layer.cu NVCC src/caffe/layers/batch_norm_layer.cu NVCC src/caffe/layers/base_data_layer.cu NVCC src/caffe/layers/absval_layer.cu AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0-rc3 CXX tools/upgrade_solver_proto_text.cpp CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin .build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)' .build_release/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' .build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)' collect2: error: ld returned 1 exit status Makefile:616: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1

lostkhaos commented on 2016-01-22 18:58 (UTC)

@mjal pulled in your fix, works like a charm thanks!