Author Topic: Donations to open source a GPU Protoshares miner (PTS)  (Read 73894 times)

0 Members and 1 Guest are viewing this topic.

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #43 on: January 08, 2014, 01:41:08 pm »
Code: [Select]
$ make -f makefile.unix
nvcc -O3 -c -arch=sm_30 -o obj/gpuhash.o gpuhash.cu
nvcc fatal   : Path to libdevice library not specified
make: *** [obj/gpuhash.o] Error 255

Any idea?

Urk, wow.  I've never seen that compile error.  Is your LD_LIBRARY_PATH set to include the cuda libs?  Often /usr/local/cuda-5.5/lib64

But I think this is a CUDA install problem.  Googling it suggests that the line

NVVMIR_LIBRARY_DIR = /usr/lib/nvidia-cuda-toolkit/libdevice
to /etc/nvcc.profile

fixed it for some people.

But that may not apply to you.  Are you using Debian?  If so, give that a shot, correcting the path as needed for the location of the cuda toolkit.

Offline archit

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #42 on: January 08, 2014, 01:34:23 pm »
None, yet

Offline pvp1982

  • Jr. Member
  • **
  • Posts: 29
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #41 on: January 08, 2014, 01:28:52 pm »
windows 7 64bit binary?

Offline archit

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #40 on: January 08, 2014, 01:21:42 pm »
Someone please compile it on windows for ypool

Offline 5chdn

  • Sr. Member
  • ****
  • Posts: 487
  • i wonder how many chars i can put in this field 50
    • View Profile
    • Votesapp
  • GitHub: 5chdn
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #39 on: January 08, 2014, 01:07:20 pm »
Code: [Select]
$ make -f makefile.unix
nvcc -O3 -c -arch=sm_30 -o obj/gpuhash.o gpuhash.cu
nvcc fatal   : Path to libdevice library not specified
make: *** [obj/gpuhash.o] Error 255

Any idea?

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #38 on: January 08, 2014, 12:36:21 pm »
After installing yasm i am getting the following error in Ubuntu 12.04

balu@jagali:~/cudapts$ make -f makefile.unix
make: ./osfinder.sh: Command not found
make: ./osfinder.sh: Command not found
make: ./osfinder.sh: Command not found
nvcc -O3 -c -arch=sm_35 -o obj/gpuhash.o gpuhash.cu
make: nvcc: Command not found
make: *** [obj/gpuhash.o] Error 127

2 problems here:

1)  Do a git pull again, I added osfinder

2)  You need to have the nvcc compiler in your path.  It's in path-to-your-cuda-install/bin

Offline EvilTwin

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #37 on: January 08, 2014, 12:35:12 pm »
After installing yasm i am getting the following error in Ubuntu 12.04

balu@jagali:~/cudapts$ make -f makefile.unix
make: ./osfinder.sh: Command not found
make: ./osfinder.sh: Command not found
make: ./osfinder.sh: Command not found
nvcc -O3 -c -arch=sm_35 -o obj/gpuhash.o gpuhash.cu
make: nvcc: Command not found
make: *** [obj/gpuhash.o] Error 127
Take a look at page 2, theres a description where to get osfinder.sh. As for nvcc, have you installed the cuda toolkit?

Offline jagali2014

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #36 on: January 08, 2014, 12:33:54 pm »
After installing yasm i am getting the following error in Ubuntu 12.04

balu@jagali:~/cudapts$ make -f makefile.unix
make: ./osfinder.sh: Command not found
make: ./osfinder.sh: Command not found
make: ./osfinder.sh: Command not found
nvcc -O3 -c -arch=sm_35 -o obj/gpuhash.o gpuhash.cu
make: nvcc: Command not found
make: *** [obj/gpuhash.o] Error 127

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #35 on: January 08, 2014, 12:23:58 pm »
Yep, linux, I got the the missing package, now this:
make -f makefile.unix
g++ -c -O2  -pthread -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/cudapts/cudapts/src -I/root/cudapts/cudapts/src/obj -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o obj/main_poolminer.o main_poolminer.cpp
g++ -Wl,-z,relro -Wl,-z,now  -o cudapts  obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512.o obj/sph_sha2.o obj/sph_sha2big.o obj/gpuhash.o obj/main_poolminer.o -L/usr/local/cuda-5.5/lib64 -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l boost_chrono -Wl,-Bdynamic -l z -l dl -l cudart -l pthread
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lboost_chrono
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [cudapts] Error 1

Which linux? if Ubuntu:

apt-get install
libboost-chrono1.48-dev libboost1.48-doc libboost-date-time1.48-dev libboost-filesystem1.48-dev libboost-graph-parallel1.48-dev libboost-graph1.48-dev libboost-iostreams1.48-dev libboost-locale1.48-dev libboost-math1.48-dev libboost-mpi1.48-dev libboost-program-options1.48-dev libboost-python1.48-dev libboost-random1.48-dev libboost-regex1.48-dev libboost-serialization1.48-dev libboost-signals1.48-dev libboost-system1.48-dev libboost-test1.48-dev libboost-thread1.48-dev libboost-timer1.48-dev libboost-wave1.48-dev xsltproc doxygen default-jdk

and also
apt-get install libz-dev 

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #34 on: January 08, 2014, 12:21:37 pm »
Keep watching on that, seems CPU mining will be banished from PTS now...

Not yet.  My miner isn't that fast yet.  I can probably speed it up, but the CPU miners can be improved also.  It'll be a very fun race for a while.  The GPUs will win in the long run, though.  But, for example, I have a Haswell desktop (i7-4770) with a GTX 560Ti that mines CPU at the same rate as GPU.  It's just that now it can do both at the same time. :)  And the GPU draws about 15W while doing the mining instead of the 80W that the CPU draws.

  -Dave

Offline EvilTwin

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #33 on: January 08, 2014, 12:19:36 pm »
Yep, linux, I got the the missing package, now this:
make -f makefile.unix
g++ -c -O2  -pthread -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/cudapts/cudapts/src -I/root/cudapts/cudapts/src/obj -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o obj/main_poolminer.o main_poolminer.cpp
g++ -Wl,-z,relro -Wl,-z,now  -o cudapts  obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512.o obj/sph_sha2.o obj/sph_sha2big.o obj/gpuhash.o obj/main_poolminer.o -L/usr/local/cuda-5.5/lib64 -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l boost_chrono -Wl,-Bdynamic -l z -l dl -l cudart -l pthread
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lboost_chrono
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [cudapts] Error 1

Offline ryen123

  • Full Member
  • ***
  • Posts: 62
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #32 on: January 08, 2014, 12:19:13 pm »
Just for reference on mining speeds. My GTX 570 is running at 760c/m and my GTX 560 Ti running at 530 c/m.
Latest by GawMiners | DigitalOcean Sign-Up Receive $10 Credit
Singapore P2Pool: DarkCoin

Offline 029xue

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #31 on: January 08, 2014, 12:11:09 pm »
Keep watching on that, seems CPU mining will be banished from PTS now...

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #30 on: January 08, 2014, 12:00:14 pm »
make -f makefile.unix
In file included from main_poolminer.cpp:15:
main_poolminer.hpp:6:28: error: boost/thread.hpp: No such file or directory

Depending on your flavor of linux (is it linux?):

apt-get install libboost-all-dev
or
yum install boost-devel


