Skip to content

Commit

Permalink
Warm cache by avoiding DMA
Browse files Browse the repository at this point in the history
  • Loading branch information
drichmond committed May 16, 2022
1 parent bcf8b81 commit 211c3c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/cuda/test_jacobi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ int kernel_jacobi (int argc, char **argv) {
******************************************************************************************************************/
void *dst = (void *) ((intptr_t) A0_device);
void *src = (void *) &A0_host[0];
DMA_host_to_device(&device, dst, src, N * sizeof(float)); /* Copy A0 to the device */
//DMA_host_to_device(&device, dst, src, N * sizeof(float)); /* Copy A0 to the device */
BSG_CUDA_CALL(hb_mc_device_memcpy (&device, dst, src, N * sizeof(float), HB_MC_MEMCPY_TO_DEVICE));
dst = (void *) ((intptr_t) Anext_device);
src = (void *) &Anext_host[0];
//BSG_CUDA_CALL(hb_mc_device_memcpy (&device, dst, src, N * sizeof(float), HB_MC_MEMCPY_TO_DEVICE));

/*****************************************************************************************************************
* Define block_size_x/y: amount of work for each tile group
Expand Down

0 comments on commit 211c3c9

Please sign in to comment.