<div dir="ltr"><div>After further research, I don't think it's possible to compile with CUDA under Cygwin. Can anyone confirm?</div><div><br></div><div>My understanding is that the Windows CUDA compiler nvcc MUST use the Microsoft c++ compiler (cl.exe) (see <a href="https://developer.download.nvidia.com/compute/cuda/10.0/Prod/docs/sidebar/CUDA_Installation_Guide_Windows.pdf">installation guide</a>) and there is no support for gcc. My understanding is also that parts of the cp2k build system require gcc and it would not be easy to port them to cl.exe.<br></div><div><br></div><div>Instead, I want to try cross-compiling cp2k in a linux environment (Ubuntu WSL) using MinGW64. Has anyone tried this before, or is anyone aware of any reasons why this shouldn't work? <br></div><div><br></div><div>Thanks!<br></div><div><br></div><br>On Tuesday, March 17, 2020 at 1:46:00 PM UTC-7, Ryan Kingsbury wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Thank you! Removing the -ffast-math flag, I was able to compile both serial and parallel (.sopt and .ssmp) versions on Windows 10 via Cygwin. The next step is to add CUDA support.<br><br>On Tuesday, March 17, 2020 at 4:01:52 AM UTC-7, brhr wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><br></div></blockquote></div></blockquote><div><br></div><div><div>Dear Ryan,</div><div>The -ffast-math flag is no longer supported for recent versions as you can see.<br>I've removed the flag from <a href="https://github.com/brhr-iwao/CP2K_for_Windows/blob/master/Cygwin-i686-gfortran-FFTW3-LIBINT2-SIRIUS.sopt" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fbrhr-iwao%2FCP2K_for_Windows%2Fblob%2Fmaster%2FCygwin-i686-gfortran-FFTW3-LIBINT2-SIRIUS.sopt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGjqVk2ISrMtfmqtlMFlYmsFccvgg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fbrhr-iwao%2FCP2K_for_Windows%2Fblob%2Fmaster%2FCygwin-i686-gfortran-FFTW3-LIBINT2-SIRIUS.sopt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGjqVk2ISrMtfmqtlMFlYmsFccvgg';return true;">a arch file</a> for recent versions of cp2k, as shown in my <a href="https://github.com/brhr-iwao/CP2K_for_Windows" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fbrhr-iwao%2FCP2K_for_Windows\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGma9D4nTWoR5ZXb4Q_r8eI8ilvHA';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fbrhr-iwao%2FCP2K_for_Windows\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGma9D4nTWoR5ZXb4Q_r8eI8ilvHA';return true;">github</a>.</div><div>It also should be removed from the <a href="https://www.cp2k.org/howto:compile_on_windows_with_cygwin#compilation_with_cygwin" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fhowto%3Acompile_on_windows_with_cygwin%23compilation_with_cygwin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNgv_AUrrwWLjJ7jnt6KFm1-5DKw';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fhowto%3Acompile_on_windows_with_cygwin%23compilation_with_cygwin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNgv_AUrrwWLjJ7jnt6KFm1-5DKw';return true;">example</a> arch in cp2k HOWTOs...</div><div>Regards,</div><div>Aoyama Iwao </div></div></div></blockquote></div></blockquote></div>