migeyel / pmkam

An OpenCL vanity address miner for Krist.
GNU General Public License v3.0
4 stars 3 forks source link

Could not build miner 0: #1

Closed SammyForReal closed 1 year ago

SammyForReal commented 1 year ago

Hey, when I try to run the program, I get the following warning and debug output:

pmkam.exe mine
Term tree size: 2736 Bytes
Using device: NVIDIA GeForce GTX 1650
Starting miners...
  0 Solutions Found |      0  A/s |  0d  0h  0min  0sec
2 errors generated.
Warning: Could not build miner 0:

###################### OPENCL PROGRAM BUILD DEBUG OUTPUT ######################

<kernel>:244:17: error: passing '__generic UINT *' (aka '__generic union UINT *') to parameter of type 'const UINT *' (aka 'const union UINT *') changes address space of pointer
    hash_to_hex(chain->last_hash, hash_hex);
                ^~~~~~~~~~~~~~~~
<kernel>:160:36: note: passing argument to parameter 'hash' here
inline void hash_to_hex(const UINT hash[8], UINT hex[64]) {
                                   ^
<kernel>:245:24: error: passing '__generic UINT *' (aka '__generic union UINT *') to parameter of type 'UINT *' (aka 'union UINT *') changes address space of pointer
    digest64(hash_hex, chain->last_hash);
                       ^~~~~~~~~~~~~~~~
<kernel>:140:42: note: passing argument to parameter 'hash' here
inline void digest64(UINT data[64], UINT hash[8]) {
                                         ^

###############################################################################

It still runs after that tho.

Erb3 commented 1 year ago

I have the same issue!