KlausT / ccminer

Software for mining various cryptocoins
GNU General Public License v3.0
402 stars 312 forks source link

Release 8.19 - CUDA 9.1 #180

Open ugle1 opened 6 years ago

ugle1 commented 6 years ago

Hi, i'm running CUDA 9.1 on my Ubuntu installation. Is it possible to install version 8.19 and make it work with that version of CUDA?

KlausT commented 6 years ago

Yes, that's usually no problem.

You have to install a few things first:

Then you download the source code and run ./build.sh When this is done then everything's ready

ugle1 commented 6 years ago

Thanks for a qucik reply and for answering my question. The compilation seemed to run OK and I ended up with a ccminer binary. Still it seems like it's not finding my CUDA installation.

user@localhost:~/ccminer-8.19$ ./ccminer -h
ccminer 8.19-KlausT (64bit) for nVidia GPUs
Compiled with GCC 5.4 using Nvidia CUDA Toolkit 9.1

Based on pooler cpuminer 2.3.2 and the tpruvot@github fork
CUDA support by Christian Buchner, Christian H. and DJM34
Includes optimizations implemented by sp-hash, klaust, tpruvot and tsiv.

[2018-01-28 07:13:03] Driver does not support CUDA 9.1 API! Update your nVidia driver!
user@localhost:~/ccminer-8.19$ cat /usr/local/cuda/version.txt 
CUDA Version 9.1.85
user@localhost:~/ccminer-8.19$ ls /usr/local/cuda
cuda/     cuda-8.0/ cuda-9.1/ 

Do you have any suggestions?

ugle1 commented 6 years ago

My driver version is 384.111.

KlausT commented 6 years ago

You probably have to update the driver. And please check if it is actually being used

nazerim commented 6 years ago

Works fine with NVidia driver 390.12 / CUDA Version 9.1.85 Make sure libcudart.so.9.1 is in the ldconfig path, and run ldconfig

ugle1 commented 6 years ago

Thanks, I installed the latest NVIDIA driver, 390.25 (released a few hours ago). In Ubuntu 16.04 I first had to reboot, stop lightdm (service lightdm stop), kill all other processes that used the nvidia driver (nvidia-smi will tell you which processes), then I could install using the .run file from nvidia.com.

The compiled ccminer file that failed earlier now worked. Thanks for a great miner, my gtx 1070 mines neoscrypt with 1100 kH/s, great improvement from the nicehash excavator that only manages 960-1040 kH/s.

KlausT, do you include a devfee in the ccminer?

nazerim commented 6 years ago

For the record, I'm using the deb repository: http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main

sudo apt install nvidia-390 sudo apt install cuda-command-line-tools-8-0 sudo apt install cuda-command-line-tools-9-0 sudo apt install cuda-command-line-tools-9-1

As of writing this, the ppa driver is still 390.12

Been running neoscrypt very stable for over 24 hours with the git development branch (8.20)

KlausT commented 6 years ago

There's no dev fee