We have followed the instructions of the given link but found the following problem:<div><br></div><div>NO COMPILATION due to undefined reference to "<span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 21px;">cuda_d_gemm"</span></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">We are using CUDA Version 5.0.</span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">Removing </span></font>"<span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 21px;">cuda_d_gemm" we are able to compile, obtaining a speedup of 150% in the test with 128 water molecules with respect to no GPU usage.</span></div><div><span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 21px;">Is it possible to get better results improving the compilation options?</span></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">Moreover, we have some concern regarding the usage of both flags:</span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"> "__CUDAPW and __FFTSGL" </span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">together with " __CUBLASDP".</span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">In the README of CP2K/cuda_tools it seems that first couple of flags should be used instead of </span></font><span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.555556297302246px; line-height: 21px;"> " __CUBLASDP".</span></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">Any advice is mostly welcome. We are moving our first steps in the usage of CUDA.</span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">Thanks a lot!</span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;">Marco and Andrea</span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px; line-height: 21px;"><br></span></font></div><div><br>Il giorno sabato 1 dicembre 2012 00:16:56 UTC+1, mirix ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">I hope that this how-to will save some time to people willing to build CP2K with GNU compilers:<br><br><a href="http://prosciens.com/logbook/2012/11/30/notes-on-building-parallel-and-cuda-enabled-cp2k-in-a-linux-box-with-gnu-compilers/" target="_blank">http://prosciens.com/logbook/<wbr>2012/11/30/notes-on-building-<wbr>parallel-and-cuda-enabled-<wbr>cp2k-in-a-linux-box-with-gnu-<wbr>compilers/</a><br><br></blockquote></div>