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

GPU issue #2

Closed
hamnaz opened this issue Apr 22, 2020 · 20 comments
Closed

GPU issue #2

hamnaz opened this issue Apr 22, 2020 · 20 comments

Comments

@hamnaz
Copy link

hamnaz commented Apr 22, 2020

simply gpu heat shown from 42c to 65c, gpu ram 0 used, gpu core 0 used
speed seems app useing cpu cores and finsih

./kangaroo in.txt
Kangaroo v1.0
Start:0
Stop :FFFFFFFFFFFFFF
Keys :1
Number of CPU thread: 4
Range width: 2^56
Number of random walk: 2^12.00 (Max DP=14)
DP size: 14 [0xfffc000000000000]
SolveKeyCPU Thread 2: 1024 kangaroos
SolveKeyCPU Thread 1: 1024 kangaroos
SolveKeyCPU Thread 0: 1024 kangaroos
SolveKeyCPU Thread 3: 1024 kangaroos
[6.18 MKey/s][GPU 0.00 MKey/s][Count 2^29.26][Dead 4][01:59][7.3MB]
Key# 0 Pub: 0x02E9F43F810784FF1E91D8BC7C4FF06BFEE935DA71D7350734C3472FE305FEF82A
Priv: 0x378ABDEC51BC5D

@JeanLucPons
Copy link
Owner

Wait it is in dev
You need to add -gpu to enable

@virus-cyber
Copy link

Kangaroo.exe -t 0 -g 28,256 -gpu -gpuId 0 in.txt

@hamnaz
Copy link
Author

hamnaz commented Apr 22, 2020

you mean compile with make -gpu ?

@JeanLucPons
Copy link
Owner

JeanLucPons commented Apr 22, 2020

no like virus said
for compile as usual in my other projects:
make ccap=yourccap gpu=1 all

@hamnaz
Copy link
Author

hamnaz commented Apr 22, 2020

i will sugguest you, always mark 2 section in readme

  1. compile
    method of compile commands
  2. run
    methode of run commands

it will help new and old users to always read readme and follow
thankx

@JeanLucPons
Copy link
Owner

Very fisrt result on my GTX 1050 Ti, 64bit key solved in 2min !

C:\C++\Kangaroo\VC_CUDA10\x64\Release>Kangaroo.exe -t 0 -gpu ..\..\in.txt
Kangaroo v1.0
Start:49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5E0000000000000000
Stop :49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5EFFFFFFFFFFFFFFFF
Keys :16
Number of CPU thread: 0
Range width: 2^64
Number of random walk: 2^18.58 (Max DP=11)
DP size: 11 [0xFFE0000000000000]
GPU: GPU #0 GeForce GTX 1050 Ti (6x128 cores) Grid(12x256) (45.0 MB used)
SolveKeyGPU Thread GPU#0: creating kangaroos...
SolveKeyGPU Thread GPU#0: 2^18.58 kangaroos
[115.23 MKey/s][GPU 115.23 MKey/s][Count 2^33.52][Dead 5][02:02][463.9MB]
Key# 0 Pub:  0x0259A3BFDAD718C9D3FAC7C187F1139F0815AC5D923910D516E186AFDA28B221DC
       Priv: 0x49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5EBB3EF3883C1866D4

@JeanLucPons
Copy link
Owner

Yes I update the README asap :)

@hamnaz
Copy link
Author

hamnaz commented Apr 22, 2020

in my first run, gpu and cpu all uses at same time

