blob: 6eb9d47d30a6d14d4380d74484a11e9c3b124fc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: JunYoung Gwak <aur@jgwak.com>
pkgname=python-minkowskiengine-git
_pkgname=MinkowskiEngine
pkgver=r240.8d0316a
pkgrel=1
pkgdesc="Auto-diff library for generalized sparse convolutions"
url="https://github.com/StanfordVL/MinkowskiEngine"
depends=('python' 'python-pytorch-cuda' 'python-numpy' 'cuda' 'cudnn' 'cblas')
optdepends=(
'python-torchvision: Sample code dependency'
'python-open3d: Sample code dependency'
)
makedepends=('python-setuptools' 'git')
license=('MIT')
arch=('x86_64')
source=("${_pkgname}::git+${url}.git")
md5sums=('SKIP')
provides=('python-minkowskiengine')
conflicts=('python-minkowskiengine')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
export CUDA_HOME=/opt/cuda
# Use cblas, which is included in the community package.
# You may comment or change the following two lines to use other blas.
sed -i "s/openblas/cblas/g" Makefile
sed -i "s/openblas/cblas/g" setup.py
}
package() {
cd "${srcdir}/${_pkgname}"
# Build isolation doesn't work in this library.
python setup.py install --blas=cblas --root="$pkgdir/" --optimize=1
}
|