From 311e2aab3f48fc76923ae6a25b723de25317396f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 26 Feb 2025 11:42:52 -0500 Subject: [PATCH] Update Accelerator.h --- Grid/threads/Accelerator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }