Merge branch release-2019 into release-2020
[alexxy/gromacs.git] / src / gromacs / hardware / gpu_hw_info.h
index 471eeb81e2e7160c3b185d39b3909099cc703a2c..a8b3144ee5b32f88c52a24a30d4e8eda8f7fb569 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013,2014,2015,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2017,2018,2019,2020, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -43,7 +43,10 @@ struct gmx_device_info_t;
  *
  * The egpuInsane value means that during the sanity checks an error
  * occurred that indicates malfunctioning of the device, driver, or
- * incompatible driver/runtime. */
+ * incompatible driver/runtime.
+ * eGpuUnavailable indicates that CUDA devices are busy or unavailable
+ * typically due to use of cudaComputeModeExclusive, cudaComputeModeProhibited modes.
+ */
 typedef enum
 {
     egpuCompatible = 0,
@@ -51,6 +54,7 @@ typedef enum
     egpuIncompatible,
     egpuIncompatibleClusterSize,
     egpuInsane,
+    egpuUnavailable,
     egpuNR
 } e_gpu_detect_res_t;