Bitcoin Forum
May 01, 2024, 02:15:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 [10]  All
  Print  
Author Topic: BSGS solver for cuda  (Read 3394 times)
jacky19790729
Jr. Member
*
Offline Offline

Activity: 57
Merit: 8


View Profile
November 12, 2021, 12:49:15 PM
 #181

-snip-
"-t 256 -b 164 -p 512 -w 31 -htsz 28" should be  0 keys lost
sorry,  I give error -pke  end range for #75 public key
As i correct understand lost only in configuration with -w32 ?
With -w31 all keys found, correct?

yes....-w31  find all keys......  -w32 lost some keys
can you give me a file for testint ~~
public key list  ..... 2^1 ~ 2^75  range
I will try find all private key from your file  ....
1714572927
Hero Member
*
Offline Offline

Posts: 1714572927

View Profile Personal Message (Offline)

Ignore
1714572927
Reply with quote  #2

1714572927
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714572927
Hero Member
*
Offline Offline

Posts: 1714572927

View Profile Personal Message (Offline)

Ignore
1714572927
Reply with quote  #2

1714572927
Report to moderator
1714572927
Hero Member
*
Offline Offline

Posts: 1714572927

View Profile Personal Message (Offline)

Ignore
1714572927
Reply with quote  #2

1714572927
Report to moderator
1714572927
Hero Member
*
Offline Offline

Posts: 1714572927

View Profile Personal Message (Offline)

Ignore
1714572927
Reply with quote  #2

