c语言编译器中cu是什么意思,.c文件调用.cu中的函数

(double * *,unsigned int)" (??$cudaMalloc@N@@YA?AW4cudaError@@PAPANI@Z)

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol _cudaLaunch@4 referenced in function "enum cudaError __cdecl cudaLaunch(char *)" (??$cudaLaunch@D@@YA?AW4cudaError@@PAD@Z)

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol _cudaSetupArgument@12 referenced in function "void __cdecl __device_stub__Z14equationKernelPdlS_(double *,long,double *)" (?__device_stub__Z14equationKernelPdlS_@@YAXPANJ0@Z)

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol ___cudaRegisterFunction@40 referenced in function "void __cdecl __nv_cudaEntityRegisterCallback(void * *)" (?__nv_cudaEntityRegisterCallback@@YAXPAPAX@Z)

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol ___cudaRegisterFatBinary@4 referenced in function "void __cdecl __sti____cudaRegisterAll_46_tmpxft_00001530_00000000_5_toyfunction_cpp1_ii_e9244d79(void)" (?__sti____cudaRegisterAll_46_tmpxft_00001530_00000000_5_toyfunction_cpp1_ii_e9244d79@@YAXXZ)

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol _cudaFree@4 referenced in function _toyusrf_

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol _cudaConfigureCall@32 referenced in function _toyusrf_

1>toyfunction.cu.obj : error LNK2019: unresolved external symbol _cudaMemcpy@16 referenced in function _toyusrf_

1>.\Release/cexamples.exe : fatal error LNK1120: 9 unresolved externals

可能是我没有操作正确,应该怎样做呢

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值