Skip to content

Commit

Permalink
change back to minimum support for CUDA8
Browse files Browse the repository at this point in the history
  • Loading branch information
hv15 committed Sep 3, 2021
1 parent 865f823 commit dc898fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
pkgbase = xmrig-cuda
pkgdesc = NVIDIA CUDA plugin for XMRig miner.
pkgver = 6.15.0
pkgrel = 1
pkgrel = 2
url = https://github.com/xmrig/xmrig-cuda
arch = x86_64
license = GPL
makedepends = cmake
makedepends = openssl
makedepends = cuda>=11.4.0-1
makedepends = cuda>=8.0
depends = xmrig>=6.15.0
depends = cuda>=11.4.0-1
depends = cuda>=8.0
optdepends = monero: wallet
source = https://github.com/xmrig/xmrig-cuda/archive/v6.15.0.tar.gz
sha256sums = 64c440a4cb439f3cc8120f1883274158f95df988ab91eccb1d2d2abf0bedbbfe
Expand Down
20 changes: 6 additions & 14 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,22 @@

pkgname=xmrig-cuda
pkgver=6.15.0
pkgrel=1
pkgrel=2
pkgdesc='NVIDIA CUDA plugin for XMRig miner.'
arch=('x86_64')
url='https://github.com/xmrig/xmrig-cuda'
depends=('xmrig>=6.15.0' 'cuda>=11.4.0-1')
depends=('xmrig>=6.15.0' 'cuda>=8.0')
optdepends=('monero: wallet')
# We unfortunately need to be hard on which version of CUDA we use
makedepends=('cmake' 'openssl' 'cuda>=11.4.0-1')
makedepends=('cmake' 'openssl' 'cuda>=8.0')
license=('GPL')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('64c440a4cb439f3cc8120f1883274158f95df988ab91eccb1d2d2abf0bedbbfe')

prepare() {
cd "${pkgname}-${pkgver}"

# create build dir
[ -d build ] || mkdir build
}

build() {
cd "${pkgname}-${pkgver}/build"
cd "${pkgname}-${pkgver}"

cmake -DCMAKE_C_COMPILER=/opt/cuda/bin/gcc -DCMAKE_CXX_COMPILER=/opt/cuda/bin/g++ ..
make
cmake -DCMAKE_C_COMPILER=/opt/cuda/bin/gcc -DCMAKE_CXX_COMPILER=/opt/cuda/bin/g++ -S . -B build
cmake --build build
}

package() {
Expand Down

0 comments on commit dc898fe

Please sign in to comment.