sorib / truecrack

Automatically exported from code.google.com/p/truecrack
GNU General Public License v3.0
0 stars 0 forks source link

Error 2 when Compiling GPU #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.make GPU=true
2.
3.

What is the expected output? What do you see instead?
Cuda.cu(49): error: a __host__ function("cuda_Kernel") redeclared with 
__global__

Cuda.cu(152): warning: a __host__ function("cuda_hmac_ripemd160") redeclared 
with __device__, hence treated as a __host__ __device__ function

...
8 warning like before
...

1 error detected in the compilation of 
"/tmp/tmpxft_0000086d_00000000-6_Cuda.cpp1.ii"
make: *** [Cuda.o] Error 2

What version of the product are you using? On what operating system?
I'm using Cuda 5.0, Ubuntu 11.10 32bit, NVIDIA Gefoce GT620

Please provide any additional information below.

Original issue reported on code.google.com by rebel....@gmail.com on 18 Dec 2012 at 7:55

GoogleCodeExporter commented 9 years ago
FIX! The cuda version 5.0 doesn't support the attribute global in the signature 
of the prototype of the kernel function. Delete the line in the 
Cuda/CudaCore.cuh:

void cuda_Kernel ( unsigned char *salt, unsigned char *header, unsigned char 
*blockPwd, int *blockPwd_init, int *blockPwd_length, short int *result);

Original comment by luck87 on 5 Jan 2013 at 12:34

GoogleCodeExporter commented 9 years ago
It is fixed in the version 2.0

Original comment by luck87 on 14 Jan 2013 at 12:26