X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fmdlib%2Fnbnxn_search.c;h=3114bebc22b048559369dede69c9774cf4d8f21a;hb=62518a2c1c18a34bb2d4c67a2bdea58f1669d0f8;hp=dc0b02013f645ed2f44acb66c6509f23e5350cb5;hpb=971191d82b4868f520baf3ff77d0c7f09143d2bd;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/mdlib/nbnxn_search.c b/src/gromacs/mdlib/nbnxn_search.c index dc0b02013f..3114bebc22 100644 --- a/src/gromacs/mdlib/nbnxn_search.c +++ b/src/gromacs/mdlib/nbnxn_search.c @@ -1931,6 +1931,7 @@ void nbnxn_grid_add_simple(nbnxn_search_t nbs, float *bbcz; nbnxn_bb_t *bb; int ncd, sc; + int nthreads gmx_unused; grid = &nbs->grid[0]; @@ -1957,7 +1958,8 @@ void nbnxn_grid_add_simple(nbnxn_search_t nbs, bbcz = grid->bbcz_simple; bb = grid->bb_simple; -#pragma omp parallel for num_threads(gmx_omp_nthreads_get(emntPairsearch)) schedule(static) + nthreads = gmx_omp_nthreads_get(emntPairsearch); +#pragma omp parallel for num_threads(nthreads) schedule(static) for (sc = 0; sc < grid->nc; sc++) { int c, tx, na; @@ -4473,6 +4475,7 @@ static void combine_nblists(int nnbl, nbnxn_pairlist_t **nbl, { int nsci, ncj4, nexcl; int n, i; + int nthreads gmx_unused; if (nblc->bSimple) { @@ -4513,7 +4516,8 @@ static void combine_nblists(int nnbl, nbnxn_pairlist_t **nbl, /* Each thread should copy its own data to the combined arrays, * as otherwise data will go back and forth between different caches. */ -#pragma omp parallel for num_threads(gmx_omp_nthreads_get(emntPairsearch)) schedule(static) + nthreads = gmx_omp_nthreads_get(emntPairsearch); +#pragma omp parallel for num_threads(nthreads) schedule(static) for (n = 0; n < nnbl; n++) { int sci_offset;