计算机科学 > 程序设计语言
[提交于 2023年9月11日]
标题:__host__ __device__ -- Generic programming in Cuda
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present patterns for Cuda/C++ to write save generic code which works both on the host and device side. Writing templated functions in Cuda/C++ both for the CPU and the GPU bears the problem that in general both __host__ and __device__ functions are instantiated, which leads to lots of compiler warnings or errors.
提交历史
来自:Thomas Mejstrik[v1] 2023年9月11日 星期一 00:00:00 UTC