blob: 8af441f706aa8aa6fe026707645245197fefe259 (
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
|
# Maintainer: Rongbo Wu <wurongbo2012@hotmail.com>
pkgname='python-flashinfer-rocm'
_pkgname='flashinfer'
pkgver=0.5.3
pkgrel=2
arch=('x86_64')
pkgdesc='ROCm port of FlashInfer (CDNA3+)'
url="https://github.com/ROCm/flashinfer"
license=('Apache-2.0')
provides=('python-flashinfer')
depends=(
python-pytorch
rocm-hip-runtime
)
makedepends=(
git
ninja
python-build
python-setuptools-scm
python-scikit-build-core
cmake
rocm-hip-sdk
python-installer
)
optdepends=(
python-click
python-tvm-ffi
)
source=(
"${url}/archive/refs/tags/v${pkgver}+amd.${pkgrel}.tar.gz"
)
sha256sums=(
'f83eb02af3cbec2c757a093a7b308dd814b5e6901dcc2308070a4b3172ec9f76'
)
prepare() {
cd ${_pkgname}-${pkgver}-amd.${pkgrel}
# cmake -B build .
}
build() {
cd ${_pkgname}-${pkgver}-amd.${pkgrel}
python3 -m build -wn
}
package() {
cd ${_pkgname}-${pkgver}-amd.${pkgrel}
python3 -m installer --prefix ${pkgdir}/usr/ dist/*whl
}
|