Fix some OpenCL issues
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 8 Dec 2015 03:01:33 +0000 (04:01 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 27 Dec 2015 03:54:52 +0000 (14:54 +1100)
commitad8209b537febfa3c39b994ef417b42366da2803
treefba194970826062ad610eb7e4d4f5adb7a1c59de
parentf13d30ae615fa7d11a935fbb5fb12d2b390af8c3
Fix some OpenCL issues

Added routine to convert error codes into more helpful
diagnostics. Called it in one place that needed some troubleshooting,
but an overhaul of OpenCL error handling is needed (in master branch).

Introduced new OpenCL control variable to indicate when there is a
non-local event upon which it is valid to wait, since it is an error
to wait upon an ocl_event that was never returned by an API call.

Converted mdrun integration tests to rely on the improved automated
resource assignment in 5.1, because that copes better with the
limitations of the OpenCL implementation.

Worked around limitation where real MPI + OpenCL can't use more than
one GPU on a node, by disabling GPU support for that test case.

Fixed inappropriate use of mdrun -nt, where the number of thread-MPI
ranks was intended.

Updated install guide.

Fixes #1871

Change-Id: I11e6b2bdb6f7f91489f3ec0d671081d99661fa62
docs/install-guide/index.rst
src/gromacs/gmxlib/ocl_tools/oclutils.cpp
src/gromacs/gmxlib/ocl_tools/oclutils.h
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl.cpp
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl_types.h
src/programs/mdrun/tests/moduletest.cpp