add onetbb to replace tbb
This commit is contained in:
parent
28959e0a5e
commit
564eed4bc1
5 changed files with 96 additions and 0 deletions
45
onetbb/PKGBUILD
Normal file
45
onetbb/PKGBUILD
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||||
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||||
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
||||||
|
# Website : https://pozol.eu
|
||||||
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||||
|
|
||||||
|
pkgname=onetbb
|
||||||
|
pkgver=2021.8.0
|
||||||
|
pkgrel=01
|
||||||
|
pkgdesc='High level abstract threading library (oneAPI Threading Building Blocks)'
|
||||||
|
url='https://oneapi-src.github.io/oneTBB/'
|
||||||
|
depends=('gcc-libs' 'hwloc')
|
||||||
|
makedepends=('cmake' 'inetutils' 'ninja' 'python' 'swig')
|
||||||
|
conflicts=('intel-tbb' 'tbb')
|
||||||
|
provides=("intel-tbb=$pkgver" "tbb=$pkgver")
|
||||||
|
replaces=('intel-tbb' 'tbb')
|
||||||
|
source=(https://github.com/oneapi-src/oneTBB/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd oneTBB-$pkgver
|
||||||
|
cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/usr -D TBB_STRICT=OFF -D TBB4PY_BUILD=ON .
|
||||||
|
ninja all python_build
|
||||||
|
}
|
||||||
|
|
||||||
|
#check() {
|
||||||
|
# cd oneTBB-$pkgver
|
||||||
|
# ninja test
|
||||||
|
#}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd oneTBB-$pkgver
|
||||||
|
DESTDIR="$pkgdir" ninja install
|
||||||
|
}
|
||||||
|
|
||||||
|
#---- arch license gpg-key & sha256sums ----
|
||||||
|
|
||||||
|
arch=(x86_64)
|
||||||
|
|
||||||
|
license=('Apache')
|
||||||
|
|
||||||
|
sha256sums=(eee380323bb7ce864355ed9431f85c43955faaae9e9bce35c62b372d7ffd9f8b) # onetbb-2021.8.0.tar.gz
|
||||||
|
|
||||||
|
## 0561b89bff09d607f3d893927750ec793d519ff1fc08df590b148e44058260ee onetbb-2021.8.0-01-x86_64.pkg.tar.lz
|
||||||
|
|
37
onetbb/PKGBUILD-arch
Normal file
37
onetbb/PKGBUILD-arch
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||||
|
# Contributor: Caleb Maclennan <caleb@alerque.com>
|
||||||
|
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
|
||||||
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
||||||
|
# Contributor: Denis Martinez <deuns.martinez AT gmail.com>
|
||||||
|
# Contributor: Bogdan Burlacu <bogdan.burlacu AT pm.me>
|
||||||
|
|
||||||
|
pkgname=onetbb
|
||||||
|
pkgver=2021.8.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='High level abstract threading library (oneAPI Threading Building Blocks)'
|
||||||
|
arch=('x86_64')
|
||||||
|
url='https://oneapi-src.github.io/oneTBB/'
|
||||||
|
license=('Apache')
|
||||||
|
depends=('gcc-libs' 'hwloc')
|
||||||
|
makedepends=('cmake' 'inetutils' 'ninja' 'python' 'swig')
|
||||||
|
conflicts=('intel-tbb' 'tbb')
|
||||||
|
provides=("intel-tbb=$pkgver" "tbb=$pkgver")
|
||||||
|
replaces=('intel-tbb' 'tbb')
|
||||||
|
source=(https://github.com/oneapi-src/oneTBB/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
||||||
|
sha512sums=('72f68730dfd89409796f9548d3c302111787712089688a7c77092ed1b3a7bf4e7444fe4b58015d2c78b7b71259852526789b2483bf1e71bea8146c4b4676e7b4')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd oneTBB-$pkgver
|
||||||
|
cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/usr -D TBB_STRICT=OFF -D TBB4PY_BUILD=ON .
|
||||||
|
ninja all python_build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd oneTBB-$pkgver
|
||||||
|
ninja test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd oneTBB-$pkgver
|
||||||
|
DESTDIR="$pkgdir" ninja install
|
||||||
|
}
|
1
onetbb/clean
Normal file
1
onetbb/clean
Normal file
|
@ -0,0 +1 @@
|
||||||
|
rm -rf {src,pkg,onetbb*.tar.gz*}
|
8
onetbb/deps
Normal file
8
onetbb/deps
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
hwloc
|
||||||
|
cmake
|
||||||
|
inetutils
|
||||||
|
ninja
|
||||||
|
python
|
||||||
|
swig
|
||||||
|
|
||||||
|
|
5
onetbb/time
Normal file
5
onetbb/time
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
real 21m31.203s
|
||||||
|
user 79m54.533s
|
||||||
|
sys 2m54.154s
|
||||||
|
|
Loading…
Reference in a new issue