Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - caffe

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: caffe rc2-3

Git Clone URL: https://aur-dev.archlinux.org/caffe.git (read-only)
Package Base: caffe
Description: Neural network toolkit
Upstream URL: https://github.com/BVLC/caffe
Licenses: BSD
Groups: base-devel
Submitter: yiuin
Maintainer: None
Last Packager: yiuin
Votes: 6
Popularity: 0.005665
First Submitted: 2015-10-17 05:31
Last Updated: 2016-03-01 16:09

Latest Comments

yiuin commented on 2016-08-11 17:25

Sorry all, I clearly haven't been looking at this regularly. For Cuda I think a separate package might be needed, if its going to have to compile with a different compilers. PKGBUILD isn't really setup for options like that.

So I looked at https://aur.archlinux.org/packages/caffe-cpu-git/ and I think I'm going to disown this package so that that package can be the main caffe one. I haven't done a good job at maintaining this. Maybe at some point I'll make a matching caffe-gpu-git.

yiuin commented on 2016-08-11 17:15

Ahh Kamahl! I'll add it.

kamahl commented on 2016-08-11 13:22

I needed hdf5-cpp-fortran, without it, I got:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HDF5_hdf5_cpp_LIBRARY
linked by target "caffe" in directory /tmp/yaourt-tmp-jachym/aur-caffe/src/caffe-rc3/src/caffe

-- Configuring incomplete, errors occurred!

matthieu637 commented on 2016-06-30 10:01

For CUDA :
I cannot compile it with gcc version 6 (currently used by arch).
I had to use gcc5 and add -DCMAKE_C_COMPILER=gcc-5 for cuda (while CXX compiler can be leave to gcc6).

acgtyrant commented on 2016-06-07 05:39

I think you can add cuDNN as the optional dependence.

agarie commented on 2016-05-27 03:55

You probably should move the python/caffe/ directory to /usr/lib/python2.7/site-packages/caffe instead of leaving it on /usr/python. This way it'll be available for use right after installing your package!

deltaecho commented on 2016-02-26 11:33

How to fix errors like, "No to_python (by-value) converter found for C++ type: boost::shared_ptr<caffe::Blob<float> >":

https://github.com/BVLC/caffe/issues/3494#issuecomment-183874700

Example patch fixing two such errors follows:

--- ./python/caffe/_caffe.cpp.orig 2016-02-26 03:21:25.253857064 -0800
+++ ./python/caffe/_caffe.cpp 2016-02-26 03:22:13.420836642 -0800
@@ -256,6 +256,11 @@
bp::with_custodian_and_ward<1, 2, bp::with_custodian_and_ward<1, 3> >())
.def("save", &Net_Save);

+ // Fix for caffe pythonwrapper for boost 1.6
+ boost::python::register_ptr_to_python<boost::shared_ptr<Blob<Dtype> > >();
+ boost::python::register_ptr_to_python<boost::shared_ptr<caffe::Net<float> > >();
+ // End fix
+
bp::class_<Blob<Dtype>, shared_ptr<Blob<Dtype> >, boost::noncopyable>(
"Blob", bp::no_init)
.add_property("shape",

yiuin commented on 2015-10-30 00:33

Thanks guys. Updated for 32bit compatibility and added cmake.

waratuman commented on 2015-10-29 22:16

Just tried to install the package and cmake wasn't listed as a dependency.

davidmcinnis commented on 2015-10-19 04:18

could you please make these modifications in the PKGBUILD so it builds on i686 machines?

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,12 +16,18 @@ source=("https://github.com/BVLC/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('55c9c20870b30ce398e19e4f1a62ade1eff08fce51e28fa5604035b711978eec')

build() {
+ if [ $CARCH = "i686" ]; then
+ lib="lib"
+ else
+ lib="lib64"
+ fi
+
cd "$srcdir/$pkgname-$pkgver"
rm -fr build
mkdir build
cd build
- cmake ../ -DAtlas_LAPACK_LIBRARY=/usr/lib64/libatlas.so \
- -DAtlas_BLAS_LIBRARY=/usr/lib64/libatlas.so \
+ cmake ../ -DAtlas_LAPACK_LIBRARY="/usr/"$lib"/libatlas.so" \
+ -DAtlas_BLAS_LIBRARY="/usr/"$lib"/libatlas.so" \
-DCMAKE_INSTALL_PREFIX=$pkgdir/usr/

make