Bitcoin Forum
August 15, 2024, 12:36:04 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: rpcminer-cuda issue.  (Read 1169 times)
Lacan82 (OP)
Sr. Member
****
Offline Offline

Activity: 247
Merit: 250


View Profile
April 17, 2013, 11:41:20 PM
 #1

Trying to fix the Unable to Load Cuda Module error for rpcminer by following these instructions.

There are a couple ways around the .cubin issue.

I found if I do the original "cmake -i", eventually it will prompt you asking if you want to generate a cubin file.  You say "yes" and then it builds a cubin file with a ".txt" extension for whatever reason.

If you take the cubin.txt file and copy it to bitcoinminercuda_11.cubin rpcminer with cuda will work

the other option is to run nvcc and generate your own cubin from the ".cu" file

"nvcc ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep"

this will generate .cubin files, copy the one you want to bitcoinminercuda_11.cubin and then run rpcminer

One I run it I get this error below.

LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main reference
d in function ___tmainCRTStartup
a.exe : fatal error LNK1120: 1 unresolved externals

I'm using Visual Studio 2010 Express with the Nvidia Dev kit. Any help would be appreciated Smiley


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!