Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu #35

Open
denis-vk opened this issue Sep 9, 2018 · 18 comments
Open

Ubuntu #35

denis-vk opened this issue Sep 9, 2018 · 18 comments

Comments

@denis-vk
Copy link

denis-vk commented Sep 9, 2018

How compille and run on Ubuntu 16.04. Help me please

@brichard19
Copy link
Owner

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

@ogronome
Copy link

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:

@brichard19
Copy link
Owner

Linux build is fixed now.

Thanks

@denis-vk
Copy link
Author

denis-vk commented Sep 16, 2018

[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.

@brichard19
Copy link
Owner

Hi,

In Makefile, try changing COMPUTE_CAP to 70.

Let me know if that works.

Thanks

@ogronome
Copy link

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

@denis-vk
Copy link
Author

denis-vk commented Sep 17, 2018

[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

@natedawg469
Copy link

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.

@denis-vk
Copy link
Author

No mistakes!
On Windows it works!

@nightwalker89
Copy link

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

@brichard19
Copy link
Owner

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

@denis-vk
Copy link
Author

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

@brichard19
Copy link
Owner

#denis-vk #43 created

@JakinH
Copy link

JakinH commented Sep 21, 2018

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. :)

@brichard19
Copy link
Owner

Glad you were able to figure it out!

@jamesyoungdigital
Copy link

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?

@brichard19
Copy link
Owner

brichard19 commented Nov 18, 2018

Try make BUILD_OPENCL=1 or make BUILD_CUDA=1

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

@mirameshs
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants