Skip to content

Commit

Permalink
src: fix code with simgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed Sep 5, 2024
1 parent b96f461 commit dcbd48f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/cuda/driver_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,10 +1251,14 @@ uintptr_t _starpu_cuda_malloc_on_device(int devid, size_t size, int flags)

void _starpu_cuda_memset_on_device(uintptr_t ptr, int c, size_t size)
{
#ifdef STARPU_SIMGRID
ptr = (void *)1;
#else
cudaError_t status;
status = cudaMemset((void*) ptr, c, size);
if (STARPU_UNLIKELY(status != cudaSuccess))
STARPU_CUDA_REPORT_ERROR(status);
#endif
}

void _starpu_cuda_free_on_device(int devid, uintptr_t addr, size_t size, int flags)
Expand Down

0 comments on commit dcbd48f

Please sign in to comment.