johguse / profanity

Vanity address generator for Ethereum
834 stars 324 forks source link

Strange kernel error on windows #35

Open Incrediblez7 opened 3 years ago

Incrediblez7 commented 3 years ago

Trying to run profanity.exe from precompiled releases, but following error happened.

C:\Users\Incrediblez7>E:\profanity-v1.60-x64.zip\profanity.exe --leading f
Mode: leading
Target: Address
Devices:
  GPU0: GeForce RTX 2070 SUPER, 8589934592 bytes available, 40 compute units (precompiled = yes)

Initializing OpenCL...
  Creating context...OK
  Loading kernel from binary...OK
  Building program...OK

std::runtime_error - failed to create kernel "profanity_init"
secp8x32 commented 3 years ago

This error is caused by clCreateKernel function call in Dispatcher class, it is returning -46 which means CL_INVALID_KERNEL_NAME. To solve this problem comment out some part of profanity.cpp file, this will force program to load opencl kernel from .cl files, so put these files keccak.cl and profanity.cl in same directory with program binary. And change file profanity.cpp like this from line 283:

image

luckom65 commented 3 years ago

i did that but it doesn't work

eyooooo commented 2 years ago

bump!