可以了解成并行版的STL(?
过了一遍nvidia的官方网文档
发现如果熟悉STL的话,thrust没什么太多好说的,看起来很简单...
不过还是开一篇记录一下,一段时间内估计要和cuda c++ 打交道,就当记录使用过程中遇到的问题吧.
阅读更多由于发现cuda c++ 的 debug方式和c++ 差别很大,因此打算再开一篇,专门记录一些和error checking 以及debug有关的内容.
Error checks in CUDA code can help catch CUDA errors at their source. There are 2 sources of errors in CUDA source code:
阅读更多起因是百度实习二面的时候被问了一道类似这样的题:
给我下面的代码,问有没有什么问题。
1 /* *********************************************** 2 Author :111qqz 3 Created Time :2017年02月28日 星期二 14时49分37秒 4 File Name :vector.cpp 5 ************************************************ */ 6 #include <cstdio> 7 #include <vector> 8 …
阅读更多