[gmx-users] Gromacs installation with GPU support in Windows 7
jiahong96 at hotmail.com
Wed May 30 03:28:12 CEST 2018
I've implemented the fix and I verified that it works on the command line; I've successfully complied the nvcc depend file.
Nonetheless, CMake still fails on compiling in that stage. Here is the error message in Visual studio 2015
CMake Error at libgromacs_generated_nbnxn_cuda.cu.obj.Release.cmake:223 (message):
If this is of any use, there's also an accompanying warning message appearing right before the error message I showed above:
Building NVCC (Device) object src/gromac/CMakeFiles/libgromacs.dir/mdlib/nbnxn_cuda/Release/libgromacs_generated_nbnxn_cuda.cu.obj
Syntax Warning in cmake code at column 28
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
The system specs I'm using:
* Windows 7
* VS 2015
* VS 2015 developer prompt to manually compile the file CMake was trying to compile
* CMake 3.11 GUI
* CUDA v9.1 - I've verified my CUDA installation with the provided build examples.
* Graphics card: GTX 1080
I do not know if CMake deals with whitespace paths, but when compiling manually, I had to make sure to add quotes around my cuda path and my --ccbin path because they are installed in directories with whitespaces.
Any help would be greatly appreciated.
From: gromacs.org_gmx-users-bounces at maillist.sys.kth.se <gromacs.org_gmx-users-bounces at maillist.sys.kth.se> on behalf of Aleksei Iupinov <a.yupinov at gmail.com>
Sent: Tuesday, May 22, 2018 4:59 PM
To: gmx-users at gromacs.org
Subject: Re: [gmx-users] Gromacs installation with GPU support in Windows 7
Thank you for the report. It seems to be a trivial error in the code,
It was not caught by the Gromacs automated testing since we don't have
Windows + CUDA configuration in it.
I have filed a bug report https://redmine.gromacs.org/issues/2509 and this
Bug #2509: Gromacs 2018 does not compile on Windows with CUDA - GROMACS - GROMACS development<https://redmine.gromacs.org/issues/2509>
will be fixed in Gromacs 2018.2.
Meanwhile you can easily fix it yourself.
The line 646 of your src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu looks like
stat = cudaStreamQuery(stream);
and you only have to remove the unused (and undeclared) "stat = " variable,
turning the line into:
Please don't hesitate to report if there are any more errors :-)
On Tue, May 22, 2018 at 3:26 AM, Jia Hong <jiahong96 at hotmail.com> wrote:
> Aim: Install Gromacs with GPU support in windows 7
> Problem: Build step failed in Visual Studio 14 2015, using CMake 3.11 GUI
> in Windows
> Identified "issues":
> 1. First off, NVIDIA named their default CUDA installation directory in
> a space separated directory. This caused much grief when CMake complains
> that "Check for working NVCC/C compiler combination - broken" and "CUDA
> compiler does not seem to be functional".
> * The solution was to surround the path with quotes in
> 2. Visual Studio fails to compile libgromacs (VS complains that it
> could not find ../../lib/gromacs.lib
> With regards to (2.), CMake completed the generation of VS build files
> without errors and I tried building it using VS 14 2015 (as specified in my
> CMake generation tool). The steps I took:
> 1. set the build type to Release
> 2. click build all
> I also tried compiling Gromacs with the exact same steps, but without GPU
> support, and it went without a hitch.
> I therefore suspect that it might be that "path issue" I faced earlier
> (1.), so I tried identifying the first error in VS build and it lead me to
> I copied the commands as-is within the makefile and tried to compile it in
> VS developer command prompt myself.
> The error I got was:
> error: expression must be a modifiable lvalue.
> My suspicion is that:
> 1. The error "might" be because of a path problem ? (like before)
> 2. nvnxn_cuda.cu at line 646 has a syntax error. (maybe)
> Any help would be greatly appreciated.
> Gromacs Users mailing list
> * Please search the archive at http://www.gromacs.org/
> Support/Mailing_Lists/GMX-Users_List before posting!
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> send a mail to gmx-users-request at gromacs.org.
Gromacs Users mailing list
* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a mail to gmx-users-request at gromacs.org.
More information about the gromacs.org_gmx-users