2020年4月11日

摘要: 1.两个一维数组相加,求和 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include "cuda_runtime.h" 5 #include "device_launch_parameters.h" 6 voi 阅读全文
posted @ 2020-04-11 22:03 无人知晓LLH 阅读(350) 评论(0) 推荐(0)
摘要: 1.clock()函数是C/C++中的计时函数,相关的数据类型是clock_t,使用clock函数可以计算运行某一段程序所需的时间,如下所示程序计算从10000000逐渐减一直到0所需的时间。 注:每次运行所需时间可能会不一样 1 #include "cuda_runtime.h" 2 #inclu 阅读全文
posted @ 2020-04-11 09:50 无人知晓LLH 阅读(259) 评论(0) 推荐(0)

导航