I've followed these steps:
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.debbut when i try to
sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install git cmake libcryptopp-dev libleveldb-dev libjsoncpp-dev libjsonrpccpp-dev libboost-all-dev libgmp-dev libreadline-dev libcurl4-gnutls-dev ocl-icd-libopencl1 opencl-headers mesa-common-dev libmicrohttpd-dev build-essential cuda -y
git clone -b 110 https://github.com/Genoil/cpp-ethereum.git
cd cpp-ethereum/
mkdir build
cd build
cmake -DBUNDLE=cudaminer ..
make
this happens:
[ 0%] Built target BuildInfo.h
[ 43%] Built target devcore
[ 54%] Built target ethash
[ 60%] Built target ethash-cl
[ 66%] Built target ethash-cuda
[ 72%] Built target ethstratum
[ 95%] Built target ethcore
[ 97%] Linking CXX executable ethminer
/home/icecom/miner/cpp-ethereum/libethcore/EthashCUDAMiner.cpp: In member function ‘workLoop’:
/home/icecom/miner/cpp-ethereum/libethcore/EthashCUDAMiner.cpp:202:96: warning: ‘startN’ may be used uninitialized in this function [-Wmaybe-uninitialized]
m_miner->search(w.headerHash.data(), upper64OfBoundary, *m_hook, (w.exSizeBits >= 0), startN);
^
/home/icecom/miner/cpp-ethereum/libethcore/EthashCUDAMiner.cpp:199:12: note: ‘startN’ was declared here
uint64_t startN;
^
/tmp/ccRDRH63.ltrans19.ltrans.o::__fatDeviceText: error: undefined reference to 'fatbinData'
collect2: error: ld returned 1 exit status
ethminer/CMakeFiles/ethminer.dir/build.make:118: recipe for target 'ethminer/ethminer' failed
make[2]: *** [ethminer/ethminer] Error 1
CMakeFiles/Makefile2:493: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failed
make[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2