Avoid GPU selection with GPU emulation
authorBerk Hess <hess@kth.se>
Sun, 21 Jun 2015 06:17:21 +0000 (08:17 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 24 Jun 2015 15:46:34 +0000 (17:46 +0200)
Change-Id: Iee5949fa11419b0c1344edb6c85ab475baa77719

src/gromacs/gmxlib/gmx_detect_hardware.cpp

index 249ad4d3d6d975ac76dd1ae5013f31531a156044..711e83e6742579a6cb11d41b3c01e8fff8c89f38 100644 (file)
@@ -1138,7 +1138,7 @@ void gmx_select_gpu_ids(FILE *fplog, const t_commrec *cr,
 
         sfree(checkres);
     }
-    else
+    else if (getenv("GMX_EMULATE_GPU") == NULL)
     {
         pick_compatible_gpus(&hwinfo_g->gpu_info, gpu_opt);
         set_gpu_ids(gpu_opt, cr->nrank_pp_intranode, cr->rank_pp_intranode);