![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cuda
文章平均质量分 90
把我当成一棵树吧
这个作者很懒,什么都没留下…
展开
-
cuda 报错Unresolved extern function 错误
个人博客中有本文原文https://whatghost.github.io/2020/07/18/cuda-rdc-compile/如果喜欢可以访问个人博客WhatGhost.github.io,会有更多分享内容Unresolved extern function错误编译过程中遇到Unresolved extern function xxxxxx 错误,一般导致这个错误的原因是在__global__和一些__device__函数放在了分开编译的不同文件中,并且在__global__中调用了这些__de原创 2020-07-18 18:24:31 · 1653 阅读 · 0 评论 -
cuda 函数前缀 __host__ __device__ __global__ ____noinline__ 和 __forceinline__ 简介
个人博客中有本文原文https://whatghost.github.io/2020/03/16/cuda-func-excu-space-specifiers/如果喜欢可以访问个人博客WhatGhost.github.io,会有更多分享内容cuda 函数前缀 host device global __noinline 和 forceinline 简介这些函数前缀在官方的文档里被称为函数执行...原创 2020-03-16 12:20:14 · 9416 阅读 · 0 评论 -
cuda unified memory简介 和 cuda深拷贝问题
个人博客中有本文原文https://whatghost.github.io/2020/03/12/cuda-unified-memory/如果喜欢可以访问个人博客WhatGhost.github.io,会有更多分享内容cuda unified memory简介 和 cuda深拷贝问题unified memoryunified memory 是cuda6.0以后的版本增加的一个编程模型统一...原创 2020-03-12 16:26:58 · 766 阅读 · 0 评论 -
Cuda C 混合编译
Cuda C 混合编译1 extern “C”在用CUDA的.cu文件和C的.c文件混合编译时,最后用gcc对之前步骤生成的目标.o文件混合编译时经常会报错例如我门又如下三个文件c语言的main.c文件#include "cuda_fun.h"int main(){ cuda_fun();}cuda_fun.h头文件是函数的声明,这里省略cuda_fun.cu#i...原创 2020-03-06 14:03:07 · 3026 阅读 · 1 评论 -
cuda 学习——julia 集计算
cuda 学习——julia 集计算最近在学习 cuda ,正在看《 cuda by examples 》一书,感觉也是受益很多 之前在 B 站上也看了 NVIDA 的视频,结合起来还是很不错的 在这里记录一下学习的心得和笔记关于 julia 集关于 julia 集, julia 集合是一个在复平面上形成分形的点的集合 可以由下式得到 f(x)=x2+cf(x)=x2+c ...原创 2018-08-27 21:56:58 · 1887 阅读 · 2 评论