Actually disable GPU when compiling in double
authorChristoph Junghans <junghans@votca.org>
Thu, 1 Nov 2012 03:40:51 +0000 (21:40 -0600)
committerChristoph Junghans <junghans@votca.org>
Thu, 1 Nov 2012 03:40:51 +0000 (21:40 -0600)
Change-Id: Iefb877f066c5f1b923bb7771323fedff9c1b85dc

CMakeLists.txt

index 3c4f212b23444e866047c095e71e592b4bd038da..3991799b36f13de1d4677259945c9886f02658ff 100644 (file)
@@ -537,6 +537,9 @@ if(GMX_GPU)
         message(WARNING "GPU acceleration is not available in double precision, disabled!")
         set(GMX_GPU OFF CACHE BOOL "Enable GPU acceleration" FORCE)
     endif()
+endif(GMX_GPU)
+
+if(GMX_GPU)
 
     # We support CUDA >=v3.2 on *nix, but <= v4.1 doesn't work with MSVC
     if(MSVC)