martijnpieters / mcgpu

Automatically exported from code.google.com/p/mcgpu
1 stars 0 forks source link

About "error: identifier "_ConvertSMVer2Cores" is undefined" #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I compile the source code with nvcc but get the following prompts:

MC-GPU_v1.2.cu(2367): error: identifier "_ConvertSMVer2Cores" is undefined

MC-GPU_v1.2.cu(2523): error: identifier "_ConvertSMVer2Cores" is undefined

So I looked the source code of "cutil_inline_runtime.h". I found that in CUDA 
release 4.2 the function " _ConvertSMVer2Cores" has been renamed to " 
_ConvertSMVer2Cores_local". 

Original issue reported on code.google.com by zhao.yun...@gmail.com on 10 Aug 2012 at 5:32

GoogleCodeExporter commented 8 years ago
I have not tested the code in CUDA 4.2 and I don't plan to do it because CUDA 
5.0 is already available. 
I suppose the code has to be modified to use "_ConvertSMVer2Cores_local" 
instead of "_ConvertSMVer2Cores" and I hope they stop changing the names of the 
library functions. This is not an important part of the simulation anyway.

I will test the program in the CUDA 5.0 and update the code as soon as possible.

Thanks for reporting the error!

Original comment by andre...@gmail.com on 10 Aug 2012 at 2:03

GoogleCodeExporter commented 8 years ago
The code also can be run in the CUDA 4.2. When the error: identifier 
"_ConvertSMVer2Cores" is undefined occured, you just need to add a head file in 
MC-GPU_v1.2.cu.

Original comment by zendg198...@gmail.com on 7 Oct 2012 at 1:05

GoogleCodeExporter commented 8 years ago

Original comment by andre...@gmail.com on 20 Dec 2012 at 9:04

GoogleCodeExporter commented 8 years ago

Original comment by andre...@gmail.com on 20 Dec 2012 at 9:05