kozyilmaz / nheqminer-macos

nheqminer for macOS with AVX and CUDA
85 stars 9 forks source link

CUDA driver version is insufficient for CUDA runtime version #16

Open avril-verhaeghen opened 6 years ago

avril-verhaeghen commented 6 years ago

Hi:

I've installed CUDA 9.0 and CLT 8.3.2. Getting this error when doing a GPU benchmark ./nheqminer-gpu -b -cd 0:

==================== www.nicehash.com ==================== Equihash CPU&GPU Miner for NiceHash v0.5c Thanks to Zcash developers for providing base of the code. Special thanks to tromp, xenoncat and djeZo for providing optimized CPU and CUDA equihash solvers. ==================== www.nicehash.com ====================

Setting log level to 2 [22:19:21][0x00007fff8f9d5340] Using SSE2: YES [22:19:21][0x00007fff8f9d5340] Using AVX: YES [22:19:21][0x00007fff8f9d5340] Using AVX2: YES [22:19:21][0x00007fff8f9d5340] CUDA error 'CUDA driver version is insufficient for CUDA runtime version' in func 'getinfo' line 61

Something that I'm missing?

Thanks!

kozyilmaz commented 6 years ago

@avril-verhaeghen sorry for my late response, is this only causing trouble during benchmarking (-b) or you cannot mine at all?

What are the versions of Nvidia Web Driver (378.05.05.25f01) and CUDA driver version (9.0.222) that you see in macOS System Preferences?

avril-verhaeghen commented 6 years ago

Hi @kozyilmaz , I had it with the benchmark. Didn't got the mining working since I'm not sure what cpu and gpu arguments I need to add?

kozyilmaz commented 6 years ago

It is simple really (like below for newer GPU's an connecting to EU pool):

./nheqminer-gpu -l eu1-zcash.flypool.org:3333 -u ZEC_WALLET_ADDRESS.WORKER_NAME -cd 0

Can you post your Nvidia and CUDA driver versions from macOS "System Preferences"?

avril-verhaeghen commented 6 years ago

Ok I see, will try it later, thanks!

CUDA Driver Version: 9.0.222 GPU Driver Version: 10.26.6 355.11.10.10.15.102

kozyilmaz commented 6 years ago

Are you using "Nvidia Web Driver"? It seems to me that this is macOS default GPU driver. Can you download and install "Nvidia Web Driver" for your specific macOS version (for example this one http://www.nvidia.com/download/driverResults.aspx/120845/en-us is for macOS 10.12.6)

avril-verhaeghen commented 6 years ago

Hmm, thought I had installed the Nvidia Web Driver, can't seem to find it now. Strange. I'll check it out later and let you know. Thanks!

avril-verhaeghen commented 6 years ago

Seems that I didn't install the Nvidia Web Driver yet because I was having trouble (I remember it now) installing it due to incompatibility issues. My GPU card: NVIDIA GeForce GT 750M 2 GB

screen shot 2017-11-21 at 19 43 13

Searched the Nvidia website for a version that suites OS High Sierra, but didn't find it yet. Will continue looking for it.

kozyilmaz commented 6 years ago

@avril-verhaeghen How about this one? http://www.nvidia.com/download/driverResults.aspx/126538/en-us

mkhanal commented 6 years ago

I too get the same errors, for both of the links.

Hendler commented 6 years ago

same for both old and gpu

./nheqminer-old -b -cd 0

    ==================== www.nicehash.com ====================
        Equihash CPU&GPU Miner for NiceHash v0.5c
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp, xenoncat and djeZo for providing 
          optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[11:40:56][0x00007fffa86ab340] Using SSE2: YES
[11:40:56][0x00007fffa86ab340] Using AVX: YES
[11:40:56][0x00007fffa86ab340] Using AVX2: YES
[11:40:56][0x00007fffa86ab340] CUDA error 'CUDA driver version is insufficient for CUDA runtime version' in func 'getinfo' line 61
Jonathans-MacBook-Pro:nheqminer-macos-v7 hendler$ ./nheqminer-old -b -cd 0 -ci

    ==================== www.nicehash.com ====================
        Equihash CPU&GPU Miner for NiceHash v0.5c
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp, xenoncat and djeZo for providing 
          optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: CUDA error 'CUDA driver version is insufficient for CUDA runtime version' in func 'getcount' line 50
Abort trap: 6

Also found https://devtalk.nvidia.com/default/topic/1025945/mac-cuda-9-0-driver-fully-compatible-with-macos-high-sierra-10-13-error-quot-update-required-quot-solved-/

https://stackoverflow.com/questions/38566367/installing-cuda-via-brew-and-dmg

kozyilmaz commented 6 years ago

hmmm I am not using High Sierra so I am not observing this mess I guess. Did you guys tried the workaround proposed in the link @Hendler mentioned? https://devtalk.nvidia.com/default/topic/1025945/mac-cuda-9-0-driver-fully-compatible-with-macos-high-sierra-10-13-error-quot-update-required-quot-solved-/

Hendler commented 6 years ago

I had downloaded the binaries. Compiling from scratch revealed I didn't have the Nvidia build tools, I was also prompted to upgrade from the NVidia preferences. Then, when compiling, I needed to downgrade xcode command line tools.

Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:08:57_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
Using CUDA 9 Toolkit
CUDA 9 compatible 'Command Line Tools for Xcode 8.3.2' not found!
Download and install 'Command Line Tools for Xcode 8.3.2' from 'https://developer.apple.com/download/more'
After installation run command below to switch to CUDA Toolkit compatible command line tools
  $ sudo xcode-select -switch /Library/Developer/CommandLineTools
Run command below to switch back to latest command line tools
  $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Upon doing that

Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:08:57_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
Using CUDA 9 Toolkit
Using CUDA 9 compatible 'Command Line Tools for Xcode 8.3.2'
  CLONE      autoconf
  CONFIG     autoconf
  BUILD      autoconf
  INSTALL    autoconf
  CLONE      automake
  CONFIG     automake
  BUILD      automake
  INSTALL    automake
  CLONE      libtool
  CONFIG     libtool
  BUILD      libtool
  INSTALL    libtool
  CLONE      pkgconfig
  CONFIG     pkgconfig
  BUILD      pkgconfig
  INSTALL    pkgconfig
  CLONE      objconv
  CONFIG     objconv
  BUILD      objconv
  INSTALL    objconv
  CLONE      fasm
  CONFIG     fasm
  BUILD      fasm
  INSTALL    fasm
  CLONE      cmake
  CONFIG     cmake
  BUILD      cmake
  INSTALL    cmake
  CLONE      boost
  CONFIG     boost
  BUILD      boost
  INSTALL    boost
  CLONE      nheqminer
  CONFIG     nheqminer
  BUILD      nheqminer
make[1]: *** [build] Error 1
make: *** [nheqminer_all] Error 2
$ ./
.git/       boost/      contrib/    miner/      nheqminer/  package.sh  rootfs/     tools/  
kozyilmaz commented 6 years ago

@Hendler alright can you run once more with command below and paste the log.

$ PRINT_DEBUG=y make all

Thanks!

hweekuan commented 6 years ago

i solved the problem with:

1 : using the search function of nvidia website, key in "macos driver release 10.13.2"

choose the driver, in my case here http://www.nvidia.com/download/driverResults.aspx/127670/en-us

download and install.

2, System preference, open nvidia driver manager and choose "Nvidia Web Driver". i tried choosing "OS X Default Graphics Driver" and got error

kozyilmaz commented 6 years ago

@hweekuan Yes, exactly! Unfortunately NVIDIA graphics drivers are released to specific macOS versions (yes, even minors) and in order to make miner software work Nvidia Web Driver should be installed. Glad that it worked!

Hendler commented 6 years ago
Software Version:
ProductName:    Mac OS X
ProductVersion: 10.13.2
BuildVersion:   17C88
Compiler Version:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Found CUDA installation: /usr/local/cuda, version unknown
NVCC Version:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:08:57_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
Using CUDA 9 Toolkit
CUDA 9 compatible 'Command Line Tools for Xcode 8.3.2' not found!
Download and install 'Command Line Tools for Xcode 8.3.2' from 'https://developer.apple.com/download/more'
After installation run command below to switch to CUDA Toolkit compatible command line tools
  $ sudo xcode-select -switch /Library/Developer/CommandLineTools
Run command below to switch back to latest command line tools
  $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
make: *** [syscheck] Error 1
kozyilmaz commented 6 years ago

@Hendler unfortunately CUDA looks for certain clang versions (Command Line Tools 8.3.2 in this case). You can install it from Apple Developer site (link is in the error message). I just check and fail early.

After you pass that step but you still experience issues please run command below: $ PRINT_DEBUG=y make all and paste the output

kozyilmaz commented 6 years ago

Of course you can always switch back to latest clang after compilation

Hendler commented 6 years ago

https://gist.github.com/Hendler/1138d0601989e51ec6fbd6710cc01b47

kozyilmaz commented 6 years ago

@Hendler I think cmake download has busted for some reason, file is there but not exactly right. Can you please do a clean run from scratch? Sorry for the inconvenience.

I will add sha256 checksum control during download phase as soon as I can.

sv3tli0 commented 6 years ago

For latest 10.13.3 Install > http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/Mac/Quadro_Certified/387.10.10.10.25.158/WebDriver-387.10.10.10.25.158.pkg&lang=us&type=GeForce (at least at my case this is working). Then install latest CUDA Toolkit and try to build your miner..