I am using a GTX 1060 but replace the download for the driver with the correct/current version for your particular card by visiting: http://www.nvidia.com/Download/index.aspx?lang=en-us
yum install automake curl openssl-devel libcurl-devel gcc gcc-c++
yum -y install kernel-devel-`uname -r`
yum -y install unzip
#the uname -r command is important it installs the kernel-devel source for your exact running kernel
#otherwise usually you will be running an older kernel and kernel-devel alone would install a newer kernel-devel which the driver cannot use (you need matching running kernel and kernel-devel for it to work)
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.66/NVIDIA-Linux-x86_64-375.66.run
bash NVIDIA-Linux-x86_64-375.66.run
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example,
be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
OK
#get nvidia opencl
#cuda tools
#visit
https://developer.nvidia.com/cuda-downloads
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
bash cuda_8.0.61_375.26_linux-run
-------------------------------------------------------------
Do you accept the previously read EULA?
accept/decline/quit: accept
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: yes
Do you want to install the OpenGL libraries?
(y)es/(n)o/(q)uit [ default is yes ]: yes
Do you want to run nvidia-xconfig?
This will update the system X configuration file so that the NVIDIA X driver
is used. The pre-existing X configuration file will be backed up.
This option should not be used on systems that require a custom
X configuration, such as systems with multiple GPU vendors.
(y)es/(n)o/(q)uit [ default is no ]: yes
Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: yes
Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]: yes
Toolkit location must be an absolute path.
Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]:
Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: yes
Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: yes
Enter CUDA Samples Location
[ default is /root ]: /usr/local/cuda/samples
Installing the NVIDIA display driver...
Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Missing recommended library: libGLU.so
Missing recommended library: libXi.so
Missing recommended library: libXmu.so
Installing the CUDA Samples in /usr/local/cuda/samples ...
Copying samples to /usr/local/cuda/samples/NVIDIA_CUDA-8.0_Samples now...
cp: cannot copy a directory, ‘/usr/local/cuda-8.0/bin/../samples/NVIDIA_CUDA-8.0_Samples’, into itself, ‘/usr/local/cuda/samples/NVIDIA_CUDA-8.0_Samples/NVIDIA_CUDA-8.0_Samples’
Finished copying samples.
===========
= Summary =
===========
Driver: Installed
Toolkit: Installed in /usr/local/cuda-8.0
Samples: Installed in /usr/local/cuda/samples, but missing recommended libraries
Please make sure that
- PATH includes /usr/local/cuda-8.0/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall
Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.
Logfile is /tmp/cuda_install_6358.log
#get cudaminer
#https://github.com/cbuchner1/CudaMiner/wiki/Howto-Compile-cudaminer
wget https://github.com/cbuchner1/CudaMiner/archive/master.zip -O cudaminer.zip
unzip cudaminer.zip
cd CudaMiner-master
./autogen.sh
configure.ac:103: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
./configure: line 6211: syntax error near unexpected token `,'
./configure: line 6211: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'
cd /usr/lib64
ln -s libcurl.so libcurl-gnutls.so
ln -s libcurl.so.4 libcurl-gntuls.so.4
cd /root/CudaMiner
./autogen.sh
./configure
make
ons=-v -I./compat/jansson -o wrapnvml.o -c wrapnvml.cu
/bin/sh: nvcc: command not found
make[2]: *** [wrapnvml.o] Error 127
make[2]: Leaving directory `/root/CudaMiner-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/CudaMiner-master'
make: *** [all] Error 2
export PATH=$PATH:/usr/local/cuda/bin make nvcc -g -O2 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o wrapnvml.o -c wrapnvml.cu
nvcc fatal : Value 'compute_10' is not defined for option 'gpu-architecture'
make[2]: *** [wrapnvml.o] Error 1
make[2]: Leaving directory `/root/CudaMiner-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/CudaMiner-master'
make: *** [all] Error 2
sed -i s/arch=compute_10/arch=sm_30/g Makefile
make
cudaminer
/root/CudaMiner-master/cudaminer: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory
ln -s /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/lib64/
#now it works
centos, cudaminer, nvidia, gtx, download, http, www, index, aspx, lang, en, yum, install, automake, curl, openssl, devel, libcurl, gcc, kernel, uname, unzip, installs, newer, matching, wget, xfree, linux, _, bash, unable, currently, installed, configured, rpm, specify, ok, opencl, cuda, https, developer, downloads, compute, prod, local_installers, cuda_, _linux, previously, eula, decline, accelerated, graphics, es, uit, opengl, libraries, default, xconfig, update, configuration, existing, custom, multiple, gpu, vendors, toolkit, usr, symbolic, installing, display, recommended, libglu, libxi, libxmu, copying, nvidia_cuda, _samples, cp, directory, lsquo, bin, rsquo, summary, includes, ld_library_path, lib, etc, ld, conf, ldconfig, uninstall, cuda_installation_guide_linux, pdf, detailed, logfile, tmp, cuda_install_, github, cbuchner, wiki, howto, compile, archive, zip, autogen, sh, configure, ac, undefined, macro, ac_msg_error, token, legitimate, _pattern_allow, autoconf, documentation, syntax, libcurl_check_config, ln, gnutls, gntuls, ons, compat, jansson, wrapnvml, cu, nvcc, recursive, export, xptxas, quot, abi, compute_, maxrregcount, ptxas, cunvcc, fatal, defined, architecture, sed, sm_, makefile, loading, libcudart,