Package Details: caffe 1.0-8

Git Clone URL: https://aur.archlinux.org/caffe.git (read-only)
Package Base: caffe
Description: A deep learning framework made with expression, speed, and modularity in mind (gpu enabled)
Upstream URL: http://caffe.berkeleyvision.org/
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: 10
Popularity: 0.116584
First Submitted: 2015-10-17 05:31
Last Updated: 2017-10-15 19:31

Latest Comments

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:
https://wiki.archlinux.org/index.php/Creating_packages
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/Makepkg

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:
https://wiki.archlinux.org/index.php/Arch_User_Repository

At the same AUR Wiki page you can see the steps needed to create and submit AUR packages:
https://wiki.archlinux.org/index.php/Arch_User_Repository#Sharing_and_maintaining_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 https://github.com/BVLC/caffe.git 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

@znmeb
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 (https://github.com/BVLC/caffe/tree/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

@kwe
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
See https://bugs.archlinux.org/task/54855

dbermond commented on 2017-05-24 19:23

@marcs
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: https://pastebin.com/94UDip7y

dbermond commented on 2017-04-08 13:04

@g3n35i5
I understand. Unfortunately I cannot help you to achieve matlab support.
But I suggest you to try caffe-git because currently it has more features and brings fixes that are not present in the release version.

g3n35i5 commented on 2017-04-04 08:25

@Bermond
Thank you for your quick reply. I just asked, because I had trouble building the matcaffe respectively using it in matlab, due to outdated libraries in mex. So my first thought was that I missed something in the installation process.

Does anyone have experience in building and using matcaffe on archlinux?

All comments