提交 26a73e48 编写于 作者: L liaogang

update code

上级 ed5bcfe8
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#define CHECK_ERR(x) \ #define CHECK_ERR(x) \
if (x != cudaSuccess) { \ if (x != cudaSuccess) { \
fprintf(stderr,"%s in %s at line %d\n", \ fprintf(stderr,"%s in %s at line %d\n", \
cudaGetErrorString(err),__FILE__,__LINE__); \ cudaGetErrorString(err),__FILE__,__LINE__); \
exit(-1); \ exit(-1); \
} \ }
__global__ void vecAdd (float* d_A, float* d_B, float* d_C, int n) { __global__ void vecAdd (float* d_A, float* d_B, float* d_C, int n) {
int i = blockDim.x * blockIdx.x + threadIdx.x; int i = blockDim.x * blockIdx.x + threadIdx.x;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册