Pages:
Author

Topic: [XMR] Tutorial: How to compile your mining software on Linux ? - page 2. (Read 11088 times)

legendary
Activity: 1260
Merit: 1046
Merci pour vos retours / Thanks for your replies  Smiley.

I advanced for the error message during the make command.

The command who make the error is :
Quote
nvcc -g -O2 -I . -Xptxas "-abi=no -v" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --maxrregcount=80 --ptxas-options=-v -I./compat/jansson -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
The terminal ouput is :
Quote
In file included from /usr/local/cuda-6.5/bin/..//include/cuda_runtime.h:59:0,
                 from :0:
/usr/local/cuda-6.5/bin/..//include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
One more time, the problem seems to be a problem with the 5.xx GCC version include in Ubuntu 16.04.

I"ll try with a Ubuntu 14.04 version.
sr. member
Activity: 437
Merit: 250
I'd tried the tuto (Ubuntu 16.04, 64 bits, desktop) and I found some small error (probably copy / paste) :

The line "sudo cd /opt/cuda" (don't work) -> "cd /opt/cuda" (work).
The line "sudo /opt/cuda /cuda_6.5.14_linux_64.run -extract=`pwd`/install-scripts" -> "sudo ./cuda_6.5.14_linux_64.run -extract=`pwd`/install-scripts"
The line "sudo cd /opt/cuda/install-scripts" -> "cd /opt/cuda/install-scripts"
The line "export PATH=$PATH:/usr/local/cuda/bin" -> "export PATH=$PATH:/usr/local/cuda-6.5/bin"
The line "export LD_LIBRARY_PATH=:/usr/local/cuda/lib64" -> "export LD_LIBRARY_PATH=:/usr/local/cuda-6.5/lib64"
The line "sudo cd /opt/cmminer" -> "cd /opt/cmminer"
The line "sudo cd ./ccminer-cryptonight-master/" -> "cd ./ccminer-cryptonight-master/"
The line "sudo ./autogen" -> "sudo ./autogen.sh"

In the part of the dependancies in the tuto, libssl-dev is forgoten :
"sudo apt-get install libssl-dev"

At the end, the installation fail in the make command with a error message on the Cuda command missing (but nvcc is installed with a good response to the command nvcc --version : probably the level of compute of the Cuda 6.5 is to low)

The nvcc error is cause by not adding the cuda libraries to you path. Did the above export commands work?
legendary
Activity: 2156
Merit: 1131
I'd tried the tuto (Ubuntu 16.04, 64 bits, desktop) and I found some small error (probably copy / paste) :

The line "sudo cd /opt/cuda" (don't work) -> "cd /opt/cuda" (work).
The line "sudo /opt/cuda /cuda_6.5.14_linux_64.run -extract=`pwd`/install-scripts" -> "sudo ./cuda_6.5.14_linux_64.run -extract=`pwd`/install-scripts"
The line "sudo cd /opt/cuda/install-scripts" -> "cd /opt/cuda/install-scripts"
The line "export PATH=$PATH:/usr/local/cuda/bin" -> "export PATH=$PATH:/usr/local/cuda-6.5/bin"
The line "export LD_LIBRARY_PATH=:/usr/local/cuda/lib64" -> "export LD_LIBRARY_PATH=:/usr/local/cuda-6.5/lib64"
The line "sudo cd /opt/cmminer" -> "cd /opt/cmminer"
The line "sudo cd ./ccminer-cryptonight-master/" -> "cd ./ccminer-cryptonight-master/"
The line "sudo ./autogen" -> "sudo ./autogen.sh"

In the part of the dependancies in the tuto, libssl-dev is forgoten :
"sudo apt-get install libssl-dev"

At the end, the installation fail in the make command with a error message on the Cuda command missing (but nvcc is installed with a good response to the command nvcc --version : probably the level of compute of the Cuda 6.5 is to low)

salut, t'as essayé cette branche ?

https://github.com/KlausT/ccminer-cryptonight
legendary
Activity: 1260
Merit: 1046
I'd tried the tuto (Ubuntu 16.04, 64 bits, desktop) and I found some small error (probably copy / paste) :

The line "sudo cd /opt/cuda" (don't work) -> "cd /opt/cuda" (work).
The line "sudo /opt/cuda /cuda_6.5.14_linux_64.run -extract=`pwd`/install-scripts" -> "sudo ./cuda_6.5.14_linux_64.run -extract=`pwd`/install-scripts"
The line "sudo cd /opt/cuda/install-scripts" -> "cd /opt/cuda/install-scripts"
The line "export PATH=$PATH:/usr/local/cuda/bin" -> "export PATH=$PATH:/usr/local/cuda-6.5/bin"
The line "export LD_LIBRARY_PATH=:/usr/local/cuda/lib64" -> "export LD_LIBRARY_PATH=:/usr/local/cuda-6.5/lib64"
The line "sudo cd /opt/cmminer" -> "cd /opt/cmminer"
The line "sudo cd ./ccminer-cryptonight-master/" -> "cd ./ccminer-cryptonight-master/"
The line "sudo ./autogen" -> "sudo ./autogen.sh"

In the part of the dependancies in the tuto, libssl-dev is forgoten :
"sudo apt-get install libssl-dev"

At the end, the installation fail in the make command with a error message on the Cuda command missing (but nvcc is installed with a good response to the command nvcc --version : probably the level of compute of the Cuda 6.5 is to low)
sr. member
Activity: 437
Merit: 250
GTX 1070 works with CUDA 7.5 version of Genoil and a CUDA 5.x version of QTMiner

 You have it backwards - you can't run CUDA 8 code on anything LESS than a GTX 1xxx card, but the GTX 1xxx cards CAN run older CUDA code - abet they usually won't be as well optimised for it as for more recent code that takes advantage of their new features.


Thanks for these informations.

Thanks for pointing this out. Cuda is backwards compatible so newer versions should work for most of the cards used to mine today.
legendary
Activity: 2156
Merit: 1131
 
Check out this new branch from KlausT : https://github.com/KlausT/ccminer-cryptonight

legendary
Activity: 1260
Merit: 1046
GTX 1070 works with CUDA 7.5 version of Genoil and a CUDA 5.x version of QTMiner

 You have it backwards - you can't run CUDA 8 code on anything LESS than a GTX 1xxx card, but the GTX 1xxx cards CAN run older CUDA code - abet they usually won't be as well optimised for it as for more recent code that takes advantage of their new features.


Thanks for these informations.
legendary
Activity: 1498
Merit: 1030
GTX 1070 works with CUDA 7.5 version of Genoil and a CUDA 5.x version of QTMiner

 You have it backwards - you can't run CUDA 8 code on anything LESS than a GTX 1xxx card, but the GTX 1xxx cards CAN run older CUDA code - abet they usually won't be as well optimised for it as for more recent code that takes advantage of their new features.

legendary
Activity: 1260
Merit: 1046
Thank for this very good work Sylon.

2 questions please :

1) Ubuntu/GCC version :
Do you think this tuto will work with Ubuntu 16.04 (compiler GCC 5.xx) or only with Ubuntu 14.04 and earlier (compiler GCC 4.xx) ?
With some precedent try (not your tuto), I had fails with the message that CCMiner is only compatible with GCC 4.xx.

2) Cuda version :
Why do you use Cuda 6.5 ?
Are you sure that the compilation don't work with Cuda 7.5 ?
And what about Cuda 8.0 : GTX 1xxx series are only supported by Cuda 8.0 ?
legendary
Activity: 1568
Merit: 1169







Code:
sudo apt-get install build-essential linux-headers-$(uname -r)



Code:
sudo apt-get install libcurl4-openssl-dev libssl-dev



Code:
sudo apt-get install autoconf









Code:
sudo mkdir /opt/cuda



Code:
cd /opt/cuda






Code:
sudo wget -c http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_32.run



Code:
sudo wget -c http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run





Code:
sudo chmod +x /opt/cuda/cuda_6.5.14_linux_32.run



Code:
sudo chmod +x /opt/cuda/cuda_6.5.14_linux_64.run





Code:
sudo mkdir /opt/cuda/install-scripts






Code:
sudo /opt/cuda/cuda_6.5.14_linux_32.run -extract=/opt/cuda/install-scripts



Code:
sudo /opt/cuda /cuda_6.5.14_linux_64.run -extract=/opt/cuda/install-scripts



Code:
cd /opt/cuda/install-scripts





Code:
sudo ./cuda-linux32-rel-6.5.14-18749181.run



Code:
sudo ./cuda-linux64-rel-6.5.14-18749181.run






Code:
export PATH=$PATH:/usr/local/cuda/bin
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib



Code:
export PATH=$PATH:/usr/local/cuda/bin
Code:
export LD_LIBRARY_PATH=:/usr/local/cuda/lib64





Code:
sudo mkdir /opt/cmminer



Code:
cd /opt/cmminer





Code:
sudo wget -c https://github.com/KlausT/ccminer-cryptonight/archive/master.zip



Code:
sudo unzip ./master.zip
Code:
cd ./ccminer-cryptonight-master/



Code:
sudo ./autogen.sh
Code:
sudo ./configure
Code:
sudo make
Code:
sudo make clean
Code:
sudo make install

legendary
Activity: 1568
Merit: 1169






Code:
sudo apt-get install build-essential  automake autoconf git make libcurl4-openssl-dev linux-headers-$(uname -r)
Code:
sudo export CFLAGS="-march=native"



Code:
sudo mkdir /opt/minerd
Code:
cd /opt/minerd



Code:
sudo git clone git clone https://github.com/wolf9466/cpuminer-multi.git



Code:
cd cpuminer-multi
Code:
sudo ./autogen.sh
Code:
sudo ./configure
Code:
sudo make
Code:
sudo make install



Code:
sudo minerd -a cryptonight -o stratum+tcp://xmr.crypto-pool.fr:3333 -u your_wallet_address -p x

legendary
Activity: 1568
Merit: 1169




█████████████
███████████
████████████
███████████
████████████
█████████
██████████
██████████
███████████
█████████████
████████████
█████████████
█████████████
High Efficiency | Ultra Stability
Pages:
Jump to:
© 2020, Bitcointalksearch.org