在VS2012下的CUDA程序中出现错误error : identifier “atomicAdd” is undefined
来源:互联网 发布:训练kitti数据集 编辑:程序博客网 时间:2024/05/16 11:15
用VS2012(cuda 5.5)在内核中调用原子函数(例如atomicAdd)时,如果编译的时候出现"error: identifier "atomicAdd" is undefined
首先要确定你的显卡计算能力是否在2.x以上,然后需要在项目(不是.cu文件)上右键“属性”-->"配置属性"-->"CUDA/C++"-->"Device"-->"Code Generation"-->"compute_10,sm_11"改成"compute_20,sm_20"即可
- 在VS2012下的CUDA程序中出现错误error : identifier “atomicAdd” is undefined
- 在VS2010下的CUDA程序中出现错误error : identifier “atomicAdd” is undefined
- 在VS2010下的CUDA程序中出现异常error : identifier “atomicAdd” is undefined
- error : identifier “atomicAdd” is undefined
- cuda原子性操作代码编译问题 error: identifier "atomicAdd" is undefined
- error: identifier "XXXXX" is undefined
- keil_5编译C程序时出现“P1 undefined identifier“错误
- 调试工装代码出现 identifier GPIOE is undefined 的解决方案
- 在.net中创建ajax程序出现'Sys' is undefined的解决方法
- cuda中atomicAdd效率问题
- error: #20: identifier "EXTI0_IRQChannel" is undefined
- error: #20: identifier "FILE" is undefined
- error: #20: identifier "stm32f10x_xxxx.h" is undefined
- USART实验错误identifier "USART_InitTypeDef" is undefined
- STM32用IAR调试出现Error[Pe020]: identifier "FILE" is undefined 解决方法
- 解决Stm32出现..\HARDWARE\ADC\adc.c(22): error: #20: identifier "ADC_InitTypeDef" is undefined异常
- STM32用IAR调试出现Error[Pe020]: identifier "FILE" is undefined 解决方法
- STM32用IAR调试出现Error[Pe020]: identifier "FILE" is undefined 解决方法
- VB.net学习笔记(十六)CLR
- C++ 单例模式
- StAX-基于流的拉式XML解析
- verbalexpressions使用方法
- eclipse快捷键大全
- 在VS2012下的CUDA程序中出现错误error : identifier “atomicAdd” is undefined
- 数据结构56页E4作业
- Oracle 权限设置
- HDU 4361 Dead or alive
- OCX控件的注册卸载,以及判断是否注册
- timus 1348. Goat in the Garden 2 URAL 点到线段的距离
- ActiveX控件打包成Cab实现浏览器自动下载安装
- cognos中如何设置自动邮箱发送功能
- NY--8 -- 一种排序 [水]