Fix free_gpu
commit315f6f8346b0dc5a7701081cfd3a4f16de3d3193
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 Dec 2017 10:56:46 +0000 (4 21:56 +1100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 Dec 2017 12:37:20 +0000 (4 13:37 +0100)
treee8e7fe88b317481173c4ef4de3e4540f3b46d7dc
parent6306be93d5eae9805419d51b212896bfa6ad4907
Fix free_gpu

If a device context was not used, CUDA gives an error if we attempt to
clear it, so we must avoid clearing it.

Refs #2322

Change-Id: I67b8b2d263eaed9c7489a6de6f612b27496cc6c2
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils.h