Merge branch 'release-4-6'
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 2 Dec 2013 15:01:51 +0000 (16:01 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 2 Dec 2013 15:01:51 +0000 (16:01 +0100)
Conflicts:
src/gromacs/legacyheaders/topsort.h
Resolved in favour of comment change in release-4-6

Change-Id: Ib930277635cdd260c136ab9b3e02809682587252

admin/installguide/installguide.tex
src/gromacs/gmxlib/gpu_utils/gpu_utils.cu
src/gromacs/gmxlib/topsort.c
src/gromacs/legacyheaders/topsort.h
src/gromacs/mdlib/domdec.c
src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn_outer.h
src/programs/mdrun/runner.c

index ebac30512233d004dd2baf602adf928f1a82335c..91d4b1dd8a170c76a002fd6c9c80b12e1ba28be7 100644 (file)
@@ -535,7 +535,7 @@ will generally speed things up by quite a bit.
 \subsection{Installing \gromacs{}}
 
 Finally, \verb+make install+ will install \gromacs{} in the
-directory given in \verb+GMX_INSTALL_PREFIX+. If this is an system
+directory given in \verb+CMAKE_INSTALL_PREFIX+. If this is an system
 directory, then you will need permission to write there, and you
 should use super-user privileges only for \verb+make install+ and
 not the whole procedure.
index dcb701f4ac31731c8bd25e33e0fca3441ca56049..eb3e7dd7813f227af57b597337265613e43edf23 100644 (file)
@@ -857,10 +857,7 @@ int get_gpu_device_id(const gmx_gpu_info_t *gpu_info,
 {
     assert(gpu_info);
     assert(gpu_opt);
-    if (idx < 0 && idx >= gpu_opt->ncuda_dev_use)
-    {
-        return -1;
-    }
+    assert(idx >= 0 && idx < gpu_opt->ncuda_dev_use);
 
     return gpu_info->cuda_dev[gpu_opt->cuda_dev_use[idx]].id;
 }
index 07858aaafbf6259427fc5ddce5c2353a45e5fcd6..c6c976ed5d74242bbeddb172f57beb63cd0f8d1f 100644 (file)
@@ -189,7 +189,7 @@ gmx_bool gmx_mtop_bondeds_free_energy(const gmx_mtop_t *mtop)
         }
     }
 
-    return (bPert ? ilsortFE_UNSORTED : ilsortNO_FE);
+    return bPert;
 }
 
 void gmx_sort_ilist_fe(t_idef *idef, const real *qA, const real *qB)
index 6179b34150193f7200c9cfc3359e798f1c4ddd4d..649e4b7b14ec91c2f8a00530ce593d673987edd6 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 #endif
 
 
-/* Returns if the are bonded interactions for free energy calculations */
+/* Returns if there are perturbed bonded interactions */
 gmx_bool gmx_mtop_bondeds_free_energy(const gmx_mtop_t *mtop);
 
 /* Sort all the bonded ilists in idef to have the perturbed ones at the end
index 0e58da49b30a2bd92b53aed199f876352733b2fb..886bbcf813d3be36a9f4d7a36f95f68b014a22db 100644 (file)
@@ -5676,7 +5676,7 @@ void dd_setup_dlb_resource_sharing(t_commrec           gmx_unused *cr,
 
     physicalnode_id_hash = gmx_physicalnode_id_hash();
 
-    gpu_id = get_gpu_device_id(&hwinfo->gpu_info, &hw_opt->gpu_opt, cr->nodeid);
+    gpu_id = get_gpu_device_id(&hwinfo->gpu_info, &hw_opt->gpu_opt, cr->rank_pp_intranode);
 
     dd = cr->dd;
 
index b7e6ac8786444c1f2ebd84a20b56c403f15b02d5..9e22d6c653a30ef462f69325f5ab917f80f13d04 100644 (file)
     const real *tab_coul_V;
 #endif
     /* Thread-local working buffers for force and potential lookups */
-    int        ti0_array[2*GMX_SIMD_WIDTH_HERE-1], *ti0 = NULL;
-    int        ti1_array[2*GMX_SIMD_WIDTH_HERE-1], *ti1 = NULL;
-    int        ti2_array[2*GMX_SIMD_WIDTH_HERE-1], *ti2 = NULL;
-    int        ti3_array[2*GMX_SIMD_WIDTH_HERE-1], *ti3 = NULL;
+    int         ti0_array[2*GMX_SIMD_WIDTH_HERE], *ti0 = NULL;
+    int         ti1_array[2*GMX_SIMD_WIDTH_HERE], *ti1 = NULL;
+    int         ti2_array[2*GMX_SIMD_WIDTH_HERE], *ti2 = NULL;
+    int         ti3_array[2*GMX_SIMD_WIDTH_HERE], *ti3 = NULL;
 #ifdef CALC_ENERGIES
-    gmx_mm_pr  mhalfsp_S;
+    gmx_mm_pr   mhalfsp_S;
 #endif
 #endif
 
index f43fa0fb34cbb8ed8f304aa0190fdb53f1909190..6d0e85df592da48876de61975e5affb18f6dc79e 100644 (file)
@@ -1473,6 +1473,11 @@ int mdrunner(gmx_hw_opt_t *hw_opt,
         gmx_select_gpu_ids(fplog, cr, &hwinfo->gpu_info, bForceUseGPU,
                            &hw_opt->gpu_opt);
     }
+    else
+    {
+        /* Ignore (potentially) manually selected GPUs */
+        hw_opt->gpu_opt.ncuda_dev_use = 0;
+    }
 
     /* check consistency of CPU acceleration and number of GPUs selected */
     gmx_check_hw_runconf_consistency(fplog, hwinfo, cr, hw_opt, bUseGPU);