StreamHPC / gromacs

OpenCL porting of the GROMACS molecular simulation toolkit
http://www.gromacs.org
Other
25 stars 4 forks source link

The memset_f3 function for atdat->f causes memory corruption #40

Closed dkarkoulis closed 9 years ago

dkarkoulis commented 9 years ago

There are random crashes/memory errors when using a CPU device. This is due to memory corruption caused by memset_f3 as it accesses a 3-component buffer via float3 (size of float4).

We should use memset_f instead on a bigger grid.