BitCrack icon indicating copy to clipboard operation
BitCrack copied to clipboard

Ubuntu

Open denis-vk opened this issue 7 years ago • 18 comments

How compille and run on Ubuntu 16.04. Help me please

denis-vk avatar Sep 09 '18 12:09 denis-vk

Hi,

Make sure you have the CUDA Toolkit 9.2 installed https://developer.nvidia.com/cuda-downloads

To compile on Ubuntu, run make.

The binaries will be in the bin directory

Let me know if you need help.

Thanks

brichard19 avatar Sep 11 '18 01:09 brichard19

In Arch linux it doesn't compile as well.

cuda 9.2.148-2 is installed gcc7 7.3.1+20180814-1 by dependancy for cuda

after trying to make I get several errors about ambiguity like

KeyFinder.cpp: In member function ‘void KeyFinder::generateStartingPoints()’: KeyFinder.cpp:244:37: error: call of overloaded ‘add(uint64_t&)’ is ambiguous _exponents.push_back(privKey.add(i)); ^ In file included from /tmp/BitCrack/cudaDeviceContext/DeviceContext.h:6:0, from /tmp/BitCrack/cudaDeviceContext/CudaDeviceContext.h:4, from KeyFinder.cpp:4:

ogronome avatar Sep 13 '18 10:09 ogronome

Linux build is fixed now.

Thanks

brichard19 avatar Sep 13 '18 22:09 brichard19

[2018-09-16.13:55:00] [Info] Initializing Tesla V100-SXM2-16GB [2018-09-16.13:55:01] [Info] Generating 10,485,760 starting points (400.0MB) [2018-09-16.13:55:01] [Info] Error: invalid device symbol Exiting.

I compiled the file, but when I run the error.

denis-vk avatar Sep 16 '18 13:09 denis-vk

Hi,

In Makefile, try changing COMPUTE_CAP to 70.

Let me know if that works.

Thanks

brichard19 avatar Sep 16 '18 22:09 brichard19

Thank's! Now it compiles at least in Arch. And after correcting COMPUTE_CAP even works :)

ogronome avatar Sep 17 '18 02:09 ogronome

[2018-09-17.14:19:33] [Info] Compression: compressed
[2018-09-17.14:19:33] [Info] Starting at: 2876437231378229588557147714825991654328390017445995009117939066
[2018-09-17.14:19:33] [Info] Loading addresses from 'btc'
'2018-09-17.14:19:33] [Error] Invalid address '16ftSEQ4ctQFDtVZiUBusQUjRrGhM3JYwe
[2018-09-17.14:19:33] [Info] Error:  Exiting.

now does not start from the address in the file With the same file on Windows, everything is fine

denis-vk avatar Sep 17 '18 14:09 denis-vk

If there is any space at the beginning or end of the address in the text file, it will render unrecoqnizable like it did for you. Theres a typo error in your file, check it.

natedawg469 avatar Sep 17 '18 14:09 natedawg469

No mistakes! On Windows it works!

denis-vk avatar Sep 17 '18 14:09 denis-vk

Maybe the new line char is different. Try to make new list in Linux.

nightwalker89 avatar Sep 17 '18 15:09 nightwalker89

Hi,

This is due to Linux leaving the carriage return in the buffer when reading lines (I'm guessing you made the file in Windows?). I have fixed the code to remove it when reading addresses.

Try pulling the latest code.

Thanks

brichard19 avatar Sep 18 '18 00:09 brichard19

Hello, yes, it's all right. I now have a new question. Is it possible to change the code in this way, the -s flag was automatically selected at startup? not with 1, as it is now

I think that it is necessary for someone and in windows

denis-vk avatar Sep 18 '18 06:09 denis-vk

#denis-vk #43 created

brichard19 avatar Sep 21 '18 00:09 brichard19

image I've used COMPUTE_CAP 30 and 70 as suggested above. Still getting invalid device symbol error.

Suggestions?

Edit: Nevermind. I looked up the CUDA wiki and changed COMPUTE_CAP to 61 and it's working like a charm. :)

JakinH avatar Sep 21 '18 09:09 JakinH

Glad you were able to figure it out!

brichard19 avatar Sep 21 '18 23:09 brichard19

Can someone help with a build on Ubuntu 16.04 LTS using CUDA 9.2?

When I type "make" I get a lib directory, but no bin directory, and no binaries. Is anyone else having this same problem?

jamesyoungdigital avatar Nov 18 '18 04:11 jamesyoungdigital

Try make BUILD_OPENCL=1 or make BUILD_CUDA=1

I'll fix the make script to be more clear.

brichard19 avatar Nov 18 '18 10:11 brichard19

I am trying to compile on ubuntu 22.04 . there is no file to run after make or sudo make

mirameshs avatar May 06 '23 14:05 mirameshs