![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OpenCL
文章平均质量分 81
范泽德
这个作者很懒,什么都没留下…
展开
-
OpenCL例程2-数组相加
cpp文件 // OpenCl-1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include using namespace std; #define ARRAY_SIZE 128 cl_int Conve原创 2014-03-31 11:06:01 · 1899 阅读 · 0 评论 -
OpenCL例程1-HelloWorld
步骤如下: 1. 获得并选择可用平台 2. 查询GPU设备,并选择可用设备 3. 创建设备环境 4. 创建命令队列 5. 创建程序对象 6. 编译程序 7. 并创建输入输出内核内存对象 8. 创建内核对象 9. 设置内核参数 10. 运行内核 11. 将输出读取到主机内存 12. 输出计算结果 13. 释放资源 // OpenCl-1.cpp : Defines原创 2014-03-25 21:25:52 · 3137 阅读 · 2 评论 -
OpenCL例程3-矩阵相乘
cpp文件代码 // OpenCl-3.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include using namespace std; #define MATRIX_A_ROW 8 // 矩阵A行数 #defin原创 2014-03-31 14:32:50 · 2017 阅读 · 0 评论