Author

Topic: rpcminer-cuda issue. (Read 1182 times)

sr. member
Activity: 247
Merit: 250
April 17, 2013, 06: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

Jump to: