Package Details: caffe 1.0-8

Git Clone URL: (read-only)
Package Base: caffe
Description: A deep learning framework made with expression, speed, and modularity in mind (gpu enabled)
Upstream URL:
Licenses: BSD
Conflicts: caffe-cpu, caffe-cpu-git, caffe-dr-git, caffe-git, caffe-mnc-dr-git, caffe2, caffe2-cpu, caffe2-cpu-git, caffe2-git
Submitter: yiuin
Maintainer: dbermond
Last Packager: dbermond
Votes: 12
Popularity: 0.674678
First Submitted: 2015-10-17 05:31
Last Updated: 2017-10-15 19:31

Latest Comments

dbermond commented on 2017-12-22 23:38

@t4mmi Hi. Package is building fine for me. There are no dependency conflicts for me. Please try to build in a chroot.

t4mmi commented on 2017-12-22 10:16

Hi all, I got a conflict between dependencies as openblas-lapack wont install along with blas and lapack that are required for numpy and opencv ...

dbermond commented on 2017-07-31 16:07

@znmeb To install it system wide, you need firstly to create a local package. For this you need to create a PKGBUILD (a script that automates the building and creation of packages with makepkg). After the local package creation, you can install it system wide with the pacman package manager.
You can read information about this on the following Wiki pages:

If you wish to share your results with the community and if you have the skills (and time) to do package maintenance, you can create an AUR package. You can read about the AUR on this Wiki page:

At the same AUR Wiki page you can see the steps needed to create and submit AUR packages:

I think this is not the appropriate channel to help you in using these tools. For further help you should ask in the Arch Linux forums.

znmeb commented on 2017-07-29 22:41

I have it working - it took a bit of doing and I'm still not sure how to make a PKGBUILD. The steps required are:

1. Install the "amdgpu" kernel module and make sure it's loaded first.
2. Install "opencl-amd". The open source OpenCL libraries don't work, and the AUR amdgpu-pro doesn't install. I'll have to troubleshoot the latter; this should work if amdgpu-pro installs.
3. Clone the GitHub repo and check out the "opencl" branch.
4. "make" and "make test".
5. "make runtest". This takes a long time, so you probably wouldn't do it in a package. On my card (peak 1800 GFLOPS) it runs 2600 seconds!

Now you have a local "caffe". I haven't figured out how to install it globally yet. Note that this is only useful with an AMD GPU - for NVidia the "caffe" in AUR should work and for Intel there are other ways to build "caffe". I don't have a new-enough Intel GPU to try this. There's probably a repo out there; a lot of Intel folks are working on deep learning and posting open source tools.

Once I get some free time again I'm going to try modifying the "caffe" PKGBUILD to do all this (except the kernel part). I may have missed some dependencies in the process since I had "caffe-cpu" installed.

dbermond commented on 2017-07-27 01:24

Welcome to the Arch Linux community.
If you manage to get it working you should create a PKGBUILD in order to produce a package for your personal use. This will automate your build/install process and integrate the software into the pacman package manager.
If you want to share with the community you can create an AUR package but this would need knowledge about package maintenance.

znmeb commented on 2017-07-25 08:33

I have an AMD "Bonaire" GPU. It looks like there's some upstream support for running caffe on AMD (and Intel) GPUs using OpenCL (

I'm testing this now building from the GitHub repo - if I can make it work and use the GPU I'll post the setup here. I'm new to Arch; not sure how it should be packaged if it works.

dbermond commented on 2017-07-21 02:34

Thank you for the report. This should be fixed as of version 1.0-4.

kwe commented on 2017-07-21 00:09

Fails to build with -fno-plt specified in makepkg.conf

dbermond commented on 2017-05-24 19:23

The package is building fine for me. Tested in two different machines. Also tested in a clean chroot on both machines.
Caffe can be a bit tricky to build in certain circumstances. To ensure good building results please do these steps:
1) uninstall any caffe package before you start to compile;
2) use makepkg -C (--cleanbuild) option (or delete the 'src' directory before running makepkg).

If it still fails, build it in a clean chroot using extra-x86_64-build (from devtools, see the Wiki).

marcs commented on 2017-05-24 16:34

I have a build error:

All comments