使用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
相關文章
相關標籤/搜索