Skip to content

Instantly share code, notes, and snippets.

View JCaskey's full-sized avatar

John Caskey JCaskey

  • Carleton University
  • Ottawa, ON, Canada
View GitHub Profile
// Kernel
__global__ void testKernel(float* d_array, int size){
// Index
int idx = blockIdx.x *blockDim.x + threadIdx.x;
// Initialize
d_array[idx] = 0;
// Loop