Yes there is a fftw3.pc file. I completely removed any fftw3 module from Fedora repositories, I set -DPKG_CONFIG_PATH to my home installation, but still got an error:<br><br>$cmake ../gromacs -DGMX_ACCELERATION=SSE2 -DPKG_CONFIG_PATH=/home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib/pkgconfig<br>
-- Performing Test GNU_SSE2_CFLAG<br>-- Performing Test GNU_SSE2_CFLAG - Success<br>-- Performing Test GNU_SSE2_CXXFLAG<br>-- Performing Test GNU_SSE2_CXXFLAG - Success<br>-- Looking for emmintrin.h<br>-- Looking for emmintrin.h - found<br>
-- Enabling SSE2 Gromacs acceleration, and it will help compiler optimization.<br>-- Found PkgConfig: /usr/bin/pkg-config (found version &quot;0.25&quot;) <br>-- checking for module &#39;fftw3f&#39;<br>--   package &#39;fftw3f&#39; not found<br>
Could not find fftw3f library named libfftw3f, please specify its location in FFTW_LIBRARY by hand (e.g. -DFFTW_LIBRARY=&#39;/path/to/libfftw3f.so&#39;)<br>CMake Error at CMakeLists.txt:863 (MESSAGE):<br>  Cannot find FFTW3 (with correct precision - libfftw3f for single precision<br>
  GROMACS or libfftw3 for double precision GROMACS).  Fix it, choose another<br>  FFT library, or use the Gromacs built-in fftpack (slower)!<br><br><br>It complaints again about that libfftw3f.so file. It also yields an error if I define the other two variables you said:<br>
