文章目录 测试cuda程序 动态库 源码 编译生成动态库 使用动态库文件 静态库 源码 编译静态库 使用静态库文件 测试cuda程序 #include <stdio.h> #include <cuda.h> __global__ void add(int* a, int* b, int* c) {