05 2023 档案

摘要:## 1 步骤一 ### 1.1 两个kernel函数+CPU上统计答案,实验代码 ```cpp /* * Todo: * reduction kernel in which the threads are mapped to data with stride 2 */ __global__ voi 阅读全文
posted @ 2023-05-31 21:49 缙云山车神 阅读(47) 评论(0) 推荐(0) 编辑
摘要:工程仓库 https://github.com/xoslh/CNN-MNIST-CPP- github部分公式无法渲染,用typora打开可有效提高观感 # 1 卷积神经网络-CNN 的基本原理 ​ 卷积神经网络(Convolutional Neural Networks, CNNs)是一种深度学习 阅读全文
posted @ 2023-05-22 21:45 缙云山车神 阅读(2652) 评论(2) 推荐(0) 编辑
摘要:## 1 CPU版本 ### 1.1 代码 ```cpp void matrix_multiply_block(const float *M, const float *N, float *P, int M_rows, int M_cols, int N_rows, int N_cols) { in 阅读全文
posted @ 2023-05-18 13:44 缙云山车神 阅读(92) 评论(0) 推荐(0) 编辑
摘要:### 1.1 代码 ```cpp /* * Todo: * Implement the kernel function while satisfying the following requirements* * 1.1 Utilizing shared memory to achieve coa 阅读全文
posted @ 2023-05-11 14:04 缙云山车神 阅读(32) 评论(0) 推荐(0) 编辑
摘要:1 实验步骤一 1.1 运行结果: 1.2 绘制图像 1.3 分析原因 就和这个图表现出的是一样的 图一的访问尽管会有位移,但总归是顺序连续的访问,所以可以通过Coalesce 进行少量的 memory transactions,位移是多少没什么差别 图二表示说,访问的位置越稀疏速度就越慢,因为一次 阅读全文
posted @ 2023-05-02 23:43 缙云山车神 阅读(36) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示