
归约求和
ZCJY
将来的你一定会感谢现在努力的你
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cuda归约求和最终版
#include "device_functions.h"#include "cuda_runtime.h"#include "device_launch_parameters.h"#include "stdlib.h"#include <iostream>using namespace std;#define LENG 117//数组长度//返回thread和blo...原创 2019-12-26 20:19:49 · 1330 阅读 · 1 评论 -
cuda归约求和初级版
当前代码的缺点:1、只能在同一个block做运算2、只能做所求个数组数为偶数的计算#include "device_functions.h"#include "cuda_runtime.h"#include "device_launch_parameters.h"#include "stdlib.h"#include <iostream>using namespace ...原创 2019-12-25 18:06:15 · 496 阅读 · 0 评论