- gpuKernel_k1<<<Dg,Db>>>(); // GPU comp. (async. op)
- // IF there is (now) a result to transfer from the GPU to the CPU:
- cudaMemcpy(cpuResTabAdr + i, gpuResAdr, // Data transfer:
- sizeof(float), // GPU --> CPU (sync. op)
+ gpuKernel_k1<<<Dg,Db>>>(); // GPU comp. (async. op)
+ // IF there is (now) a result to transfer from the GPU to the CPU:
+ cudaMemcpy(cpuResTabAdr + i, gpuResAdr,// Data transfer:
+ sizeof(float), // GPU --> CPU (sync. op)