Hi,
I'm trying to implement a dynamic parallelism programming. However, when I compile the code on VS 2008, I got an fatal error which told me Unresolved extern function 'cudaGetParameterBuffer'. I went through the dynamic parallelism guide and found that it's about the PTX. However, there is no examples to show me how to use declare it. Anybody has any ideas?
And there is a helloword simple example at the bottom of the dynamic parallelism guide. However, when I try to move that code to a new project and compile it. I get a pretty the same error which is "ptxas : fatal error : Unresolved extern function 'cudaLaunchDevice'".
Please give me some ideas, some specific examples will be highly appreciated.
I'm trying to implement a dynamic parallelism programming. However, when I compile the code on VS 2008, I got an fatal error which told me Unresolved extern function 'cudaGetParameterBuffer'. I went through the dynamic parallelism guide and found that it's about the PTX. However, there is no examples to show me how to use declare it. Anybody has any ideas?
And there is a helloword simple example at the bottom of the dynamic parallelism guide. However, when I try to move that code to a new project and compile it. I get a pretty the same error which is "ptxas : fatal error : Unresolved extern function 'cudaLaunchDevice'".
Please give me some ideas, some specific examples will be highly appreciated.
Hi, could you provide your compile command-line?
I had the same issue under Visual Studio 2010 (Unresolved extern function 'cudaGetParameterBuffer') and I have solved the problem in few steps.
1) View -> Property Pages
2) Configuration Properties -> CUDA C/C++ -> Common -> Generate Relocatable Device Code -> Yes (-rdc=true)
3) Configuration Properties -> CUDA C/C++ -> Code Generation -> compute_35,sm_35
4) Configuration Properties -> Linker -> Input -> Additional Dependencies -> cudadevrt.lib
Probably you were missing the second point.
1) View -> Property Pages
2) Configuration Properties -> CUDA C/C++ -> Common -> Generate Relocatable Device Code -> Yes (-rdc=true)
3) Configuration Properties -> CUDA C/C++ -> Code Generation -> compute_35,sm_35
4) Configuration Properties -> Linker -> Input -> Additional Dependencies -> cudadevrt.lib
Probably you were missing the second point.
JFSebastian said: I had the same issue under Visual Studio 2010 (Unresolved extern function 'cudaGetParameterBuffer') and I have solved the problem in few steps.
1) View -> Property Pages
2) Configuration Properties -> CUDA C/C++ -> Common -> Generate Relocatable Device Code -> Yes (-rdc=true)
3) Configuration Properties -> CUDA C/C++ -> Code Generation -> compute_35,sm_35
4) Configuration Properties -> Linker -> Input -> Additional Dependencies -> cudadevrt.lib
Probably you were missing the second point.