diff --git a/Grid/threads/Accelerator.h b/Grid/threads/Accelerator.h index f3371f98..b5aaccb4 100644 --- a/Grid/threads/Accelerator.h +++ b/Grid/threads/Accelerator.h @@ -674,7 +674,7 @@ inline void acceleratorCopyDeviceToDevice(void *from,void *to,size_t bytes) acceleratorCopySynchronise(); } -template void acceleratorPut(T& dev,T&host) +template void acceleratorPut(T& dev,const T&host) { acceleratorCopyToDevice(&host,&dev,sizeof(T)); }