Use device information object instead of id when performing device checks
commit2dc4ea2f362b6338008895f5525525c8bff7a33b
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 10 Sep 2020 10:27:03 +0000 (10 10:27 +0000)
committerArtem Zhmurov <zhmurov@gmail.com>
Thu, 10 Sep 2020 10:27:03 +0000 (10 10:27 +0000)
tree15601006a39cba871db08950021b995e90d8348b
parentd78dc1330e586ebaf11da185f78c491ff9c384ec
Use device information object instead of id when performing device checks

Initializing plain object is dangerous, since it then can be used to set
active device, with default id. This change ensures that proper device
will be used, even if the high level device management is used in the
checks.
src/gromacs/hardware/device_management.cu
src/gromacs/hardware/device_management_ocl.cpp