cudaMalloc code example Example: cudaMalloc int * d_array; cudamalloc((void **) &d_array, size*sizeof(int))