Package Details: nsfminer-cuda-opencl 1.3.1-1

Git Clone URL: https://aur.archlinux.org/nsfminer.git (read-only, click to copy)
Package Base: nsfminer
Description: Ethereum miner with OpenCL and CUDA support derived from ethminer. RTX 30 series compatible.
Upstream URL: https://github.com/no-fee-ethereum-mining/nsfminer
Licenses: GPL3
Provides: nsfminer
Submitter: albeanze
Maintainer: albeanze
Last Packager: albeanze
Votes: 1
Popularity: 0.84
First Submitted: 2021-02-05 01:34
Last Updated: 2021-02-05 01:34

Pinned Comments

iyanmv commented on 2021-02-10 21:09

Hi albeanze! Thanks for creating this AUR. I was going to do it myself but I found yours. It "works" for me, but I think you should modify the PKGBUILD a bit. I will create one when I have some time and share here so you can have a look and take some changes if you want. Also, you say in the description (and package name) that it has OpenCL support but you have the flag -DETHASHCL=OFF.

Latest Comments

iyanmv commented on 2021-03-22 21:41

Hi @albeanze. Here is the PKGBUILD I am using:

pkgname=nsfminer-cuda
_pkgname=nsfminer
pkgver=1.3.9
pkgrel=1
pkgdesc='No Fee Ethash miner for AMD and Nvidia'
url='https://github.com/no-fee-ethereum-mining/nsfminer'
license=('GPL3')
arch=('x86_64')
depends=('cuda' 'opencl-mesa' 'mesa' 'ethash-lib')
makedepends=('cmake')
conflicts=('ethminer-cuda')
source=(https://github.com/no-fee-ethereum-mining/$_pkgname/archive/refs/tags/v$pkgver.tar.gz
        https://github.com/ethereum/cable/archive/refs/tags/v0.2.14.tar.gz)
sha256sums=('8795e60a78e78fc48e07022329980073b1436f2f3485c5a70b058773662cdaae'
            'f7f0e042cfccb42fe9c432d85ec1ec1a7ded038f4ad23bc4bc26e6331870fbfc')

prepare() {
    rm -rf "$srcdir"/$_pkgname-$pkgver/cmake/cable
    mv "$srcdir"/cable-0.2.14 "$srcdir"/$_pkgname-$pkgver/cmake/cable
}

build() {
    cmake \
        -B "$_pkgname-$pkgver"/build \
        -S "$_pkgname-$pkgver" \
        -DAPICORE:BOOL='OFF' \
        -DBINKERN:BOOL='ON' \
        -DETHASHCL:BOOL='ON' \
        -DETHASHCPU:BOOL='OFF' \
        -DETHASHCUDA:BOOL='ON' \
        -DETHDBUS:BOOL='OFF' \
        -DHUNTER_ENABLED:BOOL='ON' \
        -DCMAKE_BUILD_TYPE:STRING='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -Wno-dev
    make -C "$_pkgname-$pkgver"/build
}

package() {
    make -C $_pkgname-$pkgver/build DESTDIR="$pkgdir" install
}

Have a look and take what you want. From your current PKGBUILD the most urgent thing to fix I would say is that you are installing everything to /usr/local when in the Arch packaging guidelines [1] the first point is "Packages should never be installed to /usr/local/".

It would be interesting to check if we can build this without Hunter, but that would probably take a bit more time.

[1] https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_etiquette

paz commented on 2021-03-01 14:41

I'm also having the same issue of the build just being in an infinite loop, once the build is completed it says to build again...

anyone have a fix via command line maybe?

albeanze commented on 2021-02-10 21:40

Hello Iyán! Thank you for your help! You are right, I do mean this package to include OpenCL as well in the near future, but I could not test the build with OpenCL (did not have the time yet!) so at the moment OpenCL is not active but will be soon! I also want to point out that the API flag is disabled at the moment, but I just tested the build with the API feature on, and it's working alright, so I will push the new PKGBUILD with the flag -DAPICORE=ON later tonight.

"I will create one when I have some time and share here so you can have a look and take some changes if you want."

I would really appreciate it! I need some experienced guidance! :)

iyanmv commented on 2021-02-10 21:09

Hi albeanze! Thanks for creating this AUR. I was going to do it myself but I found yours. It "works" for me, but I think you should modify the PKGBUILD a bit. I will create one when I have some time and share here so you can have a look and take some changes if you want. Also, you say in the description (and package name) that it has OpenCL support but you have the flag -DETHASHCL=OFF.

albeanze commented on 2021-02-09 19:40

Hi Max! Thanks for your feedback! Can you tell me if you have CUDA installed? What version? What GPU are you using? Do you have the proprietary GPU drivers installed? What driver version? What Arch kernel version are you running? P.S: Just installed the package on a second Manjaro system and it worked alright! :)

Seraph91P commented on 2021-02-09 18:30

Hi, for me its sadly not working. After it finished building it just resets so I can press the build button again. The last point I can see in the log is "Cleaning Up". If you need any other Information please feel free to ask.

albeanze commented on 2021-02-05 01:36

This is my first time pushing to the AUR, so I hope it's all good! Tested and working for me!