Merge branch release-2018 into master
[alexxy/gromacs.git] / src / gromacs / ewald / pme.cu
index 9f48b5bbc500c690732f98b9edabdaed9d0e6eca..bbc2bbaacc2e76b9abf2b4556377fa81bdfed4c7 100644 (file)
@@ -448,6 +448,8 @@ void pme_gpu_init_internal(PmeGpu *pmeGpu)
     // TODO: Consider turning on by default when we can detect nr of streams.
     pmeGpu->archSpecific->useTiming = (getenv("GMX_ENABLE_GPU_TIMING") != nullptr);
 
+    pmeGpu->maxGridWidthX = pmeGpu->deviceInfo->prop.maxGridSize[0];
+
     /* Creating a PME CUDA stream */
     cudaError_t stat;
     int         highest_priority, lowest_priority;