Offline EvilTwin

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #29 on: January 08, 2014, 11:55:06 am »
make -f makefile.unix
g++ -c -O2  -fpermissive -o obj/cpuid.o cpuid.c
yasm -f elf64 -o obj/sha512_avx.o intel/sha512_avx.asm
yasm -f elf64 -o obj/sha512_sse4.o intel/sha512_sse4.asm
g++ -c -O2  -fpermissive -o obj/sha512.o sha512.c
g++ -c -O1  -fpermissive -o obj/sph_sha2.o sph_sha2.c
g++ -c -O1  -fpermissive -o obj/sph_sha2big.o sph_sha2big.c
nvcc -O3 -c -arch=sm_30 -o obj/gpuhash.o gpuhash.cu
g++ -c -O2  -pthread -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/cudapts/cudapts/src -I/root/cudapts/cudapts/src/obj -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o obj/main_poolminer.o main_poolminer.cpp
In file included from main_poolminer.cpp:15:
main_poolminer.hpp:6:28: error: boost/thread.hpp: No such file or directory
main_poolminer.hpp:7:26: error: boost/asio.hpp: No such file or directory
main_poolminer.hpp:8:56: error: boost/date_time/posix_time/posix_time_io.hpp: No such file or directory
In file included from main_poolminer.cpp:15:
main_poolminer.hpp: In function ‘void print256(const char*, uint32_t*)’:
main_poolminer.hpp:54: error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined
main_poolminer.hpp:56: error: ‘setw’ is not a member of ‘std’
main_poolminer.hpp:56: error: ‘setfill’ is not a member of ‘std’
main_poolminer.cpp: At global scope:
main_poolminer.cpp:40: error: ‘boost’ has not been declared
main_poolminer.cpp:40: error: expected initializer before ‘*’ token
main_poolminer.cpp:41: error: ‘boost’ has not been declared
main_poolminer.cpp:41: error: expected initializer before ‘t_start’
main_poolminer.cpp:126: error: ‘boost’ has not been declared
main_poolminer.cpp:126: error: ISO C++ forbids declaration of ‘shared_mutex’ with no type
main_poolminer.cpp:126: error: expected ‘;’ before ‘_mutex_getwork’
main_poolminer.cpp: In member function ‘virtual blockHeader_t* CBlockProviderGW::getBlock(unsigned int, unsigned int, unsigned int)’:
main_poolminer.cpp:69: error: ‘boost’ has not been declared
main_poolminer.cpp:69: error: ‘boost’ has not been declared
main_poolminer.cpp:69: error: ‘_mutex_getwork’ was not declared in this scope
main_poolminer.cpp:69: error: ‘lock’ was not declared in this scope
main_poolminer.cpp: In member function ‘virtual void CBlockProviderGW::setBlockTo(blockHeader_t*)’:
main_poolminer.cpp:89: error: ‘boost’ has not been declared
main_poolminer.cpp:89: error: ‘boost’ has not been declared
main_poolminer.cpp:89: error: ‘_mutex_getwork’ was not declared in this scope
main_poolminer.cpp:89: error: ‘lock’ was not declared in this scope
main_poolminer.cpp: In member function ‘virtual void CBlockProviderGW::submitBlock(blockHeader_t*, unsigned int)’:
main_poolminer.cpp:111: error: ‘socket_to_server’ was not declared in this scope
main_poolminer.cpp:115: error: ‘boost’ has not been declared
main_poolminer.cpp:115: error: expected `;' before ‘submit_error’
main_poolminer.cpp:116: error: ‘boost’ has not been declared
main_poolminer.cpp:116: error: ‘boost’ has not been declared
main_poolminer.cpp:116: error: ‘boost’ has not been declared
main_poolminer.cpp:116: error: ‘submit_error’ was not declared in this scope
main_poolminer.cpp:119: error: ‘submit_error’ was not declared in this scope
main_poolminer.cpp: At global scope:
main_poolminer.cpp:137: error: ‘boost’ has not been declared
main_poolminer.cpp:137: error: ISO C++ forbids declaration of ‘shared_mutex’ with no type
main_poolminer.cpp:137: error: ‘shared_mutex’ declared as a ‘virtual’ field
main_poolminer.cpp:137: error: expected ‘;’ before ‘&’ token
main_poolminer.cpp:229: error: ‘boost’ has not been declared
main_poolminer.cpp:229: error: ISO C++ forbids declaration of ‘shared_lock’ with no type
main_poolminer.cpp:229: error: expected ‘;’ before ‘<’ token
main_poolminer.cpp:235: error: ‘boost’ has not been declared
main_poolminer.cpp:235: error: ISO C++ forbids declaration of ‘thread’ with no type
main_poolminer.cpp:235: error: expected ‘;’ before ‘_thread’
main_poolminer.cpp: In constructor ‘CWorkerThread::CWorkerThread(CMasterThreadStub*, unsigned int, CBlockProviderGW*)’:
main_poolminer.cpp:144: error: class ‘CWorkerThread’ does not have any field named ‘_working_lock’
main_poolminer.cpp:144: error: class ‘CWorkerThread’ does not have any field named ‘_thread’
main_poolminer.cpp: In member function ‘void CWorkerThread::mineloop()’:
main_poolminer.cpp:165: error: ‘boost’ has not been declared
main_poolminer.cpp:165: error: ‘boost’ has not been declared
main_poolminer.cpp: In member function ‘void CWorkerThread::run()’:
main_poolminer.cpp:215: error: ‘boost’ has not been declared
main_poolminer.cpp:215: error: ‘boost’ has not been declared
main_poolminer.cpp: In member function ‘void CWorkerThread::work()’:
main_poolminer.cpp:224: error: ‘_working_lock’ was not declared in this scope
main_poolminer.cpp:224: error: expected type-specifier before ‘boost’
main_poolminer.cpp:224: error: expected `;' before ‘boost’
main_poolminer.cpp: At global scope:
main_poolminer.cpp:416: error: ‘boost’ has not been declared
main_poolminer.cpp:416: error: ISO C++ forbids declaration of ‘shared_mutex’ with no type
main_poolminer.cpp:416: error: expected ‘;’ before ‘&’ token
main_poolminer.cpp:420: error: expected `;' before ‘private’
main_poolminer.cpp:428: error: ‘boost’ has not been declared
main_poolminer.cpp:428: error: ISO C++ forbids declaration of ‘shared_mutex’ with no type
main_poolminer.cpp:428: error: expected ‘;’ before ‘_mutex_master’
main_poolminer.cpp:429: error: ‘boost’ has not been declared
main_poolminer.cpp:429: error: ISO C++ forbids declaration of ‘shared_mutex’ with no type
main_poolminer.cpp:429: error: expected ‘;’ before ‘_mutex_working’
main_poolminer.cpp: In member function ‘void CMasterThread::run()’:
main_poolminer.cpp:246: error: ‘boost’ has not been declared
main_poolminer.cpp:246: error: ‘boost’ has not been declared
main_poolminer.cpp:246: error: ‘_mutex_master’ was not declared in this scope
main_poolminer.cpp:246: error: ‘lock’ was not declared in this scope
main_poolminer.cpp:255: error: ‘boost’ has not been declared
main_poolminer.cpp:255: error: expected `;' before ‘io_service’
main_poolminer.cpp:256: error: ‘boost’ has not been declared
main_poolminer.cpp:256: error: expected `;' before ‘resolver’
main_poolminer.cpp:257: error: ‘boost’ has not been declared
main_poolminer.cpp:257: error: expected `;' before ‘query’
main_poolminer.cpp:259: error: ‘boost’ has not been declared
main_poolminer.cpp:259: error: expected `;' before ‘endpoint’
main_poolminer.cpp:260: error: ‘boost’ has not been declared
main_poolminer.cpp:260: error: expected `;' before ‘end’
main_poolminer.cpp:261: error: ‘boost’ has not been declared
main_poolminer.cpp:261: error: expected `;' before ‘nd_option’
main_poolminer.cpp:262: error: ‘boost’ has not been declared
main_poolminer.cpp:262: error: expected `;' before ‘ka_option’
main_poolminer.cpp:265: error: ‘endpoint’ was not declared in this scope
main_poolminer.cpp:265: error: ‘resolver’ was not declared in this scope
main_poolminer.cpp:265: error: ‘query’ was not declared in this scope
main_poolminer.cpp:266: error: ‘boost’ has not been declared
main_poolminer.cpp:266: error: ‘boost’ has not been declared
main_poolminer.cpp:266: error: ‘socket’ was not declared in this scope
main_poolminer.cpp:267: error: ‘boost’ has not been declared
main_poolminer.cpp:267: error: expected `;' before ‘error_socket’
main_poolminer.cpp:268: error: ‘error_socket’ was not declared in this scope
main_poolminer.cpp:268: error: ‘end’ was not declared in this scope
main_poolminer.cpp:271: error: expected type-specifier before ‘boost’
main_poolminer.cpp:271: error: expected `)' before ‘boost’
main_poolminer.cpp:272: error: ‘boost’ has not been declared
main_poolminer.cpp:272: error: expected `;' before ‘tcp_ep’
main_poolminer.cpp:273: error: ‘tcp_ep’ was not declared in this scope
main_poolminer.cpp:276: error: ‘nd_option’ was not declared in this scope
main_poolminer.cpp:277: error: ‘ka_option’ was not declared in this scope
main_poolminer.cpp:279: error: ‘error_socket’ was not declared in this scope
main_poolminer.cpp:281: error: ‘boost’ has not been declared
main_poolminer.cpp:281: error: ‘boost’ has not been declared
main_poolminer.cpp:284: error: ‘t_start’ was not declared in this scope
main_poolminer.cpp:284: error: ‘boost’ has not been declared
main_poolminer.cpp:305: error: ‘boost’ has not been declared
main_poolminer.cpp:305: error: expected `;' before ‘error’
main_poolminer.cpp:306: error: ‘boost’ has not been declared
main_poolminer.cpp:306: error: ‘error’ was not declared in this scope
main_poolminer.cpp:312: error: ‘socket_to_server’ was not declared in this scope
main_poolminer.cpp:320: error: ‘boost’ has not been declared
main_poolminer.cpp:320: error: expected `;' before ‘error’
main_poolminer.cpp:321: error: ‘boost’ has not been declared
main_poolminer.cpp:321: error: ‘boost’ has not been declared
main_poolminer.cpp:321: error: ‘boost’ has not been declared
main_poolminer.cpp:321: error: ‘error’ was not declared in this scope
main_poolminer.cpp:322: error: ‘boost’ has not been declared
main_poolminer.cpp:337: error: ‘boost’ has not been declared
main_poolminer.cpp:337: error: expected `;' before ‘error’
main_poolminer.cpp:338: error: ‘boost’ has not been declared
main_poolminer.cpp:338: error: ‘boost’ has not been declared
main_poolminer.cpp:338: error: ‘boost’ has not been declared
main_poolminer.cpp:338: error: ‘error’ was not declared in this scope
main_poolminer.cpp:339: error: ‘boost’ has not been declared
main_poolminer.cpp:359: error: ‘boost’ has not been declared
main_poolminer.cpp:359: error: expected `;' before ‘error’
main_poolminer.cpp:360: error: ‘boost’ has not been declared
main_poolminer.cpp:360: error: ‘boost’ has not been declared
main_poolminer.cpp:360: error: ‘boost’ has not been declared
main_poolminer.cpp:360: error: ‘error’ was not declared in this scope
main_poolminer.cpp:361: error: ‘boost’ has not been declared
main_poolminer.cpp:406: error: ‘boost’ has not been declared
main_poolminer.cpp:406: error: ‘boost’ has not been declared
main_poolminer.cpp: In member function ‘virtual void CMasterThread::wait_for_master()’:
main_poolminer.cpp:413: error: ‘boost’ has not been declared
main_poolminer.cpp:413: error: ‘boost’ has not been declared
main_poolminer.cpp:413: error: ‘_mutex_master’ was not declared in this scope
main_poolminer.cpp:413: error: ‘lock’ was not declared in this scope
main_poolminer.cpp: In member function ‘void CMasterThread::wait_for_workers()’:
main_poolminer.cpp:423: error: ‘boost’ has not been declared
main_poolminer.cpp:423: error: ‘boost’ has not been declared
main_poolminer.cpp:423: error: ‘_mutex_working’ was not declared in this scope
main_poolminer.cpp:423: error: ‘lock’ was not declared in this scope
main_poolminer.cpp: In member function ‘void CMasterThread::stats_running()’:
main_poolminer.cpp:435: error: ‘setprecision’ is not a member of ‘std’
main_poolminer.cpp:436: error: ‘boost’ has not been declared
main_poolminer.cpp:436: error: expected `;' before ‘t_end’
main_poolminer.cpp:447: error: ‘t_end’ was not declared in this scope
main_poolminer.cpp:448: error: ‘t_start’ was not declared in this scope
main_poolminer.cpp: In function ‘void exit_handler()’:
main_poolminer.cpp:470: error: ‘socket_to_server’ was not declared in this scope
main_poolminer.cpp: In function ‘int main(int, char**)’:
main_poolminer.cpp:598: error: ‘t_start’ was not declared in this scope
main_poolminer.cpp:598: error: ‘boost’ has not been declared
main_poolminer.cpp:612: error: ‘socket_to_server’ was not declared in this scope
main_poolminer.cpp:636: error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined
main_poolminer.cpp:637: error: ‘setw’ is not a member of ‘std’
main_poolminer.cpp:637: error: ‘setfill’ is not a member of ‘std’
make: *** [obj/main_poolminer.o] Error 1

Any advice?