diff --git a/Grid/threads/Accelerator.h b/Grid/threads/Accelerator.h index 2aeb9fa7..f362a077 100644 --- a/Grid/threads/Accelerator.h +++ b/Grid/threads/Accelerator.h @@ -575,4 +575,11 @@ accelerator_inline void acceleratorFence(void) return; } +inline void acceleratorCopyDeviceToDevice(void *from,void *to,size_t bytes) +{ + acceleratorCopyDeviceToDeviceAsynch(from,to,bytes); + acceleratorCopySynchronise(); +} + + NAMESPACE_END(Grid);