Who ever help me with this code able to run on gpu
I definitely give u 1 BTC
NEED ACHIEVE ATLEAST 250M Keys/sec
#include <stdio.h>
#include <cuda.h>
#include "secp256k1.h"
#include "sha256.h"
#include "ripemd160.h"
__global__ void hash(stuff) {
secp(stuff);
sha256(stuff);
ripemd160(stuff);
}
int main() {
allocate host memory array
allocate cuda memory
open file and put in host array
cuda memcpy host to device
hash<<<1,1>>>(stuff);
cuda memcpy device to host
printf("%X\n", stuff);
}
now just add incremental threading and actual code.