<br>$ cmake ../gromacs -DGMX_ACCELERATION=SSE2 -DPKG_CONFIG_PATH=&#39;/home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib/pkgconfig&#39;  -DFFTW_LIBRARY=&#39;/home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib&#39; -DFFTW_INCLUDE_DIR=&#39;/home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/include&#39;<br>
........<br>........<br>-- checking for module &#39;fftw3f&#39;<br>--   package &#39;fftw3f&#39; not found<br>-- Looking for fftwf_plan_r2r_1d in /home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib<br>WARNING: Target &quot;cmTryCompileExec3758432358&quot; requests linking to directory &quot;/home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib&quot;.  Targets may link only to libraries.  CMake is dropping the item.<br>
-- Looking for fftwf_plan_r2r_1d in /home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib - not found<br>CMake Error at cmake/FindFFTW.cmake:87 (message):<br>  Could not find fftwf_plan_r2r_1d in<br>  /home/thomas/Programs/fftw-3.3.2/single_precision_installation_dir/lib,<br>
  take a look at the error message in<br>  /home/thomas/Programs/gromacs_cuda_build/CMakeFiles/CMakeError.log to find<br>  out what went wrong.  If you are using a static lib (.a) make sure you have<br>  specified all dependencies of fftw3f in FFTW_LIBRARY by hand (e.g.<br>
  -DFFTW_LIBRARY=&#39;/path/to/libfftw3f.so;/path/to/libm.so&#39;) !<br>Call Stack (most recent call first):<br>  CMakeLists.txt:860 (find_package)<br><br><br><br>Finally I installed all fftw3 modules from Fedora repository and this is the output I get:<br>
<br><br>$ cmake ../gromacs -DGMX_ACCELERATION=SSE2 -DFFTW_LIBRARY=&#39;/usr/lib64/libfftw3f.so.3&#39; -DFFTW_INCLUDE_DIR=&#39;/usr/include&#39;<br>.........<br>-- checking for module &#39;fftw3f&#39;<br>--   package &#39;fftw3f&#39; not found<br>
-- Looking for fftwf_plan_r2r_1d in /usr/lib64/libfftw3f.so.3<br>-- Looking for fftwf_plan_r2r_1d in /usr/lib64/libfftw3f.so.3 - found<br>-- Looking for fftwf_have_simd_sse2 in /usr/lib64/libfftw3f.so.3<br>-- Looking for fftwf_have_simd_sse2 in /usr/lib64/libfftw3f.so.3 - not found<br>
-- Looking for fftw_have_simd_sse2 in /usr/lib64/libfftw3f.so.3<br>-- Looking for fftw_have_simd_sse2 in /usr/lib64/libfftw3f.so.3 - not found<br>-- Looking for fftwf_have_sse in /usr/lib64/libfftw3f.so.3<br>-- Looking for fftwf_have_sse in /usr/lib64/libfftw3f.so.3 - not found<br>
-- Looking for fftw_have_sse2 in /usr/lib64/libfftw3f.so.3<br>-- Looking for fftw_have_sse2 in /usr/lib64/libfftw3f.so.3 - not found<br>-- Using internal BLAS library<br>-- LAPACK requires BLAS<br>-- Using internal LAPACK library<br>
-- Checking for dlopen<br>-- Performing Test HAVE_DLOPEN<br>-- Performing Test HAVE_DLOPEN - Success<br>-- Checking for dlopen - found<br>-- Found the ability to use plug-ins when building shared libaries, so will compile to use plug-ins (e.g. to read VMD-supported file formats).<br>
-- Checking for suitable VMD version<br>-- VMD plugins not found. Path to VMD can be set with VMDDIR.<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/thomas/Programs/gromacs_cuda_build<br>
<br><br>$ make mdrun<br>[  0%] Building NVCC (Device) object src/mdlib/nbnxn_cuda/CMakeFiles/nbnxn_cuda.dir//./nbnxn_cuda_generated_nbnxn_cuda_data_mgmt.cu.o<br>cc1plus: error: unrecognized command line option &quot;-fexcess-precision=fast&quot;<br>
CMake Error at nbnxn_cuda_generated_nbnxn_cuda_data_mgmt.cu.o.cmake:198 (message):<br>  Error generating<br>  /home/thomas/Programs/gromacs_cuda_build/src/mdlib/nbnxn_cuda/CMakeFiles/nbnxn_cuda.dir//./nbnxn_cuda_generated_nbnxn_cuda_data_mgmt.cu.o<br>
<br><br>make[3]: *** [src/mdlib/nbnxn_cuda/CMakeFiles/nbnxn_cuda.dir/./nbnxn_cuda_generated_nbnxn_cuda_data_mgmt.cu.o] Error 1<br>make[2]: *** [src/mdlib/nbnxn_cuda/CMakeFiles/nbnxn_cuda.dir/all] Error 2<br>make[1]: *** [src/kernel/CMakeFiles/mdrun.dir/rule] Error 2<br>
make: *** [mdrun] Error 2<br><br><br><br><div class="gmail_quote">On 24 August 2012 22:16, Christoph Junghans <span dir="ltr">&lt;<a href="mailto:junghans@votca.org" target="_blank">junghans@votca.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/8/24 Thomas Evangelidis &lt;<a href="mailto:tevang3@gmail.com">tevang3@gmail.com</a>&gt;:<br>
<div><div class="h5">&gt;<br>
&gt;<br>
&gt;&gt; &gt;&gt; If you could provide us more information of why your gcc doesn&#39;t<br>
&gt;&gt; &gt;&gt; understand -mavx that would be useful. Is gcc really 4.7 as cmake<br>
&gt;&gt; &gt;&gt; prints?<br>
&gt;&gt; &gt;&gt; Gcc 4.7 should support 4.7 thus this is confusing. How did you obtain<br>
&gt;&gt; &gt;&gt; gcc?<br>
&gt;&gt; &gt;&gt; Is it from your distribution (if so which one) or did you download and<br>
&gt;&gt; &gt;&gt; compile gcc yourself? If so how?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Yes, its the precompiled gcc 4.7 from Fedora 17 86_64 repositories.<br>
&gt;&gt; That odd. Anyone has access to Fedora 17 and can try to reproduce<br>
&gt;&gt; this? It seems it would be really nice to have more distributions on<br>
&gt;&gt; Jenkins.<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Both command lines failed. cmake is looking for a file a library named<br>
&gt;&gt; &gt; &quot;libfftw3f&quot; which does not exist in my fftw installation. What configure<br>
&gt;&gt; &gt; options do you use to compile fftw?<br>
&gt;&gt; You probably compiled fftw without &quot;--enable-float&quot;. You can also use<br>
&gt;&gt; the fftw library without sse from before. It will work it just isn&#39;t<br>
&gt;&gt; won&#39;t be quite as fast.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Actually I did. This is the command line I used the last time:<br>
&gt;<br>
&gt; ./configure --enable-float --enable-threads<br>
&gt; --prefix=`pwd`/single_precision_installation_dir --enable-sse<br>
&gt;<br>
&gt; Here&#39;s the list of files in my fftw installation directory matching the<br>
&gt; pattern &quot;libfftw3f&quot;. I couldn&#39;t find any &quot;libfftw3f.so&quot; as the error says.<br>
&gt;<br>
&gt; $ find ../fftw-3.3.2/single_precision_installation_dir/ -wholename<br>
&gt; &quot;*libfftw3f*&quot;<br>
&gt; ../fftw-3.3.2/single_precision_installation_dir/lib/<a href="http://libfftw3f_threads.la" target="_blank">libfftw3f_threads.la</a><br>
&gt; ../fftw-3.3.2/single_precision_installation_dir/lib/<a href="http://libfftw3f.la" target="_blank">libfftw3f.la</a><br>
&gt; ../fftw-3.3.2/single_precision_installation_dir/lib/libfftw3f_threads.a<br>
&gt; ../fftw-3.3.2/single_precision_installation_dir/lib/libfftw3f.a<br>
</div></div>Is there a  fftw3f.pc in single_precision_installation_dir? If so, add<br>
&quot;/../../../fftw-3.3.2/single_precision_installation_dir/lib/pkgconfig&quot;<br>
to your PKG_CONFIG_PATH that will help pkg-config to find the custom<br>
installation.<br>
Otherwise you will have to set  FFTW_LIBRARY and FFTW_INCLUDE_DIR by<br>
hand. And never ever mix FFTW_LIBRARY and FFTW_INCLUDE_DIR of<br>
different fftw installations like your did above that will lead to all<br>
kind of strange errors.<br>
<br>
I would always use the system libfftw in the first attempt to compile.<br>
You may have to install Fedora&#39;s fftw-dev package as well.<br>
The error &quot;Your fftw3 seems to be compiled without SSE!&quot; only tells<br>
you that the performance is influence a bit.<br>
<br>
Btw. as far as I remember Gromacs only supports OpenMM version 2.0.<br>
(Other developers please correct me!)<br>
<br>
Christoph<br>
<div class="im HOEnZb"><br>
&gt; --<br>
&gt; gmx-developers mailing list<br>
&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt; www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
<br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
Christoph Junghans<br>
Web: <a href="http://www.compphys.de" target="_blank">http://www.compphys.de</a><br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>


        
        
        
        

<p style="margin-bottom:0cm" align="LEFT">======================================================================</p>
<p style="margin-bottom:0cm" align="LEFT">Thomas Evangelidis</p>
<p style="margin-bottom:0cm" align="LEFT">PhD student</p>
<p style="margin-bottom:0cm" align="LEFT">Biomedical Research
Foundation, Academy of Athens</p>
<p style="margin-bottom:0cm" align="LEFT">4 Soranou Ephessiou , 115 27
Athens, Greece<br><br>email: <a href="mailto:tevang@bioacademy.gr" target="_blank">tevang@bioacademy.gr</a></p>
<p style="margin-bottom:0cm" align="LEFT">                 <a href="mailto:tevang3@gmail.com" target="_blank">tevang3@gmail.com</a></p>
<p style="margin-bottom:0cm" align="LEFT"><br>website:
<a href="https://sites.google.com/site/thomasevangelidishomepage/" target="_blank">https://sites.google.com/site/thomasevangelidishomepage/</a></p>
<p style="margin-bottom:0cm" align="LEFT"><br>
</p>
<br>