diff options
author | Daniel Bermond | 2021-02-22 23:31:19 +0000 |
---|---|---|
committer | Daniel Bermond | 2021-02-22 23:31:19 +0000 |
commit | 0f1c5c9c52dacb06936849722ae46a4b0dc050e8 (patch) | |
tree | 964e41cd05aec4e100e64df77c7e34399390779b | |
download | aur-0f1c5c9c52dacb06936849722ae46a4b0dc050e8.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e29a207d8ace --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = zluda + pkgdesc = A drop-in replacement for CUDA on Intel GPUs + pkgver = 2 + pkgrel = 1 + url = https://github.com/vosen/ZLUDA/ + arch = x86_64 + license = Apache + license = MIT + makedepends = git + makedepends = rust + makedepends = opencl-headers + makedepends = level-zero-headers + depends = opencl-icd-loader + depends = level-zero-loader + conflicts = nvidia-utils + source = git+https://github.com/vosen/ZLUDA.git#tag=v2 + source = git+https://github.com/KhronosGroup/SPIRV-Tools.git + source = git+https://github.com/KhronosGroup/SPIRV-Headers.git + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = zluda + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..24666ff518b3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Daniel Bermond <dbermond@archlinux.org> + +pkgname=zluda +pkgver=2 +pkgrel=1 +pkgdesc='A drop-in replacement for CUDA on Intel GPUs' +arch=('x86_64') +url='https://github.com/vosen/ZLUDA/' +license=('Apache' 'MIT') +depends=('opencl-icd-loader' 'level-zero-loader') +makedepends=('git' 'rust' 'opencl-headers' 'level-zero-headers') +conflicts=('nvidia-utils') +source=("git+https://github.com/vosen/ZLUDA.git#tag=v${pkgver}" + 'git+https://github.com/KhronosGroup/SPIRV-Tools.git' + 'git+https://github.com/KhronosGroup/SPIRV-Headers.git') +sha256sums=('SKIP' + 'SKIP' + 'SKIP') + +prepare() { + git -C ZLUDA submodule init + git -C ZLUDA config --local submodule.ext/spirv-tools.url "${srcdir}/SPIRV-Tools" + git -C ZLUDA config --local submodule.ext/spirv-headers.url "${srcdir}/SPIRV-Headers" + git -C ZLUDA submodule update + cargo fetch --manifest-path='ZLUDA/Cargo.toml' +} + +build() { + cargo build --release --frozen --manifest-path='ZLUDA/Cargo.toml' +} + +check() { + cargo test --release --frozen --manifest-path='ZLUDA/Cargo.toml' +} + +package() { + install -D -m755 ZLUDA/target/release/zluda_with -t "${pkgdir}/usr/bin" + install -D -m644 ZLUDA/target/release/libnvcuda.so -t "${pkgdir}/usr/lib" + install -D -m644 ZLUDA/target/release/libzluda_redirect.so -t "${pkgdir}/usr/lib" + install -D -m644 ZLUDA/LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s libnvcuda.so "${pkgdir}/usr/lib/libcuda.so" + ln -s libnvcuda.so "${pkgdir}/usr/lib/libcuda.so.1" +} |