<div dir="ltr">Hi,<div><br></div><div>This list is for discussion of GROMACS development; please keep it that way. I will answer your question on gmx-users.<br><div class="gmail_extra"><br></div><div class="gmail_extra">Mark<br>
<br><div class="gmail_quote">On Wed, Mar 26, 2014 at 12:14 AM, xraynano <span dir="ltr">&lt;<a href="mailto:mancini@anl.gov" target="_blank">mancini@anl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We have had a similar problem as described below. We have tried various work<br>
arounds that force use of clang correctly with CUDA, or that try to<br>
substitute gcc47 for clang. Then, we can get everything to compile, but when<br>
trying to run anything in the final installation, it fails with the error:<br>
Malformed Mach-o file<br></blockquote><div>&gt;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One would think someone by now would have figured out how to get the GPU<br>
version of GROMACS to properly compile for current Mac OSX. We are running<br>
10.9.2 on a 12 core with Geforce 680 GPU.<br>
<br>
<br>
salehi wrote<br>
&gt; I was trying to install gromacs 4.6.1 with CUDA and have a weird problem.<br>
&gt; My system is as the following<br>
&gt; new iMAC OS x 10.8.3<br>
&gt; GPU : FTX 650 M 512 MB<br>
&gt; I also installed the open-mpi libraries into the /usr/local/lib folder<br>
&gt; before installation. I have got to say I&#39;m by no means a UNIX expert.<br>
&gt; although I have installed gromacs 4.6.1 with float double and mpi options<br>
&gt; but they were all without GPU options. SO when I started installing 4.6.1<br>
&gt; version with GPU I ran into problems. So I figured it has got to have sth<br>
&gt; to do with the GPU! I don&#39;t know what environment variables I needed have<br>
&gt; changed before installation with CMAKE, So I would appreciate it if the<br>
&gt; experts here help me out.<br>
&gt;<br>
&gt; Firstly, I have installed FFTW3.3.3 with these options:<br>
&gt;<br>
&gt; ./configure --prefix /usr/local/fftw3 --enable-sse2 --enable-float<br>
&gt; --enable-shared<br>
&gt; make &amp;&amp; make install<br>
&gt;<br>
&gt; so the fftw3 installation folder is /usr/local/fftw3.<br>
&gt; my cuda source directory is located at :  /usr/local/cuda<br>
&gt; and for the cmake options to install the gromacs.Then,<br>
&gt; in the build folder within the gromacs root folder<br>
&gt; cmake -DGMX_FFT_LIBRARY=fftw3<br>
&gt; -DFFTW_LIBRARY=&#39;/usr/local/fftw3/lib/libfftw3f.a&#39;<br>
&gt; -DFFTW_INCLUDE_DIR=&#39;/usr/local/fftw3/include/&#39; -DGMX_GPU=ON<br>
&gt; -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda<br>
&gt; -DCMAKE_INSTALL_PREFIX=/usr/local/gromacs-4.6.1 ../<br>
&gt;<br>
&gt; First of all I get the error which says the libfftw3f can not be found.<br>
&gt; The following is my fftw3 installation folder :<br>
&gt; drwxr-xr-x  3 root      102 26 Apr 22:04 pkgconfig<br>
&gt; -rwxr-xr-x  1 root      899 26 Apr 22:04 <a href="http://libfftw3f.la" target="_blank">libfftw3f.la</a><br>
&gt; -rw-r--r--  1 root  2421656 26 Apr 22:04 libfftw3f.a<br>
&gt;<br>
&gt; As you can see the file libfftw3f.a is in the folder I have netered in the<br>
&gt; cmake options. I don&#39;t know if there is any CMAKE variables I needed have<br>
&gt; changed here, So I worked around that  by copying the contents of the<br>
&gt; fftw3/lib folder to the usr/local/lib and since cmake looked into that<br>
&gt; folder it found the fftw file and thus ignored my manual addresses for<br>
&gt; fftw library. This time, the cmake command with the same options as above<br>
&gt; ran successfully. However when I run the make I get:<br>
&gt; sudo make<br>
&gt;<br>
&gt; [  0%] Building NVCC (Device) object<br>
&gt; src/gmxlib/gpu_utils/CMakeFiles/gpu_utils.dir//./gpu_utils_generated_memtestG80_core.cu.o<br>
&gt; clang: error: unsupported option &#39;-dumpspecs&#39;<br>
&gt; clang: error: no input files<br>
&gt; CMake Error at gpu_utils_generated_memtestG80_core.cu.o.cmake:206<br>
&gt; (message):<br>
&gt;   Error generating<br>
&gt;<br>
&gt; /Users/salehi/Downloads/gromacs-4.6.1/build/src/gmxlib/gpu_utils/CMakeFiles/gpu_utils.dir//./gpu_utils_generated_memtestG80_core.cu.o<br>
&gt;<br>
&gt;<br>
&gt; make[2]: ***<br>
&gt; [src/gmxlib/gpu_utils/CMakeFiles/gpu_utils.dir/./gpu_utils_generated_memtestG80_core.cu.o]<br>
&gt; Error 1<br>
&gt; make[1]: *** [src/gmxlib/gpu_utils/CMakeFiles/gpu_utils.dir/all] Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt;<br>
&gt; I don&#39;t know if there is anything wrong with the installation of CUDA but<br>
&gt; I could confirm that all the files that needed be there were there after<br>
&gt; following CUDA&#39;s own web site.<br>
&gt; Thank you so much in advance.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gromacs.5086.x6.nabble.com/Problem-in-compiling-Gromacs-4-6-1-with-GPU-on-MAC-OS-X-tp5008204p5015382.html" target="_blank">http://gromacs.5086.x6.nabble.com/Problem-in-compiling-Gromacs-4-6-1-with-GPU-on-MAC-OS-X-tp5008204p5015382.html</a><br>

Sent from the GROMACS Developers Forum mailing list archive at Nabble.com.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>

</font></span></blockquote></div><br></div></div></div>