1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-03 18:55:56 +01:00

Update Accelerator.h

This commit is contained in:
Peter Boyle 2025-02-26 11:42:52 -05:00 committed by GitHub
parent 438dfbdb83
commit 311e2aab3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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));
}