CUDA 编程 之 编译问题小记
来源:互联网 发布:淘宝网睡衣大全冬季 编辑:程序博客网 时间:2024/05/17 04:03
1. 在编译cuda程序时出现 这个问题
obj/release/mySobeldllComb.cu_o relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
根据提示,说加上 -fPIC
重新编译,如果是 GCC的话,可以直接加 -fPIC
,但是要是NVCC 的话,需要如下
nvcc *.cu -Xcompiler -fPIC
2. Error: application being profiled returned a non-zero return code ..
在执行某个程序时,出现这个错误,调了半天没调出来,搜一搜,思路如下。
On most operating systems a non-zero process exit code indicates an error in the application. The Visual Profiler is warning that it detected a non-zero process exit code from the target application.
Does the target application return a non-zero process exit code when run outside of the Visual Profiler? If yes, then fix the target application.
Does the target application return a non-zero process exit code only when launched from the Visual Profiler? If yes, then debug what error is occurring in the application. These types of errors are often cause by a difference in the process launch environment including but not limited to:
- Incorrect working directory
- Incorrect command line arguments
- Incorrect environment variables
These three settings can be specified in the Visual Profiler session settings.
- CUDA 编程 之 编译问题小记
- CUDA编译问题
- cuda编程之atomicAdd
- cuda编程之 __syncthreads()
- 编译原理之小记录
- CUDA编程之树状加法
- CUDA编程之环境配置
- CUDA 编程 之 基本概念理解
- CUDA 编程之 launch bounds
- CUDA代码不同平台编译问题
- CUDA随机数模块 无法编译通过问题
- CUDA学习小记
- CUDA学习小记
- Cuda安装小记
- 【CUDA并行编程之三】Cuda矢量求和运算
- 【CUDA并行编程之八】Cuda实现Kmeans算法
- 【CUDA并行编程之三】Cuda矢量求和运算
- 【CUDA并行编程之八】Cuda实现Kmeans算法
- 面向对象七大设计原则剖析
- Linux编程基础之多线程编程(三)
- 删除菜单下所有子节点信息
- 通过图片的URI来获取图片的真实路径
- Spring MVC的工作原理
- CUDA 编程 之 编译问题小记
- tensorflow多机/多GPU训练时使用的术语
- 出现 “未能创建此平台,因为已存在同名的解决方案平台”提示
- 矩阵快速幂 模版
- php 使用smtp发送邮件
- JS 动态加载脚本的4种方法
- Android软键盘弹出
- Android ListView 与 RecyclerView 对比浅析--缓存机制
- CentOS 6.7 升级gcc 至 5.2.0