Fix the bug with offloading the PME-only ranks to GPU
authorArtem Zhmurov <zhmurov@gmail.com>
Wed, 2 Oct 2019 16:00:54 +0000 (18:00 +0200)
committerBerk Hess <hess@kth.se>
Thu, 3 Oct 2019 15:23:39 +0000 (17:23 +0200)
commit9063cd135b2e70aa554100b4c85d0bcf55e793e5
treea85f4df9874f58aa6eeb2ee717ea70397c343196
parentdbbf8df21530f1dad8d2b1153a20cd0874364a1c
Fix the bug with offloading the PME-only ranks to GPU

This fixes the bug introduced with StatePropagatorDataGpu (Commit 092a8f68):

In PME-only ranks, the GPU context and stream were mixed up and passed to
the constructor of StatePropagatorDataGpu in the wrong order. This caused
failure in OpenCL builds with error -34 (CL_INVALID_CONTEXT). Did not
affect the CUDA builds, since the context is not relevant in CUDA.

Change-Id: I5e070e361c7bdef3168887dcac4869bb71c6c5ed
src/gromacs/ewald/pme_only.cpp