Title: GMP alternative but for GPUs Post by: NotATether on October 20, 2023, 06:00:27 AM 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 (https://stackoverflow.com/questions/70477938/arbitrary-precision-integer-on-gpu) is no help). Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also. Title: Re: GMP alternative but for GPUs Post by: garlonicon on October 20, 2023, 07:47:52 AM 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/secp256k1Title: Re: GMP alternative but for GPUs Post by: NotATether on October 22, 2023, 03:10:16 PM 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/secp256k1Somehow, 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. |