Fix one error and compiler warnings with Cuda & clang-3.6
[alexxy/gromacs.git] / src / gromacs / legacyheaders / types / hw_info.h
index 51c3b9812f00ff650ef008d0075bd47804a131c3..e94d550b7d2e021ef27c0e6f1278c9b8ad74197f 100644 (file)
@@ -55,14 +55,11 @@ struct gmx_device_info_t;
  * incompatible driver/runtime. */
 typedef enum
 {
-    egpuCompatible = 0,  egpuNonexistent,  egpuIncompatible, egpuInsane
+    egpuCompatible = 0,  egpuNonexistent,  egpuIncompatible, egpuInsane, egpuNR
 } e_gpu_detect_res_t;
 
-/* Textual names of the GPU detection/check results (see e_gpu_detect_res_t). */
-static const char * const gpu_detect_res_str[] =
-{
-    "compatible", "inexistent", "incompatible", "insane"
-};
+/* Names of the GPU detection/check results */
+extern const char * const gpu_detect_res_str[egpuNR];
 
 /* GPU device information -- for now with only CUDA devices
  * The gmx_hardware_detect module initializes it. */