<div>Hi Florent,</div><div> </div><div>you''ve read my mind! I've just tried that using gcc-4.8 and g++-4.8.</div><div> </div><div>the "cmake" step worked like before but "make" gave the exact same error.</div><div> </div><div>Does anyone know what the "Building NVCC" does? NVCC is the nvidia cuda compiler, maybe it was not found? I found this:</div><div> </div><div>CUDA codes runs on both the <a href="https://en.wikipedia.org/wiki/CPU" title="CPU">CPU</a> and <a href="https://en.wikipedia.org/wiki/GPU" title="GPU">GPU</a>. NVCC separates these two parts and sends host code (the part of code which will be run on the <a href="https://en.wikipedia.org/wiki/CPU" title="CPU">CPU</a>) to a <a href="https://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)">C</a> compiler like <a href="https://en.wikipedia.org/wiki/GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a> or <a href="https://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler" title="Intel C++ Compiler">Intel C++ Compiler</a> (ICC) or <a href="https://en.wikipedia.org/wiki/Microsoft_Visual_C" title="Microsoft Visual C">Microsoft Visual C</a> Compiler, and sends the device code (the part which will run on the GPU) to the GPU. The device code is further compiled by NVCC.</div><div> </div><div>Regards</div><div>Diogo</div><div> </div><div> </div><div>From: Florent Hédin &lt;<a href="http://gmane.org/get-address.php?address=work%2dMkgDr784jgzQT0dZR%2bAlfA%40public.gmane.org" target="_top">work@...</a>&gt;<br /> Subject: <a href="http://news.gmane.org/find-root.php?message_id=574DE14D.7020708%40fhedin.com" target="_top">Re: [gmx-users] Error while re-compiling Gromacs 5.1.2 with GPU and gcc 5.3.1</a><br /> Newsgroups: <a href="http://news.gmane.org/gmane.science.biology.gromacs.user" target="_top">gmane.science.biology.gromacs.user</a><br /> Date: 2016-05-31 19:09:01 GMT (44 minutes ago)<br /><pre>Hi,

As far as I know cuda 7.5 only supports branch 4.X of gcc, not 5.X ;

what about forcing the use of gcc-4.9:

CC=gcc-4.9 CXX=g++-4.9 cmake [OTHER FLAGS] ..

Regards,

Florent Hédin
</pre></div>