StreamHPC / gromacs

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

Fix program level synchronizations for ocl_copy_D2H_async #31

Closed ancahamuraru closed 9 years ago

ancahamuraru commented 9 years ago

ocl_copy_D2H_async is currently called without anyone checking when the transfer finished.

As a consequence, the host may read data before ocl_copy_D2H_async has finished.

This is causing a crash on some GPUs.

ancahamuraru commented 9 years ago

Temporary fixed by making all ocl_copy_D2H_async calls blocking.

TO DO: make ocl_copy_D2H_async async and fix the program level synchronization problems.

ancahamuraru commented 9 years ago

Fixed. ocl_copy_D2H is again asynchronous. See 9fdc6428b72d02b41b389df756d00095efc770fe