Bitcoin Forum
May 21, 2024, 11:19:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling KeyHunt_Cuda with gpu support  (Read 62 times)
whanau (OP)
Member
**
Offline Offline

Activity: 118
Merit: 30


View Profile
April 28, 2024, 09: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??
PowerGlove
Hero Member
*****
hacker
Offline Offline

Activity: 514
Merit: 4096



View Profile
April 28, 2024, 10:15:19 PM
Merited by whanau (1)
 #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.)
whanau (OP)
Member
**
Offline Offline

Activity: 118
Merit: 30


View Profile
April 28, 2024, 11:02:55 PM
Merited by PowerGlove (1)
 #3

Thank you. Grin
That was the issue which is now resolved.
It compiled and ran first time.
Vod
Legendary
*
Offline Offline

Activity: 3710
Merit: 3081


Licking my boob since 1970


View Profile WWW
April 29, 2024, 12:08:47 AM
 #4

You should move this to tech support, in case others have the same problem. 

https://nastyscam.com - landing page up     https://vod.fan - advanced image hosting - coming soonish!
OGNasty has early onset dementia; keep this in mind when discussing his past actions.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!