./kangaroo -gpu in.txt
Kangaroo v1.0
Start:8000000000000000000000001
Stop :FFFFFFFFFFFFFFFFFFFFFFFFE
Keys :2048
Number of CPU thread: 4
Range width: 2^99
Number of random walk: 2^17.43 (Max DP=30)
DP size: 30 [0xfffffffc00000000]
SolveKeyCPU Thread 2: 1024 kangaroos
SolveKeyCPU Thread 0: 1024 kangaroos
SolveKeyCPU Thread 3: 1024 kangaroos
GPU: GPU #0 GeForce GTX 460 (7x48 cores) Grid(14x96) (24.8 MB used)
SolveKeyGPU Thread GPU#0: creating kangaroos...
SolveKeyCPU Thread 1: 1024 kangaroos
SolveKeyGPU Thread GPU#0: 2^17.39 kangaroos
[38.03 MKey/s][GPU 25.72 MKey/s][Count 2^32.97][Dead 0][04:21][1.0MB]

@hamnaz
Copy link
Author

hamnaz commented Apr 22, 2020

cpu ver
only cpu speed is 11.34 mkeys/s
gpu ver
[38.03 MKey/s][GPU 25.72 MKey/s][Count 2^32.97][Dead 0][04:21][1.0MB]

mean 25.72 mkeys/s at gpu

@virus-cyber
Copy link

Kangaroo v1.0
Start:49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5E0000000000000000
Stop :49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5EFFFFFFFFFFFFFFFF
Keys :1
Number of CPU thread: 0
Range width: 2^64
Number of random walk: 2^19.81 (Max DP=10)
DP size: 10 [0xFFC0000000000000]
GPU: GPU #0 GeForce GTX 1080 Ti (28x128 cores) Grid(28x256) (93.0 MB used)
SolveKeyGPU Thread GPU#0: creating kangaroos...
SolveKeyGPU Thread GPU#0: 2^19.81 kangaroos
[254.34 MKey/s][GPU 254.34 MKey/s][Count 2^32.85][Dead 1][33s][582.8MB]
Key# 0 Pub: 0x0259A3BFDAD718C9D3FAC7C187F1139F0815AC5D923910D516E186AFDA28B221DC
Priv: 0x49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5EBB3EF3883C1866D4

Done: Total time 45s

@JeanLucPons
Copy link
Owner

That is not so bad for a very first release :)

@hamnaz
Copy link
Author

hamnaz commented Apr 22, 2020

by setting grid 64,128 now i am getting 50 Mkeys/s

@hamnaz
Copy link
Author

hamnaz commented Apr 22, 2020

i think next task is multiple pubkeys check :)

@JeanLucPons
Copy link
Owner

Yes I will optimize thing for multiple key.
There is a great optimization that can be done by resuing old points.

@djarumlights
Copy link

JLP at it again with the excellence!

@kpot87
Copy link

kpot87 commented Apr 22, 2020

Yes I will optimize thing for multiple key.
There is a great optimization that can be done by resuing old points.

Hi the question is how you choose range where to search keys? why you choose in the readme this Start:49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5E0000000000000000
Stop :49DCCFD96DC5DF56487436F5A1B18C4F5D34F65DDB48CB5EFFFFFFFFFFFFFFFF
for you pubkeys? how you choose range? Thanks

And what does mean grid(-g) in parameter if i choose 368x368 it is points(million or what?)
I have rtx2080 as I know from the program I have 46x64 core I must multiply to 8 and received grid 386x512, right?

And why speed at start and after few hours reduce fo me from 1000m to now 300m ? It’s normal?
But without param -g the speed is stable
Thanks

@JeanLucPons
Copy link
Owner

@kpot87
I will write few words to explain this on the README today.

@kpot87
Copy link

kpot87 commented Apr 26, 2020

SolveKeyGPU Thread GPU#0: 2^21.69 kangaroos in 12984.0ms
[858.15 MKey/s][GPU 858.15 MKey/s][Count 2^46.52][Dead 0][1.6d][464.9MB] B]

Hi! what does it mean "B" at the end?

@JeanLucPons
Copy link
Owner

It is the last B] of MB], line is not cleared, a printing bug ;)

@Shadow145-cpu
Copy link

Hi, Low speed with GTX1060 6GB
It is normal speed or something wrong?

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

6 participants