Post
Topic
Board Project Development
Merits 1 from 1 user
Re: Compiling KeyHunt_Cuda with gpu support
by
PowerGlove
on 28/04/2024, 22:15:19 UTC
⭐ Merited by whanau (1)
Any ideas please??
I've never used this tool, but, taking a quick peek at the code, it looks to me like the cause of your error message might be a bug...

The code starting at line 290 in Main.cpp looks like this:

Code:
else if (optArg.equals("-l", "--list")) {
#ifdef WIN64
GPUEngine::PrintCudaInfo();
#else
printf("GPU code not compiled, use -DWITHGPU when compiling.\n");
#endif
return 0;
}

That #ifdef should probably be #ifdef WITHGPU, not #ifdef WIN64.

(Take the above with a grain of salt, though; like I said, I've never used this tool, much less tried to compile it.)