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/
Keywords: ai artificial cuda intelligence nvidia
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.102376
First Submitted: 2015-10-17 05:31
Last Updated: 2017-10-15 19:31

Latest Comments

dbermond commented on 2018-03-08 16:31

@nhkrishna This is normal and expected. If you take a look at the PKGBUILD file, you'll see that the supported architecture (the 'arch' array) is x86_64 only. This is because the AUR is in general for the x86_64 architecture, and at most for the i686 architecture. ARM is in general not supported here. ARM can be supported for a specific package if the package maintainer is willing to support it. But I, as the current caffe package maintainer, cannot support ARM architectures.

If you wish to install caffe on ARM, you should use the proper Arch Linux ARM support channels, like their forum.

nhkrishna commented on 2018-03-08 12:44

I'm trying to install caffe on archlinux. I'm using armv7h architecture. But its showing error like "caffe is not available for armv7h architecture". I've tried following steps. 1)git clone https://aur.archlinux.org/caffe.git 2)cd caffe 3)makepkg PKGBUILD I got the error as below ==> ERROR: caffe is not available for the 'armv7h' architecture.

==> ERROR: An unknown error has occurred. Exiting...

dbermond commented on 2018-02-20 14:47

@gamer01 Caffe have official support for nvidia gpus only. There are custom caffe distributions designed for intel and opencl, but as far as I can tell, these are not official ones. This package needs cuda because the binaries links to cuda libraries. cudnn is enabled in the build, so it's also needed for the same reason.

gamer01 commented on 2018-02-20 14:14

Is cudnn and cuda really a strict dependency? I mean you can run caffe also without a Nvidea card in your device, right?

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:
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.

All comments