1714572927
Report to moderator
Etar (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 312


View Profile
November 12, 2021, 01:10:33 PM
 #182

-snip-
can you give me a file for testint ~~
public key list  ..... 2^1 ~ 2^75  range
I will try find all private key from your file  ....


20keys in range 2^75  -pk 0x1 -pke 0x7ffffffffffffffffff
try with -w 31, because we already know that -w 32 have problem.
Code:
0473f38e8621417cef51fe848ba26f00a5e78ccc00852ab1c2ca56505e80a9b37810ca73afaf222a1f072ec9a7f48929c029c762f5fca422ec3e6bf1cc4589b946
04fbba0ce7fd86fb853b30db836f607ca4e221f6c803a9eb838d5a9520b2210bfd0625b1eef25758ec0072a9aa68aa4035d8aa4f276075b270cf41ec968ed9f86e
04d973d466855479d4116059c642734de4d2346a77dc31927e2862c1f38664d263bcb2b40600d6799ed09a9813d733ecedb94fb0a2eae65ebbb02b8dec60ef77f6
049723a4af59b41e095ac09ae5a3cdaf2f9b1c54ae7696f55681fc467309d0917353ea97526c7a6e560acea6a0907849ef639309b578b792c3312ee9a77b6c1817
040b4e8df661659fca212b30a4691033f362b03df397d46bab628af968ca90e2eec0663762d6ff90edcb8b4d91856488c967430a1bd04e8ecd0ae1a95271e8cc67
041df3f4dcf02db59898682b479b93e796ac59419b3c65b96a9b7ee44b08ad50ebcbc0d42eba64674d6f4ff4bf1850e7491eb91d1fc3862a462d0c0f4c1389604c
043a86e936da211ed72ab668b5ef2756e5a7fab6b3d7e9b6ccd059badaf6eb2a541df8e7dfc0aed56244453b982b6f9df5b8e003d7005400e9f710d9474e46efcf
04a096fd3aa76f05019dcb5988a0d1cef995272208f4589a36a9cfc941f745cb8e43ad34d57479eb363285252bfafccdd8f4dd100a94d569091b4f1b44a4d31903
04e39efdb3be5b61af4705cbb4ec06d5d29e6f56fb96d5888fcfcc13a734041009c1642c28ffd9ce68a62cebef80bad28be58fd9c1ca740371cb4ab5cb6e554c80
04dbb80d5ab39f6d9b09194fe8005c211333a266d470ab41d7411c0c9efb7aaa8612aca6c73296f55823d789cf7e8e7729a14ccd81c89c0096a26b28c10053ad35
043f10cf4fa0f7e019ea38d50f74c627902c50880d00b67fb9511fc5f324c37d6efd655f99308913ac4e8d8d8f2ffb46c549738931abf22092245db92655bd8404
04e1ec202deea26e3816f158d86943398e0cc97e285dcaf625a2a6f51ec68b7294eed00abedd1d3093a4e03c631c6390d35bc5b1406b0c3ed29e8f429f66f0169f
04eafa8c22fb132b31daba9d709efefcd22c7226fae8bcca2bc52cbeaf0f807df548dee5795ca99db7c4dc57f2494a96626d19c10d4f51b483f52e550eb3bca3fe
04a92c4ab0b4fdda1bffd64caf982f0811554abb7a4a90725fcd5b53a76a8e20b3918f6e63933516ecbd57ee981b086b726fd65974995624bf7ba251a1f2eeb751
047d5fca8e520358bdbc407d4c12261bb4e891b916e0e0b325a2376aea7b79dcdaead7fdd3237e10b68bc10774b8a966bb5138b8cbf03fad05b1717db3ac44fa7f
045dccbcb13a944789afa59b7b2735939b01b3f13a7eab24a5480eda98be87684629511cd67e1e64a1082dbc7444e7645a81a0ac3c01472a3dfdba949a9da9bb93
04d760337b9b5c06d1b54d5cd1156bace85beb7cbb80af7f786372cb912171dc8aaf48afd32129a052d5e75ce372d40c38fbc4334a48ed137083dca9f56b98a338
040f5f18bebe20c1d37dcb1a2f47ad3595b7d5b784dcdf55ffc8354b64a3337ba8a6434c284cd2560431ad7fac0978c81ccce36014ef3ff3daf6fe22432d4e9b32
0446a7291cef2c69deb429045dbc6938a8d8d005c8edccfe09b130467ee391a43bf1377def7f2553ab9abc4377310dcbb411dfc7d810b7bf4aa011cab919b713b2
04eecf02b33d095951eb7af031c49bda6c7dd1aad98342153a6f855986a5233610c4aa0d3a8e7e57b459db7597c71f2a3524fb798149a24c4a573f94463a6def01
jacky19790729
Jr. Member
*
Offline Offline

Activity: 57
Merit: 8


View Profile
November 12, 2021, 03:37:39 PM
Last edit: November 13, 2021, 12:18:58 PM by jacky19790729
 #183

20keys in range 2^75  -pk 0x1 -pke 0x7ffffffffffffffffff
try with -w 31, because we already know that -w 32 have problem.

 "-t 512 -b 164 -p 512 -w 31 -htsz 29"  
I try to  find 1~10 keys ,  I think this is the fastest and no any lost key

Code:
KEY[1]: 0x00000000000000000000000000000000000000000000024b831f525b5544432d
   Pub: 0273f38e8621417cef51fe848ba26f00a5e78ccc00852ab1c2ca56505e80a9b378
KEY[2]: 0x0000000000000000000000000000000000000000000007c14ea1f850a49c8188
   Pub: 02fbba0ce7fd86fb853b30db836f607ca4e221f6c803a9eb838d5a9520b2210bfd
KEY[3]: 0x0000000000000000000000000000000000000000000004bbfa418622913363a8
   Pub: 02d973d466855479d4116059c642734de4d2346a77dc31927e2862c1f38664d263
KEY[4]: 0x000000000000000000000000000000000000000000000702ecd16f5d26cd4929
   Pub: 039723a4af59b41e095ac09ae5a3cdaf2f9b1c54ae7696f55681fc467309d09173
KEY[5]: 0x00000000000000000000000000000000000000000000064fb7c2bef26c5c1d5f
   Pub: 030b4e8df661659fca212b30a4691033f362b03df397d46bab628af968ca90e2ee
KEY[6]: 0x0000000000000000000000000000000000000000000004877a165a0b08d74a74
   Pub: 021df3f4dcf02db59898682b479b93e796ac59419b3c65b96a9b7ee44b08ad50eb
KEY[7]: 0x00000000000000000000000000000000000000000000015cda7804408c3e0b21
   Pub: 033a86e936da211ed72ab668b5ef2756e5a7fab6b3d7e9b6ccd059badaf6eb2a54
KEY[8]: 0x0000000000000000000000000000000000000000000006efdfb7277b3d4b1b59
   Pub: 03a096fd3aa76f05019dcb5988a0d1cef995272208f4589a36a9cfc941f745cb8e
KEY[9]: 0x00000000000000000000000000000000000000000000036c2aa2334aa651a223
   Pub: 02e39efdb3be5b61af4705cbb4ec06d5d29e6f56fb96d5888fcfcc13a734041009
KEY[10]: 0x0000000000000000000000000000000000000000000000c07102149fc97fada1
    Pub: 03dbb80d5ab39f6d9b09194fe8005c211333a266d470ab41d7411c0c9efb7aaa86



D:\BTC\cuda_BSGS>bsgscudaHT_1_8_0.exe -d 0,1,2 -infile publickey.txt -pk 0x0000000000000000000000000000000000000000000000000000000000000001 -pke   0x0000000000000000000000000000000000000000000007ffffffffffffffffff -t 512 -b 164 -p 512 -w 31 -htsz 29
Used GPU devices #0,1,2
Will be used file: publickey.txt
Range begin: 0x0000000000000000000000000000000000000000000000000000000000000001
Range end: 0x0000000000000000000000000000000000000000000007ffffffffffffffffff
Number of GPU threads set to #512
Number of GPU blocks set to #164
Number of pparam set to #512
Items number set to 2^31
HT size number set to 2^29
APP VERSION: 1.8.0-alpha
**********************************************************************************
* This version [1.8.0-alpha] may content various bugs,                           *
* Don`t use this version for serious task.                                       *
* It is needed to test the possibility of using the -w parameter greater than 30 *
* if you accept this press ENTER to continue or close the program otherwise.     *
**********************************************************************************

Found 4 Cuda device.
Cuda device:NVIDIA GeForce RTX 3090 (20452.612/24575MB)
Device have: MP:82 Cores+10496
Try -t 512 -b 328 -p 930 -w 30 -htsz 28 [20442.750 MB] Gen RAM[28672 MB]
---------------
Cuda device:NVIDIA GeForce RTX 3090 (20452.612/24575MB)
Device have: MP:82 Cores+10496
Try -t 512 -b 328 -p 930 -w 30 -htsz 28 [20442.750 MB] Gen RAM[28672 MB]
---------------
Cuda device:NVIDIA GeForce RTX 3090 (20452.612/24575MB)
Device have: MP:82 Cores+10496
Try -t 512 -b 328 -p 930 -w 30 -htsz 28 [20442.750 MB] Gen RAM[28672 MB]
---------------
Cuda device:NVIDIA GeForce GT 1030 (1660.593/2047MB)
Device have: MP:3 Cores+192
Try -t 512 -b 12 -p 1586 -w 27 -htsz 25 [1660.125 MB] Gen RAM[3584 MB]
---------------
Current config hash[e80231b2bba0f4f89c36a597efce2061775fc7d1]
GiantSUBvalue:0000000000000000000000000000000000000000000000000000000100000000
GiantSUBpubkey: 02100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0
*******************************
Total GPU Memory Need: 16224.000Mb
*******************************
Both HT files exist
Load BIN file:79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798_2147483648_536870912_htGPU.BIN
[0] chunk:1073741824b
[1] chunk:1073741824b
[2] chunk:1073741824b
[3] chunk:1073741824b
[4] chunk:1073741824b
[5] chunk:1073741824b
[6] chunk:1073741824b
[7] chunk:1073741824b
[8] chunk:1073741824b
[9] chunk:1073741824b
[10] chunk:1073741824b
[11] chunk:1073741824b
Generate Giants Buffer: 42991616 items
Load BIN file:512_164_512_2147483648_g2.BIN
[0] chunk:1073741824b
[1] chunk:1073741824b
Last chunk:603979776b
[2] chunk:603979776b
Done in 00:00:01s
GPU count #3
GPU #0 launched
GPU #1 launched
GPU #2 launched
GPU #0 Free memory: 20450Mb
GPU #0 Total memory: 24575Mb
GPU #0 TotalBuff: 16224.002Mb
GPU #1 Free memory: 20450Mb
GPU #1 Total memory: 24575Mb
GPU #2 Free memory: 20450Mb
GPU #1 TotalBuff: 16224.002Mb
GPU #2 Total memory: 24575Mb
GPU #2 TotalBuff: 16224.002Mb
Load BIN file:79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798_2147483648_536870912_htCPU.BIN
[0] chunk:1073741824b
[1] chunk:1073741824b
[2] chunk:1073741824b
[3] chunk:1073741824b
[4] chunk:1073741824b
[5] chunk:1073741824b
[6] chunk:1073741824b
[7] chunk:1073741824b
[8] chunk:1073741824b
[9] chunk:1073741824b
[10] chunk:1073741824b
[11] chunk:1073741824b
[12] chunk:1073741824b
[13] chunk:1073741824b
[14] chunk:1073741824b
[15] chunk:1073741824b
[16] chunk:1073741824b
[17] chunk:1073741824b
[18] chunk:1073741824b
[19] chunk:1073741824b
Verify packed HTCPU items...ok
START RANGE= 0000000000000000000000000000000000000000000000000000000000000001
  END RANGE= 0000000000000000000000000000000000000000000007ffffffffffffffffff
WIDTH RANGE= 0000000000000000000000000000000000000000000007fffffffffffffffffe
SUBpoint= (79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798, b7c52588d95c3b9aa25b0403f1eef75702e84bb7597aabe663b82f6f04ef2777)
Save work every 180 seconds

FINDpubkey: 0273f38e8621417cef51fe848ba26f00a5e78ccc00852ab1c2ca56505e80a9b378
Cnt:2472b40000000000001 [3][ 2301 2201 2250 ] = 6753 MKeys/s x2^32=2^64.72 t:00:06:00
KEY[1]: 0x00000000000000000000000000000000000000000000024b831f525b5544432d
   Pub: 0273f38e8621417cef51fe848ba26f00a5e78ccc00852ab1c2ca56505e80a9b378
Working time 00:06:02s
GPU#2 job finished
GPU#1 job finished
GPU#0 job finished

FINDpubkey: 02fbba0ce7fd86fb853b30db836f607ca4e221f6c803a9eb838d5a9520b2210bfd
Cnt:7bfe540000000000001 [3][ 2278 2208 2209 ] = 6696 MKeys/s x2^32=2^64.71 t:00:26:26
KEY[2]: 0x0000000000000000000000000000000000000000000007c14ea1f850a49c8188
   Pub: 02fbba0ce7fd86fb853b30db836f607ca4e221f6c803a9eb838d5a9520b2210bfd
Working time 00:26:26s
GPU#0 job finished
GPU#1 job finished
GPU#2 job finished

FINDpubkey: 02d973d466855479d4116059c642734de4d2346a77dc31927e2862c1f38664d263
Cnt:4b79920000000000001 [3][ 2181 2321 2206 ] = 6709 MKeys/s x2^32=2^64.71 t:00:38:52
KEY[3]: 0x0000000000000000000000000000000000000000000004bbfa418622913363a8
   Pub: 02d973d466855479d4116059c642734de4d2346a77dc31927e2862c1f38664d263
Working time 00:38:54s
GPU#2 job finished
GPU#0 job finished
GPU#1 job finished

FINDpubkey: 039723a4af59b41e095ac09ae5a3cdaf2f9b1c54ae7696f55681fc467309d09173
Cnt:70287e0000000000001 [3][ 2104 2242 2160 ] = 6507 MKeys/s x2^32=2^64.67 t:00:57:21
KEY[4]: 0x000000000000000000000000000000000000000000000702ecd16f5d26cd4929
   Pub: 039723a4af59b41e095ac09ae5a3cdaf2f9b1c54ae7696f55681fc467309d09173
Working time 00:57:21s
GPU#0 job finished
GPU#2 job finished
GPU#1 job finished

FINDpubkey: 030b4e8df661659fca212b30a4691033f362b03df397d46bab628af968ca90e2ee
Cnt:64bac20000000000001 [3][ 2244 2248 2275 ] = 6768 MKeys/s x2^32=2^64.72 t:01:13:57
KEY[5]: 0x00000000000000000000000000000000000000000000064fb7c2bef26c5c1d5f
   Pub: 030b4e8df661659fca212b30a4691033f362b03df397d46bab628af968ca90e2ee
Working time 01:13:59s
GPU#2 job finished
GPU#1 job finished
GPU#0 job finished

FINDpubkey: 021df3f4dcf02db59898682b479b93e796ac59419b3c65b96a9b7ee44b08ad50eb
Cnt:4873b20000000000001 [3][ 2179 2240 2219 ] = 6639 MKeys/s x2^32=2^64.70 t:01:25:56
KEY[6]: 0x0000000000000000000000000000000000000000000004877a165a0b08d74a74
   Pub: 021df3f4dcf02db59898682b479b93e796ac59419b3c65b96a9b7ee44b08ad50eb
Working time 01:25:56s
GPU#2 job finished
GPU#1 job finished
GPU#0 job finished

FINDpubkey: 033a86e936da211ed72ab668b5ef2756e5a7fab6b3d7e9b6ccd059badaf6eb2a54
Cnt:1588420000000000001 [3][ 2249 2147 2178 ] = 6574 MKeys/s x2^32=2^64.68 t:01:29:29
KEY[7]: 0x00000000000000000000000000000000000000000000015cda7804408c3e0b21
   Pub: 033a86e936da211ed72ab668b5ef2756e5a7fab6b3d7e9b6ccd059badaf6eb2a54
Working time 01:29:31s
GPU#2 job finished
GPU#0 job finished
GPU#1 job finished

FINDpubkey: 03a096fd3aa76f05019dcb5988a0d1cef995272208f4589a36a9cfc941f745cb8e
Cnt:6ec2b40000000000001 [3][ 2251 2264 2300 ] = 6816 MKeys/s x2^32=2^64.73 t:01:47:46
KEY[8]: 0x0000000000000000000000000000000000000000000006efdfb7277b3d4b1b59
   Pub: 03a096fd3aa76f05019dcb5988a0d1cef995272208f4589a36a9cfc941f745cb8e
Working time 01:47:48s
GPU#1 job finished
GPU#2 job finished
GPU#0 job finished

FINDpubkey: 02e39efdb3be5b61af4705cbb4ec06d5d29e6f56fb96d5888fcfcc13a734041009
Cnt:36a4b00000000000001 [3][ 2221 2185 2064 ] = 6471 MKeys/s x2^32=2^64.66 t:01:56:48
KEY[9]: 0x00000000000000000000000000000000000000000000036c2aa2334aa651a223
   Pub: 02e39efdb3be5b61af4705cbb4ec06d5d29e6f56fb96d5888fcfcc13a734041009
Working time 01:56:49s
GPU#1 job finished
GPU#2 job finished
GPU#0 job finished

FINDpubkey: 03dbb80d5ab39f6d9b09194fe8005c211333a266d470ab41d7411c0c9efb7aaa86
Cnt:bd5320000000000001 [3][ 2260 2256 2326 ] = 6843 MKeys/s x2^32=2^64.74 t:01:58:46
KEY[10]: 0x0000000000000000000000000000000000000000000000c07102149fc97fada1
    Pub: 03dbb80d5ab39f6d9b09194fe8005c211333a266d470ab41d7411c0c9efb7aaa86
Working time 01:58:47s
GPU#0 job finished
GPU#2 job finished
GPU#1 job finished

FINDpubkey: 023f10cf4fa0f7e019ea38d50f74c627902c50880d00b67fb9511fc5f324c37d6e
Cnt:162a560000000000001 [3][ 2247 2071 2252 ] = 6571 MKeys/s x2^32=2^64.68 t:02:02:27

demoinvest1
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
November 13, 2021, 01:27:35 AM
 #184


you need purebasic v5.31 because need ascll mode enabled
in new version of PB removed ascll mode.

Thank you
Now I change to use PureBasic v5.30, problem , How I can find cuda.lib ?

POLINK: fatal error: File not found lib\cuda.lib
demoinvest1
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
November 13, 2021, 02:00:49 AM
 #185


Thank you
Now I change to use PureBasic v5.30, problem , How I can find cuda.lib ?

POLINK: fatal error: File not found lib\cuda.lib

Ok, I solve my problem already
Now, I got cuda.lib from NVIDIA CUDA 10 driver

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64
citb0in
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
November 15, 2022, 08:47:43 AM
Last edit: December 01, 2022, 12:03:24 PM by citb0in
 #186

Was there any progress made with BSGS solver for CUDA meanwhile? I just stumbled over this old post and tried to use it, however I was not successful. I downloaded purebasic from the suggested link at the bottom of Etayson's Github repository, however the free version that is available for download on www.purebasic.com is a demo version which is limited to a few thousand lines of code and thus the loaded purebasic file will not get executed. OP said that we need PureBasic v5.31 but I cannot find this full version 5.31 on the webpage. Can anyone point me to a working download link for 5.31 for Linux x64, please?

Is BSGS solver useless meanwhile and there are some better tools that you would suggest? I am only aware of Keyhunts' BSGS mode which is executed in CPU threads. A CUDA version would be nice to test and hopefully get a higher rate.

@Etar, are you even reading this anymore? Maybe under a different username? If so, please reply.

I am trying to compile your program <bsgscudaussualHTchangeble1_7_3.pb> with PureBasic v5.31 under Linux. Unfortunately I do not succeed. At the first try I got this error message:

Code:
$ pbcompiler ./bsgscudaussualHTchangeble1_7_3.pb
Quote
******************************************
PureBasic 5.31 (Linux - x64)
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
Error: Line 2 - File not found (~/BSGS-cuda/./Curve64.pb).

This one was easy to fix, I just had to replace the backslash into a forward slash in line 2 of your program. I guess you were using Windows where folders are separated by the character '\' instead of '/' in Linux.

Quote
IncludeFile "lib/Curve64.pb"

But then after another try I get the error indicating that no cuda.lib was found. I searched for this file but wasn't able to find, even not under my CUDA installation in /usr/local/cuda* there is absolutely no such file on a linux system. Where do we find this file? I was able to find a similar file and I thought I give a try

Code:
cp /usr/local/cuda-11.8/targets/x86_64-linux/lib/stubs/libcuda.so ~/BSGS-cuda/lib/

then I replaced line 42 by:
Quote
Import "lib/libcuda.so"

but the compiler still fails, see here:

Code:
$ pbcompiler ./bsgscudaussualHTchangeble1_7_3.pb

Quote
******************************************
PureBasic 5.31 (Linux - x64)
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
Including source: lib/Curve64.pb
10273 lines processed.
Creating the executable.
Error: Linker
/usr/bin/ld: purebasic.o: warning: relocation in read-only section `.text'
/usr/bin/ld: purebasic.o: relocation R_X86_64_PC32 against symbol `exit@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

If anyone else here is reading along and can help, I am of course also very grateful for helpful tips and recommendations. Any help appreciated. Thank you

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
raschwarz
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 11, 2024, 03:36:43 PM
 #187

Was there any progress made with BSGS solver for CUDA meanwhile? I just stumbled over this old post and tried to use it, however I was not successful. I downloaded purebasic from the suggested link at the bottom of Etayson's Github repository, however the free version that is available for download on www.purebasic.com is a demo version which is limited to a few thousand lines of code and thus the loaded purebasic file will not get executed. OP said that we need PureBasic v5.31 but I cannot find this full version 5.31 on the webpage. Can anyone point me to a working download link for 5.31 for Linux x64, please?

Is BSGS solver useless meanwhile and there are some better tools that you would suggest? I am only aware of Keyhunts' BSGS mode which is executed in CPU threads. A CUDA version would be nice to test and hopefully get a higher rate.

@Etar, are you even reading this anymore? Maybe under a different username? If so, please reply.

I am trying to compile your program <bsgscudaussualHTchangeble1_7_3.pb> with PureBasic v5.31 under Linux. Unfortunately I do not succeed. At the first try I got this error message:

Code:
$ pbcompiler ./bsgscudaussualHTchangeble1_7_3.pb
Quote
******************************************
PureBasic 5.31 (Linux - x64)
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
Error: Line 2 - File not found (~/BSGS-cuda/./Curve64.pb).

This one was easy to fix, I just had to replace the backslash into a forward slash in line 2 of your program. I guess you were using Windows where folders are separated by the character '\' instead of '/' in Linux.

Quote
IncludeFile "lib/Curve64.pb"

But then after another try I get the error indicating that no cuda.lib was found. I searched for this file but wasn't able to find, even not under my CUDA installation in /usr/local/cuda* there is absolutely no such file on a linux system. Where do we find this file? I was able to find a similar file and I thought I give a try

Code:
cp /usr/local/cuda-11.8/targets/x86_64-linux/lib/stubs/libcuda.so ~/BSGS-cuda/lib/

then I replaced line 42 by:
Quote
Import "lib/libcuda.so"

but the compiler still fails, see here:

Code:
$ pbcompiler ./bsgscudaussualHTchangeble1_7_3.pb

Quote
******************************************
PureBasic 5.31 (Linux - x64)
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
Including source: lib/Curve64.pb
10273 lines processed.
Creating the executable.
Error: Linker
/usr/bin/ld: purebasic.o: warning: relocation in read-only section `.text'
/usr/bin/ld: purebasic.o: relocation R_X86_64_PC32 against symbol `exit@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

If anyone else here is reading along and can help, I am of course also very grateful for helpful tips and recommendations. Any help appreciated. Thank you



I tried to switch off PIE with code below at start and you can compile and build executable for Linux, but running that code ended with "Illegal instruction (core dumped)".

Code:
Import "-no-pie"
endimport

Actually I am trying to debug it, however I am not very far with it. No success yet.
citb0in
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
January 12, 2024, 07:47:04 AM
 #188

Thanks for your feedback. Please let us know your findings and hopefully you will have success. I tried a lot but finally gave up without a satisfying result. However I am still interested in testing this tool.

Wish you best of luck
citb0in

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
greenAlien
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 12, 2024, 02:25:14 PM
 #189

Congrats for your software @etar

It would be nice to have this program for Linux or at least the binary to create the HT so we can rent a Linux server with big amount of RAM to make the HT and download it to our computers.
GTX1060x2
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
March 16, 2024, 02:54:27 PM
 #190

I successfully compiled it for Linux, but the program just closes without an error. Has anyone been able to solve this?
Code:
# ./onlygen1_9_6File -t 256 -b 96 -p 506 -w 30 -htsz 29
Number of GPU threads set to #256
Number of GPU blocks set to #96
Number of pparam set to #506
Items number set to 2^30=1073741824
HT size set to 2^29
initHTsize #1
APP VERSION: 1.9.6File-onlygen0
**********************************************************************************
 This version [1.9.6File-onlygen0] may content various bugs,
 Don`t use this version for serious task.
 It is needed to test the possibility of using the -w parameter greater than 30
 if you accept this press ENTER to continue or close the program otherwise.
**********************************************************************************
citb0in
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
March 16, 2024, 03:45:22 PM
 #191

if you provide some instructions on how to compile on Linux I might look into it.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
GTX1060x2
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
March 16, 2024, 05:43:28 PM
 #192

if you provide some instructions on how to compile on Linux I might look into it.
Code:
apt install build-essential gcc g++ libxxf86vm-dev libxine2-dev unixodbc-dev libsdl1.2-dev libsdl2-dev libssl-dev libgtk2.0-dev libgtk-3-dev libwebkit2gtk-4.0-dev libvlc-dev 
apt install libcudart9.1
export PUREBASIC_HOME=~/purebasic && export PATH=$PUREBASIC_HOME/compilers:$PATH

Replace lib\ to lib/ in the source
And add this
Code:
Import "-no-pie"
endimport

Code:
root@vm:~/purebasic/compilers# cat /etc/lsb-release | grep -i release
DISTRIB_RELEASE=18.04
root@vm:~/purebasic/compilers# ln -s /usr/lib/x86_64-linux-gnu/libcuda.so BSGS-cuda/lib/cuda.lib
root@vm:~/purebasic/compilers# ./pbcompiler BSGS-cuda/1_9_7File.pb -e 1_9_7File

******************************************
PureBasic 5.31 (Linux - x64)
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
Including source: lib/Curve64.pb
27392 lines processed.
Creating the executable.

- Feel the ..PuRe.. Power -

root@vm:~/purebasic/compilers# ./1_9_7File -h
 -t      Number of GPU threads, default 256
 -b      Number of GPU blocks, default 132
 -p      Number of pparam, default 400
 -d      Select GPU IDs, default
-pb      Set single uncompressed/compressed pubkey for searching
-pk      Range start from , default 0x01
-pke     End range
-w       Set number of baby items 2^ or decimal representation
-htsz    Set number of HashTable 2^ , default 25
    Recommendation:
    with htsz 27 value -w should be less Or equil To 1331331443 Or 2^30.310222637591963
    with htsz 28 value -w should be less or equil to 1777178603 Or 2^30.726941530690112
    with htsz 29 value -w should be less or equil to 3069485950 Or 2^31.515349920643907
    with htsz 30 value -w should be less or equil to 3069485951 Or 2^31.515349920643907
    with htsz 31 value -w should be less or equil to 3069485951 Or 2^31.515349920643907
-infile  Set file with pubkey for searching in uncompressed/compressed  format (search sequential)
-wl      Set recovery file from which the state will be loaded
-wt      Set timer for autosaving current state, default every 180seconds

Do not use Ubuntu 22.
citb0in
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
March 17, 2024, 08:18:55 AM
 #193

where to download pb ?

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
greenAlien
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 17, 2024, 10:01:19 AM
 #194

Thanks GTX1060x2!

I will take a look too!

where to download pb ?

From here https://github.com/Etayson/BSGS-cuda/blob/main/onlygen1_9_6File.pb
greenAlien
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 23, 2024, 01:07:34 PM
Last edit: March 23, 2024, 01:32:22 PM by greenAlien
 #195

I successfully compiled it for Linux, but the program just closes without an error. Has anyone been able to solve this?
Code:
# ./onlygen1_9_6File -t 256 -b 96 -p 506 -w 30 -htsz 29
Number of GPU threads set to #256
Number of GPU blocks set to #96
Number of pparam set to #506
Items number set to 2^30=1073741824
HT size set to 2^29
initHTsize #1
APP VERSION: 1.9.6File-onlygen0
**********************************************************************************
 This version [1.9.6File-onlygen0] may content various bugs,
 Don`t use this version for serious task.
 It is needed to test the possibility of using the -w parameter greater than 30
 if you accept this press ENTER to continue or close the program otherwise.
**********************************************************************************

I have dedicated some time to compile the BSGS, the onlyGen file and BSGS-fractions in Linux with your instructions. The compilation was successfully for all of them however, when running the files they display the initial text but after that it closes without any output.
What are we missing here ?

This is and example of the execution, don't take the arguments seriously since it was just to test:

Code:
vboxuser@ubuntupurebasic:~/purebasic/compilers$ ./generateHT  -t 256 -b 96 -p 506 -w 30  -pk 8000000000000000 -pke ffffffffffffffff -pb 03100611c54dfef604163b8358f7b7fac13ce478e02cb224ae16d45526b25d9d4d -htsz 28
Number of GPU threads set to #256
Number of GPU blocks set to #96
Number of pparam set to #506
Items number set to 2^30=1073741824
Range begin: 0x8000000000000000
Range end: 0xffffffffffffffff
Pubkey set to 03100611c54dfef604163b8358f7b7fac13ce478e02cb224ae16d45526b25d9d4d
HT size set to 2^28
initHTsize #1
APP VERSION: 1.9.6File-onlygen0
**********************************************************************************
 This version [1.9.6File-onlygen0] may content various bugs,                          
 Don`t use this version for serious task.                                      
 It is needed to test the possibility of using the -w parameter greater than 30
 if you accept this press ENTER to continue or close the program otherwise.    
**********************************************************************************
Same behavior for the bsgs and the bsgs-fractions. Maybe @etar can help us here ?
I have also rented a Linux server and tried to run the binaries there just in case they didn't work on my Linux because GPU or Ram issues but I had the same results... Sad
Cricktor
Hero Member
*****
Offline Offline

Activity: 742
Merit: 1108


Crypto Swap Exchange


View Profile
March 24, 2024, 01:47:23 PM
 #196


I believe citb0in is asking where to download the PureBasic compiler itself, not Etar's PureBasic source code file(s). I haven't searched myself, but it shouldn't be rocket science to find the needed version of the PureBasic compiler for Linux with the help of internet search engines and/or Linux package search sites.


Maybe @etar can help us here ?

You may be lucky if you would address OP with correct spelling of his username @Etar, but maybe you're still unlucky because Etar was last active in this forum around July 23rd, 2023.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
citb0in
Hero Member
*****
Offline Offline

Activity: 658
Merit: 656


Bitcoin g33k


View Profile
March 24, 2024, 02:27:26 PM
 #197

I believe citb0in is asking where to download the PureBasic compiler itself, not Etar's PureBasic source code file(s). I haven't searched myself, but it shouldn't be rocket science to find the needed version of the PureBasic compiler for Linux with the help of internet search engines and/or Linux package search sites.

That was my question, absolutely. The source code is available but I wasn't able to found a working and usable PureBasic installation source.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
WanderingPhilospher
Full Member
***
Offline Offline

Activity: 1050
Merit: 219

Shooters Shoot...


View Profile
March 25, 2024, 02:07:34 AM
 #198

I believe citb0in is asking where to download the PureBasic compiler itself, not Etar's PureBasic source code file(s). I haven't searched myself, but it shouldn't be rocket science to find the needed version of the PureBasic compiler for Linux with the help of internet search engines and/or Linux package search sites.

That was my question, absolutely. The source code is available but I wasn't able to found a working and usable PureBasic installation source.

Really, none of y’all could find it?

https://www.purebasic.com/pricing.php

Yes, you have to pay for it. Once you pay for it, you can download any new or legacy versions, windows and/or Linux. You will need the one that Etar mentions in his PB code.
greenAlien
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 25, 2024, 09:04:31 AM
 #199

I believe citb0in is asking where to download the PureBasic compiler itself, not Etar's PureBasic source code file(s). I haven't searched myself, but it shouldn't be rocket science to find the needed version of the PureBasic compiler for Linux with the help of internet search engines and/or Linux package search sites.

That was my question, absolutely. The source code is available but I wasn't able to found a working and usable PureBasic installation source.

Really, none of y’all could find it?

https://www.purebasic.com/pricing.php

Yes, you have to pay for it. Once you pay for it, you can download any new or legacy versions, windows and/or Linux. You will need the one that Etar mentions in his PB code.

Exactly, you can buy it or...you can just search in the internet...

Does anyone have any clue regarding the no output when running the binaries after linux compilation?  The binaries just close themselves  Huh
Pages: « 1 2 3 4 5 6 7 8 9 [10]  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!