Gromacs 2018 does not compile on Windows with CUDA - Redmine #2509
Archive from user: Aleksei Iupinov
Per report on the user list:
C:/tools/GROMACS/gromacs-2018.1/src/gromacs/mdlib/nbnxn_cuda/nvnxn_cuda.cu(646): error: expression must be a modifiable lvalue.
The file nbnxn_cuda.cu in r2018 has 2 places like this:
#if (defined(WIN32) || defined( _WIN32 ))
/* Windows: force flushing WDDM queue */
stat = cudaStreamQuery(stream);
#endif
In one of those, stat stopped being declared as a local variable a while ago. This would have been caught half a year ago, if only we had a Windows + CUDA Jenkins config :-)
(from redmine: issue id 2509, created on 2018-05-22 by gmxdefault, closed on 2018-05-22)
- Changesets:
- Revision 52677c57 by Aleksei Iupinov on 2018-05-22T15:18:55Z:
Remove unused results of cudaStreamQuery()
Coincidentally fixes #2509 (Windows + CUDA compilation)
Change-Id: I032c5fab53bf83cf0ea8c0299d8752b10d1f6c0e