Bitcoin Forum
May 06, 2024, 07:02:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [LTC] Cudaminer setup on Linux howto  (Read 18537 times)
sauleau (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 07, 2013, 09:38:59 PM
Last edit: May 21, 2013, 05:24:01 PM by sauleau
 #1

Hi,

I originally intended to post this as an answer to the LTC/cudaminer thread but apparently as a newly registered user I am not allowed to post anywhere except here - hopefully an admin can move that to the LTC forum/the cudaminer thread ?

Anyway, I compiled and set up cudaminer (for LTC mining) on a Linux amd64 Debian Squeeze system and thought I would post the procedure here as it was not completely straightforward Wink

First of all: you need a recent official nvidia linux driver. Without it, the cudaGetDeviceCount function will return 32767 (the max value of an unsigned int, but not any proper cuda error code that I can see), and various other functions will fail as well - at best, you'll get a floating point exception, at worst cudaminer will segfault. The latest version as of this writing, 319.17 (download here: http://us.download.nvidia.com/XFree86/Linux-x86_64/319.17/NVIDIA-Linux-x86_64-319.17.run), works perfectly.

You also need CUDA 5 - any older version will not support the compute_35 GPU architecture target for nvcc, and cudaminer requires it for compiling. The problem is, if you're using the latest stable version of Debian (or other stable distributions), CUDA 5 is not available - the only version available, including in backports, is CUDA 4.

If you're using the latest ubuntu or any other "cutting edge packages" distribution: you most likely have CUDA 5 in your official repositories. Just install it through apt-get/aptitude, yum or whatever and scroll down below to the actual compiling of cudaminer.

If you're not: you need to install CUDA 5 on an "older" system (like Debian Squeeze). Fortunately, there is a way to do this. Perform the following:

For 32 bits: wget http://developer.download.nvidia.com/compute/cuda/5_0/rel-update-1/installers/cuda_5.0.35_linux_32_ubuntu10.04-1.run
For 64 bits: wget http://developer.download.nvidia.com/compute/cuda/5_0/rel-update-1/installers/cuda_5.0.35_linux_64_ubuntu10.04-1.run

You can also use aria2c -j 5 with any of the aforementionned URL to speed up the download if necessary (install aria2 prior to doing that).
Let's assume INSTALLSCRIPT is the name of the file you just downloaded (should be cuda_5.0.35_linux_32_ubuntu10.04-1.run for 32 bits and cuda_5.0.35_linux_64_ubuntu10.04-1.run for 64). Do:

chmod +x INSTALLSCRIPT
sh INSTALLSCRIPT --extract=/absolute/path

To extract the various installers script from the main installer. For example:

# cd /root
# mkdir cuda5
# wget http://developer.download.nvidia.com/compute/cuda/5_0/rel-update-1/installers/cuda_5.0.35_linux_64_ubuntu10.04-1.run
# sh cuda_5.0.35_linux_64_ubuntu10.04-1.run --extract=/root/cuda5

Wait for it to finish. You should have three files: a "cuda-samples*run" file, which installs the CUDA sample programs; a "devdriver_5.0*run" file, which install the development drivers; and a "cudatoolkit_5.0*run" file, which installs the CUDA toolkit itself (including necessary libs and nvcc).
We're only interested in the last one here (although if you are interested in experimenting with CUDA development, I suggest installing the cuda samples as well  Smiley).
Therefore, do:

chmod +x cudatoolkit_5.0*run
./cudatoolkit_5.0*run

This will launch the CUDA toolkit installation. The script will ask you several questions, amongst other things where to install the toolkit. By default, it will install it in /usr/local/cuda-5.0. I suggest using /opt/cuda-5.0 instead, but whatever. Also, it will ask you wether or not you wish to have a symlink from the installation directory to /usr/local/cuda created - say yes.

You now have the CUDA toolkit installed, even if using an older distribution/system. You can delete all the (weighty) .run files now. The rest is pretty easy:

- Download the latest cudaminer archive.
- Unzip it. Inside is an archive containing the zip file with the source code. Unzip that zip file.
- Go to the extracted source code directory.
- You'll now need to compile cudaminer itself. In order for this to work, you'll need to set up your LD_LIBRARY_PATH and PATH env variables so that the Makefile will be able to find the proper CUDA libraries and binaries (for example, nvcc). Assuming CUDA_INSTALLDIR is the directory where you've installed the CUDA toolkit (should be /usr/local/cuda-5.0 by default, could be /opt/cuda-5.0 too), do:

export LD_LIBRARY_PATH="CUDA_INSTALLDIR/lib64"
...if you're on a 64bits system
and:
export LD_LIBRARY_PATH="CUDA_INSTALLDIR/lib"
...if 32 bits

Then do:

export PATH="CUDA_INSTALLDIR/bin:$PATH"

You can now compile cudaminer. In the extracted source directory, do:

chmod +x ./configure
./configure

(this will tell you if you're missing some other libraries to compile - use your package manager to install those as needed)

Then do:

make

Remark: if at that point, you get an error related to cc1plus not being found or similar, for example:

Code:
error trying to exec 'cc1plus'

Then you either do not have g++ installed or you have a too recent version of g++ (it needs to be < 4.7 and possibly 4.6 for CUDA5.0 to compile). If that is the case, install for example g++ 4.4 using your package manager (apt-get install g++-4.4 under debian/ubuntu for example). Then do:

Code:
export CXX=g++-4.4
export CC=gcc-4.4

Before doing ./configure and make to specify that you wish to use g++/gcc 4.4. This should fix the problem. Thanks MrEHQE for the feedback on this Smiley

- Finally, you can execute cudaminer. For example:

./cudaminer -d 0 -i 0 --benchmark

(refer to the official cudaminer thread and readme for more details on the usage of cudaminer itself)

As an example, the following set of commands should compile and execute cudaminer properly on an amd64 system if the cuda toolkit has been installed as described above, and assuming you've got the latest cudaminer, cudaminer-2013-04-30.zip, in the current working directory:

$ unzip cudaminer-2013-04-30.zip
$ cd cudaminer-2013-04-30
$ unzip cudaminer-src-2013.04.30.zip
$ cd cudaminer-src-2013.04.30
$ chmod +x configure
$ export LD_LIBRARY_PATH="/usr/local/cuda/lib64"
$ export PATH="/usr/local/cuda/bin:$PATH"
$ ./configure
$ make
$ ./cudaminer -d 0 -i 0 --benchmark

Note that you'll need to do:

export LD_LIBRARY_PATH="/usr/local/cuda/lib64"

each time you wish to execute cudaminer in the future (include this in your .bashrc file to avoid the hassle if you wish). You can also of course do:

LD_LIBRARY_PATH="/usr/local/cuda/lib64" ./cudaminer ...

Hopefully this'll help other Linux users :-)
1715022159
Hero Member
*
Offline Offline

Posts: 1715022159

View Profile Personal Message (Offline)

Ignore
1715022159
Reply with quote  #2

1715022159
Report to moderator
1715022159
Hero Member
*
Offline Offline

Posts: 1715022159

View Profile Personal Message (Offline)

Ignore
1715022159
Reply with quote  #2

1715022159
Report to moderator
1715022159
Hero Member
*
Offline Offline

Posts: 1715022159

View Profile Personal Message (Offline)

Ignore
1715022159
Reply with quote  #2

1715022159
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715022159
Hero Member
*
Offline Offline

Posts: 1715022159

View Profile Personal Message (Offline)

Ignore
1715022159
Reply with quote  #2

1715022159
Report to moderator
kodachrome
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
May 12, 2013, 08:40:31 PM
 #2

Thanks for the guide, got it running on a Ubuntu 13.04 AMD64 with GTS450 system. 66khash/s on a GTS450.. Wink
firepunch_PL
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
May 12, 2013, 09:09:58 PM
 #3

good job, I will try it
MrEHQE
Full Member
***
Offline Offline

Activity: 188
Merit: 100


https://www.larvalabs.com/cryptopunks/details/9724


View Profile WWW
May 17, 2013, 05:09:56 PM
 #4

Hi, great guide, but on debian wheezy x64 nvidia driver 304.88 when i try $ make i get this:

mrehqe@debian:~/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30$ make
make  all-recursive
make[1]: Entering directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30'
Making all in compat
make[2]: Entering directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30/compat'
make[3]: Entering directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30/compat'
make[2]: Leaving directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30/compat'
make[2]: Entering directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30'
g++ -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -msse2  -fopenmp   -g -O2 -MT cudaminer-cuda-miner.o -MD -MP -MF .deps/cudaminer-cuda-miner.Tpo -c -o cudaminer-cuda-miner.o `test -f 'cuda-miner.cpp' || echo './'`cuda-miner.cpp
cuda-miner.cpp:11:0: warning: "_GNU_SOURCE" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
cuda-miner.cpp: In function 'void parse_config()':
cuda-miner.cpp:1071:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mv -f .deps/cudaminer-cuda-miner.Tpo .deps/cudaminer-cuda-miner.Po
g++ -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -msse2  -fopenmp   -g -O2 -MT cudaminer-util.o -MD -MP -MF .deps/cudaminer-util.Tpo -c -o cudaminer-util.o `test -f 'util.cpp' || echo './'`util.cpp
util.cpp:10:0: warning: "_GNU_SOURCE" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
mv -f .deps/cudaminer-util.Tpo .deps/cudaminer-util.Po
g++ -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -msse2  -fopenmp   -g -O2 -MT cudaminer-sha2.o -MD -MP -MF .deps/cudaminer-sha2.Tpo -c -o cudaminer-sha2.o `test -f 'sha2.cpp' || echo './'`sha2.cpp
mv -f .deps/cudaminer-sha2.Tpo .deps/cudaminer-sha2.Po
g++ -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -msse2  -fopenmp   -g -O2 -MT cudaminer-scrypt.o -MD -MP -MF .deps/cudaminer-scrypt.Tpo -c -o cudaminer-scrypt.o `test -f 'scrypt.cpp' || echo './'`scrypt.cpp
mv -f .deps/cudaminer-scrypt.Tpo .deps/cudaminer-scrypt.Po
nvcc -g -O2 -arch=compute_10 --maxrregcount=124 --ptxas-options=-v  -o salsa_kernel.o -c salsa_kernel.cu
gcc: error trying to exec 'cc1plus': execvp: File o directory non esistente
make[2]: *** [salsa_kernel.o] Error 1
make[2]: Leaving directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mrehqe/tmp/litecoin/cudaminer-2013-04-30/cudaminer-src-2013.04.30'
make: *** [all] Error 2

what's wrong? you can give me a binary?



Open Bazaar strore: ob://QmTAueKBGV5QnNwmwpmhAVKfCvxxsQsT4CTnSsnKuacGug/store
steemit blog:
https://steemit.com/@mrehqe
sauleau (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 17, 2013, 10:35:22 PM
 #5

Hi MrEHQE,

as seen in this message:

gcc: error trying to exec 'cc1plus': execvp: File o directory non esistente

You are lacking cc1plus - the most likely cause is that g++ (the GNU C++ compiler) is not installed.
Do as the root user:

apt-get install g++

And try again.
If it still does not work, give the output of the following four commands to help understand where your issue is coming from:

gcc --version
g++ --version
ls -al /usr/lib/gcc
ls -al /usr/lib/gcc/x86_64-linux-gnu

what's wrong? you can give me a binary?

I could but first, it may not work on your system (not the same standard libraries and so forth) and second, you should not trust binaries exchanged through a forum in this way Wink it could be made to run anything (like steal part of the shares you are computing). Try the above commands !
tabbek
Member
**
Offline Offline

Activity: 116
Merit: 10



View Profile
May 17, 2013, 11:00:40 PM
 #6

+1 for the concise write-up.

 Smiley
MrEHQE
Full Member
***
Offline Offline

Activity: 188
Merit: 100


https://www.larvalabs.com/cryptopunks/details/9724


View Profile WWW
May 18, 2013, 02:32:37 PM
 #7

Hi MrEHQE,

as seen in this message:

gcc: error trying to exec 'cc1plus': execvp: File o directory non esistente

You are lacking cc1plus - the most likely cause is that g++ (the GNU C++ compiler) is not installed.
Do as the root user:

apt-get install g++

And try again.
If it still does not work, give the output of the following four commands to help understand where your issue is coming from:

gcc --version
g++ --version
ls -al /usr/lib/gcc
ls -al /usr/lib/gcc/x86_64-linux-gnu

what's wrong? you can give me a binary?

I could but first, it may not work on your system (not the same standard libraries and so forth) and second, you should not trust binaries exchanged through a forum in this way Wink it could be made to run anything (like steal part of the shares you are computing). Try the above commands !

g++ was already installed. My system is multiarch too. This is the output you want:

gcc --version
gcc (Debian 4.7.2-5) 4.7.2

g++ --version
g++ (Debian 4.7.2-5) 4.7.2

ls -al /usr/lib/gcc
drwxr-xr-x   4 root root  4096 mar 31 03:55 .
drwxr-xr-x 198 root root 69632 mag 17 20:54 ..
drwxr-xr-x   3 root root  4096 mar 31 03:55 i486-linux-gnu
drwxr-xr-x   5 root root  4096 mag 15 10:35 x86_64-linux-gnu

ls -al /usr/lib/gcc/x86_64-linux-gnu
drwxr-xr-x 5 root root 4096 mag 15 10:35 .
drwxr-xr-x 4 root root 4096 mar 31 03:55 ..
drwxr-xr-x 4 root root 4096 mag 15 10:35 4.4
lrwxrwxrwx 1 root root    3 set 20  2012 4.4.6 -> 4.4
lrwxrwxrwx 1 root root    3 set 20  2012 4.4.7 -> 4.4
drwxr-xr-x 4 root root 4096 mag  6 09:20 4.6
lrwxrwxrwx 1 root root    3 nov 27 17:57 4.6.3 -> 4.6
drwxr-xr-x 5 root root 4096 apr 23 13:23 4.7
lrwxrwxrwx 1 root root    3 mar 29 18:41 4.7.2 -> 4.7

Also,
locate cc1plus
/usr/lib/gcc/x86_64-linux-gnu/4.6/cc1plus
/usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus

I know to don't trust on binary from forums, it's just to know if I have all right dependencies. My target is to compile Wink Sorry 4 my bab english

Open Bazaar strore: ob://QmTAueKBGV5QnNwmwpmhAVKfCvxxsQsT4CTnSsnKuacGug/store
steemit blog:
https://steemit.com/@mrehqe
sauleau (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 18, 2013, 05:10:59 PM
 #8

Hmm, the problem might be that you're using gcc 4.7:

g++ (Debian 4.7.2-5) 4.7.2

and it is officially unsupported by CUDA 5.0.
You do appear to have gcc 4.4 installed as well. Just to make sure, do:

apt-get install g++-4.4 gcc-4.4

Then do:

export CXX=g++-4.4
export CC=gcc-4.4

...and try performing the configure/make sequence again for cudaminer.
If that still doesn't do it, try:

ln -s /usr/bin/gcc-4.4 /usr/local/cuda/bin/gcc
ln -s /usr/bin/g++-4.4 /usr/local/cuda/bin/g++

...and try again.
MrEHQE
Full Member
***
Offline Offline

Activity: 188
Merit: 100


https://www.larvalabs.com/cryptopunks/details/9724


View Profile WWW
May 20, 2013, 11:18:11 AM
 #9

Hmm, the problem might be that you're using gcc 4.7:

g++ (Debian 4.7.2-5) 4.7.2

and it is officially unsupported by CUDA 5.0.
You do appear to have gcc 4.4 installed as well. Just to make sure, do:

apt-get install g++-4.4 gcc-4.4

Then do:

export CXX=g++-4.4
export CC=gcc-4.4

...and try performing the configure/make sequence again for cudaminer.
If that still doesn't do it, try:

ln -s /usr/bin/gcc-4.4 /usr/local/cuda/bin/gcc
ln -s /usr/bin/g++-4.4 /usr/local/cuda/bin/g++

...and try again.

Great! it's work! no need to "ln" nothing, just install gcc/g++4.4 and export ( export LD_LIBRARY_PATH="/usr/local/cuda/lib64" and export PATH="/usr/local/cuda/bin:$PATH" too). I get a loot of

./spinlock_kernel.cu(233): Warning: Cannot tell what pointer points to, assuming global memory space

on compile, but it's looks to work right.

Some benchmark on GTX 650 TI:
[2013-05-20 13:03:30] GPU #0: GeForce GTX 650 Ti, 368640 hashes, 74.14 khash/s

i think a need some finetune... greater performance is still possible?
And so... Tank you very much!  Cheesy

Open Bazaar strore: ob://QmTAueKBGV5QnNwmwpmhAVKfCvxxsQsT4CTnSsnKuacGug/store
steemit blog:
https://steemit.com/@mrehqe
sauleau (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 21, 2013, 05:25:35 PM
 #10

i think a need some finetune... greater performance is still possible?
And so... Tank you very much!  Cheesy

Thanks to you :-) I have added the relevant information into the main post.
As for the perfs improvements, you might be better off asking in the main relevant cudaminer thread Wink
kodo
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 21, 2013, 05:58:56 PM
 #11

Good thread thanks
ironflood
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
May 30, 2013, 10:21:14 PM
 #12

Thanks for all that precious info and walkthrough, much appreciated!

I tested on a Tesla M2090, getting 215 KH/s from the GPU (cudaminer -l 128x8). When added to cpuminer from the bi-processor it outputs a total of 285 KH/s.

I got it working after few hours messing and reinstalling the nvidia drivers and CUDA.

Issues I encountered:

- Installing the nvidia drivers was painful. Had to have the GCC 4.6 while installing cuda 5.0 required GCC 4.4
  Tons of errors in nvidia driver install, dozens of symlinks broken and other warning but it actually works even with all those issues
- most of the issues already covered in this thread by others

mad4coinz
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 15, 2013, 10:16:01 PM
 #13

I'm trying to compile this under macOS Mavericks.

cudaminer-src-2013.12.10

Have installed the nvidia CUDA package and can see the libraries are in the locations mentioned so have exported the paths.

./configure wouldn't do anything

 ./configure
-bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory

ran make configure and got the following

garethswellsmbp:cudaminer-src-2013.12.10 gtsewell77$ make configure
Makefile:380: .deps/cudaminer-cpu-miner.Po: No such file or directory
Makefile:381: .deps/cudaminer-scrypt.Po: No such file or directory
Makefile:382: .deps/cudaminer-sha2.Po: No such file or directory
Makefile:383: .deps/cudaminer-util.Po: No such file or directory
make: *** No rule to make target `.deps/cudaminer-util.Po'.  Stop.

any ideas? Thanks!
TvL2386
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 21, 2013, 11:56:26 PM
 #14

@mad4coinz: from your cudaminer-src directory:
Code:
find -type f -exec fromdos {}\;
This will convert all files to have linux line endings instead of windows line endings.

I've got ubuntu-13.04 and installed the cuda package. I have NVidia driver 304.88 and a Quadro K3000M graphics card.

I get the following error:
Code:
tom@laptole cudaminer-src-2013.12.18 $ make
make  all-recursive
make[1]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
Making all in compat
make[2]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
Making all in jansson
make[3]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat/jansson'
make[3]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
make[2]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
make[2]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
g++  -g -O2 -pthread -L/usr/local/cuda/lib64  -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o cudaminer-sha2.o cudaminer-scrypt.o salsa_kernel.o spinlock_kernel.o legacy_kernel.o fermi_kernel.o test_kernel.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl compat/jansson/libjansson.a -lpthread  -lcudart -fopenmp 
salsa_kernel.o: In function `validate_config(char*, int&, int&, KernelInterface**, cudaDeviceProp*)':
/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/salsa_kernel.cu:91: undefined reference to `KeplerKernel::KeplerKernel()'
/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/salsa_kernel.cu:99: undefined reference to `KeplerKernel::KeplerKernel()'
salsa_kernel.o: In function `find_optimal_blockcount(int, KernelInterface*&, bool&, int&)':
/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/salsa_kernel.cu:295: undefined reference to `KeplerKernel::KeplerKernel()'
collect2: error: ld returned 1 exit status
make[2]: *** [cudaminer] Error 1
make[2]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
make: *** [all] Error 2
dalesd
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 29, 2013, 01:34:00 PM
 #15

I've got ubuntu-13.04 and installed the cuda package. I have NVidia driver 304.88 and a Quadro K3000M graphics card.

I get the following error:
Code:
tom@laptole cudaminer-src-2013.12.18 $ make
make  all-recursive
make[1]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
Making all in compat
make[2]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
Making all in jansson
make[3]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat/jansson'
make[3]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
make[2]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/compat'
make[2]: Entering directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
g++  -g -O2 -pthread -L/usr/local/cuda/lib64  -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o cudaminer-sha2.o cudaminer-scrypt.o salsa_kernel.o spinlock_kernel.o legacy_kernel.o fermi_kernel.o test_kernel.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl compat/jansson/libjansson.a -lpthread  -lcudart -fopenmp 
salsa_kernel.o: In function `validate_config(char*, int&, int&, KernelInterface**, cudaDeviceProp*)':
/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/salsa_kernel.cu:91: undefined reference to `KeplerKernel::KeplerKernel()'
/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/salsa_kernel.cu:99: undefined reference to `KeplerKernel::KeplerKernel()'
salsa_kernel.o: In function `find_optimal_blockcount(int, KernelInterface*&, bool&, int&)':
/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18/salsa_kernel.cu:295: undefined reference to `KeplerKernel::KeplerKernel()'
collect2: error: ld returned 1 exit status
make[2]: *** [cudaminer] Error 1
make[2]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tom/Downloads/cudaminer-2013-12-18/src/cudaminer-src-2013.12.18'
make: *** [all] Error 2

I'm getting the same errors on Ubuntu 12.04LTS.  Have you gotten anywhere with this, TvL2386?
emning
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 22, 2014, 09:53:30 AM
 #16

I'm getting the same errors on Ubuntu 12.04LTS.  Have you gotten anywhere with this, TvL2386?
You probably fixed this already, but for future readers: the solution to linking problems is to set LD_LIBRARY_PATH properly.

A good doc on this here: https://litecointalk.org/index.php?topic=3231.0
koanya
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 27, 2014, 11:37:43 PM
 #17

Hello,

I'm on debian sid and i have a compilation error with cudaminer. After make I have :

Code:
make -j4
make  all-recursive
make[1]: entrant dans le répertoire « /home/fate/checkinstall/CudaMiner-master »
Making all in compat
make[2]: entrant dans le répertoire « /home/fate/checkinstall/CudaMiner-master/compat »
make[3]: entrant dans le répertoire « /home/fate/checkinstall/CudaMiner-master/compat »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/fate/checkinstall/CudaMiner-master/compat »
make[2]: quittant le répertoire « /home/fate/checkinstall/CudaMiner-master/compat »
make[2]: entrant dans le répertoire « /home/fate/checkinstall/CudaMiner-master »
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v  -o salsa_kernel.o -c salsa_kernel.cu
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=63  -o spinlock_kernel.o -c spinlock_kernel.cu
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v  -o legacy_kernel.o -c legacy_kernel.cu
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=sm_20 --maxrregcount=63  -o fermi_kernel.o -c fermi_kernel.cu
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(318): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(327): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(355): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(281): Warning: Cannot tell what pointer points to, assuming global memory space
./legacy_kernel.cu(282): Warning: Cannot tell what pointer points to, assuming global memory space
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=32  -o kepler_kernel.o -c kepler_kernel.cu
kepler_kernel.cu(636): warning: variable "num_sleeps" was declared but never referenced

nvcc -g -O2 -Xptxas "-abi=no -v" -arch=sm_20 --maxrregcount=32  -o test_kernel.o -c test_kernel.cu
test_kernel.cu(681): warning: variable "num_sleeps" was declared but never referenced

kepler_kernel.cu(636): warning: variable "num_sleeps" was declared but never referenced

test_kernel.cu(681): warning: variable "num_sleeps" was declared but never referenced

ptxas warning : 'option -abi=no' might get deprecated in future
ptxas info    : 304 bytes gmem, 32788 bytes cmem[3]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelB_LGILi0ELi0EEvPjiij' for 'sm_30'
ptxas info    : Used 32 registers, 340 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelA_LGILi0EEvPKjiij' for 'sm_30'
ptxas info    : Used 29 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelB_LGILi0ELi2EEvPjiij' for 'sm_30'
ptxas info    : Used 32 registers, 344 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelBILi0ELi1EEvPjii' for 'sm_30'
ptxas info    : Used 28 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelBILi0ELi2EEvPjii' for 'sm_30'
ptxas info    : Used 27 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelAILi0EEvPKjii' for 'sm_30'
ptxas info    : Used 26 registers, 336 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelB_LGILi0ELi1EEvPjiij' for 'sm_30'
ptxas info    : Used 32 registers, 344 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelBILi0ELi0EEvPjii' for 'sm_30'
ptxas info    : Used 31 registers, 336 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelB_LGILi1ELi0EEvPjiij' for 'sm_30'
ptxas info    : Used 32 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelA_LGILi1EEvPKjiij' for 'sm_30'
ptxas info    : Used 27 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelB_LGILi1ELi2EEvPjiij' for 'sm_30'
ptxas info    : Used 32 registers, 344 bytes cmem[0]
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelBILi1ELi1EEvPjii' for 'sm_30'
ptxas info    : Used 25 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelBILi1ELi2EEvPjii' for 'sm_30'
ptxas info    : Used 25 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelAILi1EEvPKjii' for 'sm_30'
ptxas info    : Used 25 registers, 336 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29kepler_scrypt_core_kernelB_LGILi1ELi1EEvPjiij' for 'sm_30'
ptxas info    : Used 32 registers, 344 bytes cmem[0]
ptxas info    : Compiling entry function '_Z26kepler_scrypt_core_kernelBILi1ELi0EEvPjii' for 'sm_30'
ptxas info    : Used 30 registers, 336 bytes cmem[0]
ptxas warning : 'option -abi=no' might get deprecated in future
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=sm_35 --maxrregcount=32  -o titan_kernel.o -c titan_kernel.cu
ptxas info    : 304 bytes gmem, 32788 bytes cmem[2], 16 bytes cmem[14]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelB_LGILi0ELi0EEvPjiij' for 'sm_20'
ptxas info    : Used 32 registers, 52 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelA_LGILi0EEvPKjiij' for 'sm_20'
ptxas info    : Used 26 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelB_LGILi0ELi2EEvPjiij' for 'sm_20'
ptxas info    : Used 32 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelBILi0ELi1EEvPjii' for 'sm_20'
ptxas info    : Used 28 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelBILi0ELi2EEvPjii' for 'sm_20'
ptxas info    : Used 28 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelAILi0EEvPKjii' for 'sm_20'
ptxas info    : Used 26 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelB_LGILi0ELi1EEvPjiij' for 'sm_20'
ptxas info    : Used 32 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelBILi0ELi0EEvPjii' for 'sm_20'
ptxas info    : Used 32 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelB_LGILi1ELi0EEvPjiij' for 'sm_20'
ptxas info    : Used 32 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelA_LGILi1EEvPKjiij' for 'sm_20'
ptxas info    : Used 24 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelB_LGILi1ELi2EEvPjiij' for 'sm_20'
ptxas info    : Used 30 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelBILi1ELi1EEvPjii' for 'sm_20'
ptxas info    : Used 24 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelBILi1ELi2EEvPjii' for 'sm_20'
ptxas info    : Used 24 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelAILi1EEvPKjii' for 'sm_20'
ptxas info    : Used 26 registers, 48 bytes cmem[0]
ptxas info    : Compiling entry function '_Z27test_scrypt_core_kernelB_LGILi1ELi1EEvPjiij' for 'sm_20'
ptxas info    : Used 30 registers, 52 bytes cmem[0]
ptxas info    : Compiling entry function '_Z24test_scrypt_core_kernelBILi1ELi0EEvPjii' for 'sm_20'
ptxas info    : Used 28 registers, 48 bytes cmem[0]
titan_kernel.cu(625): warning: variable "num_sleeps" was declared but never referenced

ptxas warning : 'option -abi=no' might get deprecated in future
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-cpu-miner.o -MD -MP -MF .deps/cudaminer-cpu-miner.Tpo -c -o cudaminer-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
mv -f .deps/cudaminer-cpu-miner.Tpo .deps/cudaminer-cpu-miner.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-util.o -MD -MP -MF .deps/cudaminer-util.Tpo -c -o cudaminer-util.o `test -f 'util.c' || echo './'`util.c
ptxas warning : 'option -abi=no' might get deprecated in future
titan_kernel.cu(625): warning: variable "num_sleeps" was declared but never referenced

mv -f .deps/cudaminer-util.Tpo .deps/cudaminer-util.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-sha2.o -MD -MP -MF .deps/cudaminer-sha2.Tpo -c -o cudaminer-sha2.o `test -f 'sha2.c' || echo './'`sha2.c
ptxas info    : 304 bytes gmem, 32768 bytes cmem[2], 16 bytes cmem[14]
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi0ELi1EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 20 bytes lmem
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelBILi0EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 24 bytes lmem
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelAILi0EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi0ELi2EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 20 bytes lmem
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi1ELi1EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 20 bytes lmem
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelBILi1EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 20 bytes lmem
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelAILi1EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi1ELi2EEvPjj' for 'sm_20'
ptxas info    : Used 63 registers, 44 bytes cmem[0], 20 bytes lmem
ptxas info    : 304 bytes gmem, 32768 bytes cmem[3]
ptxas info    : Compiling entry function '_Z32spinlock_scrypt_core_kernelB_texILi0ELi1EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 336 bytes cmem[0], 4 bytes cmem[2], 20 bytes lmem
ptxas info    : Compiling entry function '_Z28spinlock_scrypt_core_kernelBILi0EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 332 bytes cmem[0], 4 bytes cmem[2], 12 bytes lmem
ptxas info    : Compiling entry function '_Z28spinlock_scrypt_core_kernelAILi0EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 332 bytes cmem[0], 4 bytes cmem[2], 4 bytes lmem
ptxas info    : Compiling entry function '_Z32spinlock_scrypt_core_kernelB_texILi0ELi2EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 336 bytes cmem[0], 4 bytes cmem[2], 32 bytes lmem
ptxas info    : Compiling entry function '_Z32spinlock_scrypt_core_kernelB_texILi1ELi1EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 336 bytes cmem[0], 4 bytes cmem[2], 16 bytes lmem
ptxas info    : Compiling entry function '_Z28spinlock_scrypt_core_kernelBILi1EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 332 bytes cmem[0], 4 bytes cmem[2], 12 bytes lmem
ptxas info    : Compiling entry function '_Z28spinlock_scrypt_core_kernelAILi1EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 332 bytes cmem[0], 4 bytes cmem[2], 4 bytes lmem
ptxas info    : Compiling entry function '_Z32spinlock_scrypt_core_kernelB_texILi1ELi2EEvPjj' for 'sm_30'
ptxas info    : Used 63 registers, 64 bytes smem, 336 bytes cmem[0], 4 bytes cmem[2], 12 bytes lmem
ptxas warning : 'option -abi=no' might get deprecated in future
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-scrypt.o -MD -MP -MF .deps/cudaminer-scrypt.Tpo -c -o cudaminer-scrypt.o `test -f 'scrypt.cpp' || echo './'`scrypt.cpp
ptxas info    : 304 bytes gmem, 32788 bytes cmem[3]
ptxas info    : Compiling entry function '_Z28titan_scrypt_core_kernelA_LGILi0EEvPKjiij' for 'sm_35'
ptxas info    : Used 29 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z28titan_scrypt_core_kernelB_LGILi0EEvPjiij' for 'sm_35'
ptxas info    : Used 32 registers, 340 bytes cmem[0], 4 bytes lmem
ptxas info    : Compiling entry function '_Z25titan_scrypt_core_kernelAILi0EEvPKjii' for 'sm_35'
ptxas info    : Used 26 registers, 336 bytes cmem[0]
ptxas info    : Compiling entry function '_Z25titan_scrypt_core_kernelBILi0EEvPjii' for 'sm_35'
ptxas info    : Used 31 registers, 336 bytes cmem[0]
ptxas info    : Compiling entry function '_Z28titan_scrypt_core_kernelA_LGILi1EEvPKjiij' for 'sm_35'
ptxas info    : Used 24 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z28titan_scrypt_core_kernelB_LGILi1EEvPjiij' for 'sm_35'
ptxas info    : Used 32 registers, 340 bytes cmem[0]
ptxas info    : Compiling entry function '_Z25titan_scrypt_core_kernelAILi1EEvPKjii' for 'sm_35'
ptxas info    : Used 25 registers, 336 bytes cmem[0]
ptxas info    : Compiling entry function '_Z25titan_scrypt_core_kernelBILi1EEvPjii' for 'sm_35'
ptxas info    : Used 29 registers, 336 bytes cmem[0]
mv -f .deps/cudaminer-sha2.Tpo .deps/cudaminer-sha2.Po
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing  -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-scrypt-jane.o -MD -MP -MF .deps/cudaminer-scrypt-jane.Tpo -c -o cudaminer-scrypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp
mv -f .deps/cudaminer-scrypt-jane.Tpo .deps/cudaminer-scrypt-jane.Po
mv -f .deps/cudaminer-scrypt.Tpo .deps/cudaminer-scrypt.Po
g++  -g -O2 -pthread -L/usr/local/cuda/lib64  -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o cudaminer-sha2.o cudaminer-scrypt.o cudaminer-scrypt-jane.o salsa_kernel.o spinlock_kernel.o legacy_kernel.o fermi_kernel.o kepler_kernel.o test_kernel.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl -ljansson -lpthread  -lcudart -fopenmp -L/opt/cuda/lib64 -L/opt/cuda/lib64
cudaminer-scrypt.o: dans la fonction « scanhash_scrypt »:
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:730: référence indéfinie vers « prepare_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:761: référence indéfinie vers « pre_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:771: référence indéfinie vers « post_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:834: référence indéfinie vers « pre_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:843: référence indéfinie vers « post_sha256 »
salsa_kernel.o: dans la fonction « validate_config(char*, int&, int&, KernelInterface**, cudaDeviceProp*) »:
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:165: référence indéfinie vers « NV2Kernel::NV2Kernel() »
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:164: référence indéfinie vers « NVKernel::NVKernel() »
salsa_kernel.o: dans la fonction « find_optimal_blockcount(int, KernelInterface*&, bool&, int&) »:
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:392: référence indéfinie vers « NV2Kernel::NV2Kernel() »
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:390: référence indéfinie vers « NVKernel::NVKernel() »
cudaminer-scrypt-jane.o: dans la fonction « scanhash_scrypt_jane »:
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:502: référence indéfinie vers « pre_keccak512 »
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:531: référence indéfinie vers « pre_keccak512 »
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:582: référence indéfinie vers « post_keccak512 »
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:475: référence indéfinie vers « prepare_keccak512 »
collect2: error: ld returned 1 exit status
make[2]: *** [cudaminer] Erreur 1
make[2]: quittant le répertoire « /home/fate/checkinstall/CudaMiner-master »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/fate/checkinstall/CudaMiner-master »
make: *** [all] Erreur 2

I havn't error during configure and I installed cuda 5.5 so I don't understant where is the problem. Do you have any idea ?

Thank you Smiley
supervisor81
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 03, 2014, 07:06:09 AM
 #18

Running autogen.sh resolve the problem.
Please see http://wiki.in-ton.ru/w/%D0%A1%D0%BE%D0%B1%D0%B8%D1%80%D0%B0%D0%B5%D0%BC_CudaMiner_%D0%B4%D0%BB%D1%8F_%D0%B4%D0%BE%D0%B1%D1%8B%D1%87%D0%B8_Litecoin/NovaCoin/Feathercoin
This is in russian, but i think that you cantch the idea.

Hello,

I'm on debian sid and i have a compilation error with cudaminer. After make I have :

Code:
g++  -g -O2 -pthread -L/usr/local/cuda/lib64  -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o cudaminer-sha2.o cudaminer-scrypt.o cudaminer-scrypt-jane.o salsa_kernel.o spinlock_kernel.o legacy_kernel.o fermi_kernel.o kepler_kernel.o test_kernel.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl -ljansson -lpthread  -lcudart -fopenmp -L/opt/cuda/lib64 -L/opt/cuda/lib64
cudaminer-scrypt.o: dans la fonction « scanhash_scrypt »:
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:730: référence indéfinie vers « prepare_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:761: référence indéfinie vers « pre_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:771: référence indéfinie vers « post_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:834: référence indéfinie vers « pre_sha256 »
/home/fate/checkinstall/CudaMiner-master/scrypt.cpp:843: référence indéfinie vers « post_sha256 »
salsa_kernel.o: dans la fonction « validate_config(char*, int&, int&, KernelInterface**, cudaDeviceProp*) »:
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:165: référence indéfinie vers « NV2Kernel::NV2Kernel() »
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:164: référence indéfinie vers « NVKernel::NVKernel() »
salsa_kernel.o: dans la fonction « find_optimal_blockcount(int, KernelInterface*&, bool&, int&) »:
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:392: référence indéfinie vers « NV2Kernel::NV2Kernel() »
/home/fate/checkinstall/CudaMiner-master/salsa_kernel.cu:390: référence indéfinie vers « NVKernel::NVKernel() »
cudaminer-scrypt-jane.o: dans la fonction « scanhash_scrypt_jane »:
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:502: référence indéfinie vers « pre_keccak512 »
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:531: référence indéfinie vers « pre_keccak512 »
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:582: référence indéfinie vers « post_keccak512 »
/home/fate/checkinstall/CudaMiner-master/scrypt-jane.cpp:475: référence indéfinie vers « prepare_keccak512 »
collect2: error: ld returned 1 exit status
make[2]: *** [cudaminer] Erreur 1
make[2]: quittant le répertoire « /home/fate/checkinstall/CudaMiner-master »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/fate/checkinstall/CudaMiner-master »
make: *** [all] Erreur 2

I havn't error during configure and I installed cuda 5.5 so I don't understant where is the problem. Do you have any idea ?

Thank you Smiley

koanya
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 03, 2014, 11:11:59 AM
 #19

It works with autogen, thank you very much Wink
unrulycow
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 21, 2014, 03:00:27 AM
 #20

I was getting the error mentioned above, but that was fixed  by autogen.  Now I get the following.  Any ideas?

Code:
make[1]: Entering directory `/home/berniehglee/CudaMiner'
Making all in compat
make[2]: Entering directory `/home/berniehglee/CudaMiner/compat'
Making all in jansson
make[3]: Entering directory `/home/berniehglee/CudaMiner/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/berniehglee/CudaMiner/compat/jansson'
make[3]: Entering directory `/home/berniehglee/CudaMiner/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/berniehglee/CudaMiner/compat'
make[2]: Leaving directory `/home/berniehglee/CudaMiner/compat'
make[2]: Entering directory `/home/berniehglee/CudaMiner'
g++  -g -O2 -pthread -L/usr/local/cuda/lib64  -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o wrapnvml.o cudaminer-sha2.o cudaminer-scrypt.o cudaminer-maxcoin.o cudaminer-blakecoin.o cudaminer-sha3.o cudaminer-scrypt-jane.o salsa_kernel.o sha256.o keccak.o blake.o cudaminer-blake.o fermi_kernel.o kepler_kernel.o test_kernel.o nv_kernel.o nv_kernel2.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl compat/jansson/libjansson.a -lpthread  -lcudart -fopenmp -lcrypto -lssl  -lcrypto -lssl
/usr/bin/ld: wrapnvml.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!