How to deal with ptxas : fatal error : Unresolved extern function 'cudaGetParameterBuffer'

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.

#1
Posted 11/26/2012 05:26 AM   
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.

wwww.orangeowlsolutions.com

#4
Posted 12/19/2012 12:08 PM   
The procedure above fixed my problem. Thank you very much!!

#5
Posted 12/25/2012 12:09 AM   
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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值