Fixed the issues with some OpenCL implementation to avoid errors casting changing the pointer address spaces

This commit is contained in:
Trung Nguyen
2023-01-25 00:02:25 -06:00
parent b206b4d1f6
commit adf43d7fee
5 changed files with 106 additions and 112 deletions

View File

@ -49,7 +49,7 @@ int AtomT::bytes_per_atom() const {
if (_vel)
bytes+=4*sizeof(numtyp);
if (_extra_fields>0)
bytes+=_extra_fields*sizeof(numtyp);
bytes+=_extra_fields*sizeof(numtyp4);
return bytes;
}