Bitcoin Forum
October 04, 2024, 04:20:50 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: GMP alternative but for GPUs  (Read 116 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1750
Merit: 7304


In memory of o_e_l_e_o


View Profile WWW
October 20, 2023, 06:00:27 AM
Merited by ABCbits (1), garlonicon (1)
 #1

Guys, I have some C++ elliptic curve code that does things like point addition/subtraction and other stuff like that. The workload I'm running involves generating some public keys and saving them on the hard disk, in batches so as to not overwhelm the memory, but my friend told me it's too slow on CPU.

I think the performance will improve massively if I can get the elliptic curve codes converted to CUDA or OpenCL or something like that, but I'm having trouble finding a suitable library that won't force a full rewrite (and this is no help). Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also.

garlonicon
Copper Member
Legendary
*
Offline Offline

Activity: 875
Merit: 2114


Pawns are the soul of chess


View Profile
October 20, 2023, 07:47:52 AM
 #2

Quote
Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also.
What about the code that is included into Bitcoin Core? https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1

NotATether (OP)
Legendary
*
Offline Offline

Activity: 1750
Merit: 7304


In memory of o_e_l_e_o


View Profile WWW
October 22, 2023, 03:10:16 PM
 #3

Quote
Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also.
What about the code that is included into Bitcoin Core? https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1

Somehow, the last time I made an implementation using libsecp256k1, I was getting incorrect keys. But maybe that was because I could've been using it wrong or something.

Pages: [1]
  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!