Author

Topic: Compiling KeyHunt_Cuda with gpu support (Read 104 times)

Vod
legendary
Activity: 3668
Merit: 3010
Licking my boob since 1970
April 28, 2024, 07:08:47 PM
#4
You should move this to tech support, in case others have the same problem. 
member
Activity: 122
Merit: 37
April 28, 2024, 06:02:55 PM
#3
Thank you. Grin
That was the issue which is now resolved.
It compiled and ran first time.
hero member
Activity: 510
Merit: 4005
April 28, 2024, 05:15:19 PM
#2
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.)
member
Activity: 122
Merit: 37
April 28, 2024, 04:36:07 PM
#1
I am trying to compile this code
https://github.com/iceland2k14/KeyHunt-Cuda

but it will only compile without cuda support the error message is

 ./KeyHunt -l
GPU code not compiled, use -DWITHGPU when compiling.

However I can see it happening. A lot of output ending with

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda/include -o obj/GmpUtil.o -c GmpUtil.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda/include -o obj/CmdParse.o -c CmdParse.cpp
Making KeyHunt...

It works in cpu mode.

VanitySearch and kangaroo from JLP both compile with gpu support.

Any ideas please??
Jump to: