summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43af17ca96c713cb87fe9b3a13541b8b38c64d86 (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
# Maintainer: Will Handley <wh260@cam.ac.uk>
pkgname=python-flashinfer
_pkgname=flashinfer
pkgver=0.6.11.post3
pkgrel=1
pkgdesc='Kernel Library for LLM Serving'
arch=('x86_64')
url='https://github.com/flashinfer-ai/flashinfer'
license=('Apache-2.0')
provides=('python-flashinfer')
conflicts=('python-flashinfer-rocm')
depends=(
  'python-pytorch'
  'cuda'
  'python-cuda'
  'python-tvm-ffi'
  'python-click'
  'python-einops'
  'python-ninja'
  'python-numpy'
  'python-nvidia-ml-py'
  'python-packaging'
  'python-requests'
  'python-tabulate'
  'python-tqdm'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools>=77'
)
optdepends=(
  'python-cutlass: Blackwell GPU kernel support (SM100+)'
  'cudnn: cuDNN-accelerated attention paths (pip install nvidia-cudnn-frontend for Python bindings)'
)
options=('!strip')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')

build() {
  cd "${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation --skip-dependency-check
}

package() {
  cd "${_pkgname}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
}