使用CUDA Runtime API测耗时

#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <iostream> //省略错误判断 int main() { cudaEvent_t start, end; float elapsedTime; cudaEventCreate(&start); cudaEve
相关文章
相关标签/搜索