Combine initialization routines for GPUs assigned to PME and Nonbonded
commit905880aec24da8cdc62d0d8978b91d78307b570b
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 13 Feb 2020 15:05:51 +0000 (13 16:05 +0100)
committerSzilárd Páll <pall.szilard@gmail.com>
Fri, 13 Mar 2020 11:42:34 +0000 (13 12:42 +0100)
treef5658cd3a9aa79dff127991aed6aca97125d0f51
parent99c4197e24caf1e7d58d79553c59387936057cde
Combine initialization routines for GPUs assigned to PME and Nonbonded

The subroutines that do the initialization share a lot of logic. Also,
the current setup does not allow to have more than one GPU assigned to
a single rank. This make it natural to keep one handle to the GPU
device, if there is a GPU assigned to the rank.

Change-Id: I9177e1a6c00cf6efa7b58370b8fa6220c8fd4496
src/gromacs/mdrun/runner.cpp
src/gromacs/taskassignment/taskassignment.cpp
src/gromacs/taskassignment/taskassignment.h