# Test newest gcc supported by newest CUDA at time of release
# Test thread-MPI with CUDA
- gcc-5 gpu cuda-8.0 openmp release
-gcc-4.8 gpu cuda-7.5 openmp release
++# Test SIMD (AVX2_256) GPU code-path
++gcc-5 gpu cuda-8.0 openmp release simd=avx2_256
-# Test with ThreadSanitizer
+# Test with ThreadSanitizer (without OpenMP, because of Redmine #1850)
# Test AVX2_256 SIMD
# Test fftpack fallback
gcc-4.9 tsan fftpack simd=avx2_256
# assemble the CUDA flags
list(APPEND GMX_CUDA_NVCC_FLAGS "${GMX_CUDA_NVCC_GENCODE_FLAGS}")
list(APPEND GMX_CUDA_NVCC_FLAGS "-use_fast_math")
+ if (CUDA_VERSION VERSION_EQUAL "8.0")
+ # requesting sm_20 triggers deprecation messages with nvcc 8.0 which we better avoid
+ list(APPEND GMX_CUDA_NVCC_FLAGS "-Wno-deprecated-gpu-targets")
+ endif()
# assemble the CUDA host compiler flags
-# with CMake <2.8.10 the host compiler needs to be set on the nvcc command line
-if (CMAKE_VERSION VERSION_LESS "2.8.10")
- list(APPEND GMX_CUDA_NVCC_FLAGS "-ccbin=${CUDA_HOST_COMPILER}")
-endif()
list(APPEND GMX_CUDA_NVCC_FLAGS "${CUDA_HOST_COMPILER_OPTIONS}")
# The flags are set as local variables which shadow the cache variables. The cache variables
continue;
}
- pcrd->f_scal = dr_tot[c]/((pull->group[pcrd->params.group[0]].invtm + pull->group[pcrd->params.group[1]].invtm)*dt*dt);
+ /* Accumulate the forces, in case we have multiple constraint steps */
+ pcrd->f_scal += dr_tot[c]/((pull->group[pcrd->params.group[0]].invtm + pull->group[pcrd->params.group[1]].invtm)*dt*dt);
- if (vir != NULL && pcrd->params.eGeom != epullgDIRPBC && bMaster)
+ if (vir != nullptr && pcrd->params.eGeom != epullgDIRPBC && bMaster)
{
double f_invr;
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014,2015,2016, by the GROMACS development team, led by
- * Copyright (c) 2014,2015,2017, by the GROMACS development team, led by
++ * Copyright (c) 2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.