blob: 1297c1ee21b9df29f60a42ad5688a809af122c01 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Zhirui Dai <daizhirui at hotmail dot com>
pkgbase=pytorch-kineto-git
pkgname=(libkineto-git torch-tb-profiler-git)
pkgver=r622.4e0fec8
pkgrel=1
pkgdesc="Kineto is part of the PyTorch Profiler"
arch=('x86_64')
url="http://www.pytorch.org"
license=('BSD')
depends=(fmt)
optdepends=()
makedepends=(
cmake
git
python-setuptools
)
source=(
"kineto::git+https://github.com/pytorch/kineto.git"
"3rdparty.patch"
)
sha256sums=(
SKIP
737bb5401e583ac0a376db551690d56e1dc58908799c88c135b7bf28fc2339b0
)
pkgver() {
cd ${srcdir}/kineto
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/kineto"
git submodule update --init --recursive
patch -Np1 -i ${srcdir}/3rdparty.patch
cd "${srcdir}/kineto/libkineto"
mkdir -p build
}
build() {
cd "${srcdir}/kineto/libkineto/build"
cmake .. \
-DCUDA_SOURCE_DIR=/opt/cuda \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)
}
function package_libkineto-git() {
depends=()
optdepends=()
conflicts=()
cd ${srcdir}/kineto/libkineto/build
make DESTDIR=${pkgdir} install
}
function package_torch-tb-profiler-git() {
depends=()
optdepends=()
conflicts=()
cd ${srcdir}/kineto/tb_plugin
python setup.py install --root="${pkgdir}/"
}
|