Update Accelerator.h

This commit is contained in:
Peter Boyle authored and GitHub committed 2025-02-26 11:42:52 -05:00
1 parent 438dfbdb83
commit 311e2aab3f
1 file changed
+1 -1
+1 -1
View File
@@ -674,7 +674,7 @@ inline void acceleratorCopyDeviceToDevice(void *from,void *to,size_t bytes)
acceleratorCopySynchronise();
}
template<class T> void acceleratorPut(T& dev,T&host)
template<class T> void acceleratorPut(T& dev,const T&host)
{
acceleratorCopyToDevice(&host,&dev,sizeof(T));
}