<div dir="ltr">Hello Ole, Christiane,<br><br>I tried it again after Ole's patch, and I got it to compile after minor changes [1]. Upon running, I get:<br><br>$ ./cp2k.popt<br><br> ERROR: At least one command line argument must be specified<br><br>Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.<br><br>Backtrace for this error:<br>#0  0x7FBF63E31407<br>#1  0x7FBF63E31A1E<br>#2  0x7FBF6333D17F<br>#3  0x1C4770E in hw_topology_init at ma_hwloc.c:161<br>#4  0x1C38AF8 in __machine_architecture_MOD_ma_init_machine at machine_architecture.F:558<br>#5  0xA1E0D1 in __cp_ma_interface_MOD_cp_ma_init_lib at cp_ma_interface.F:872<br>#6  0x783DDE in __f77_interface_MOD_init_cp2k at f77_interface.F:289<br>#7  0x408E4A in cp2k at cp2k.F:225<br>Floating point exception<br><br>I will take a look what is going on later today to see if this is just an issue on my side or a bug somewhere. Thanks for your help.<br><br>Regards,<br>Vedran<br><br>[1] https://bitbucket.org/infuniri/cp2k-doc-fixes/commits/64d9b6cf75a057fe9e1cd55325112900036b7655<br><br>Dana četvrtak, 6. studenoga 2014. 15:23:21 UTC+1, korisnik Ole Schütt napisao je:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><pre>Hi Vedran,

the compilation problems are cause by missing USE-statements. I just committed a fix to svn.
Btw, the HWTOPO flag got removed from the Makefile. Things should work without it.

-Ole
</pre><br>On Thursday, November 6, 2014 11:48:25 AM UTC+1, Vedran Miletić wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Christiane,<br><br>thank you for your response. I tried this approach, but unfortunately I get the same error. Do you have any other idea I can try?<br><br>Regards,<br>Vedran<br><br>Dana srijeda, 5. studenoga 2014. 08:03:03 UTC+1, korisnik Christiane Pousa Ribeiro napisao je:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Vedran,<div><br></div><div>Could you please add the line bellow to your arch file and give a try?</div><div><br></div><div>HWTOPO   = yes<br></div><div><br></div><div>You should include too the -I/usr/include/hwloc.</div><div><br></div><div>Best regards, </div><div><br></div><div><br></div></div><div><br><div class="gmail_quote">On Tue, Nov 4, 2014 at 10:34 PM, Vedran Miletić <span dir="ltr"><<a>riv...@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>I'm trying to compile CP2K with hwloc support enabled. I'm using Debian testing with gfortran 4.9. My arch file is:<br><br>CC       = mpicc<br>CPP      =<br>FC       = mpif90<br>LD       = gfortran<br>AR       = ar -r<br><br>DFLAGS   = -D__GFORTRAN -D__parallel -D__HWLOC -D__FFTSG -D__FFTW3 -D__LIBINT -D__LIBXC2 -D__BLACS -D__SCALAPACK -D__ELPA<br>CPPFLAGS = -C -traditional $(DFLAGS)<br>FCFLAGS  = -g -Wall -O3 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -ffree-line-length-none $(DFLAGS) -I/usr/include/elpa/modules<br>LDFLAGS  = $(FCFLAGS) <br>LIBS     = -llapack -lblas -lfftw3 -lint -lderiv -lxc -lhwloc -lmpi -lmpif90 -lmpif77 -lblacsCinit-openmpi -lblacs-openmpi -lscalapack-openmpi -lelpa<br><br>Upon compiling, I get:<br><br>     cardId = ma_get_netDev(my_info%core, my_info%mp_info%myproc)<br>              1<br>Error: Function 'ma_get_netdev' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>1041.8:<br><br>   IF ( ma_get_nnetDev(node) .GT. 0 ) THEN<br>        1<br>Error: Function 'ma_get_nnetdev' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>1044.12:<br><br>     node = ma_get_node_netDev()<br>            1<br>Error: Function 'ma_get_node_netdev' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>937.39:<br><br>  my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>         1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>744.14:<br><br>    my_node = ma_get_core_node(my_core)<br>              1<br>Error: Function 'ma_get_core_node' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>693.41:<br><br>    my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>           1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>628.41:<br><br>    my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>           1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>mpif90 -c -g -Wall -O3 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -ffree-line-length-none -D__GFORTRAN -D__parallel -D__HWLOC -D__FFTSG -D__FFTW3 -D__LIBINT -D__LIBXC2 -D__BLACS -D__SCALAPACK -D__ELPA -I/usr/lib/openmpi/include/<wbr>openmpi/opal/mca/hwloc/ -I/usr/include/elpa/modules -D__COMPILE_ARCH="\"Linux-x86-<wbr>64-debian-gfortran\"" -D__COMPILE_DATE="\"Uto Stu  4 22:28:09 CET 2014\"" -D__COMPILE_HOST="\"akston\"" -D__COMPILE_REVISION="\"git:<wbr>eb7b195\"" -D__SHORT_FILE__="\"cp_files.<wbr>F\"" /home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/common/cp_files.F <br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>528.38:<br><br>    my_info%threads_info(id+1)%<wbr>node = ma_get_core_node(core)<br>                              <wbr>        1<br>Error: Function 'ma_get_core_node' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>530.41:<br><br>    my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>           1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>454.41:<br><br>    my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>           1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>376.41:<br><br>    my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>           1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>316.39:<br><br>  my_info%threads_info(id+1)%id_<wbr>real = ma_get_thread_id()<br>                              <wbr>         1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.<wbr>git/cp2k/src/ma/ma_affinity.F:<wbr>321.33:<br><br>  my_info%threads_info(1)%node = ma_get_core_node(core)<br>                              <wbr>   1<br>Error: Function 'ma_get_core_node' at (1) has no IMPLICIT type<br><br>I tried adding -I/usr/include/hwloc and -I/usr/lib/openmpi/include/<wbr>openmpi/opal/mca/hwloc but it made no change. Any ideas?<br><br>Regards,<br>Vedran Miletić<span><font color="#888888"><br></font></span></div><span><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a>cp2k+...@googlegroups.com</a>.<br>
To post to this group, send email to <a>cp...@googlegroups.com</a>.<br>
Visit this group at <a href="http://groups.google.com/group/cp2k" target="_blank" onmousedown="this.href='http://groups.google.com/group/cp2k';return true;" onclick="this.href='http://groups.google.com/group/cp2k';return true;">http://groups.google.com/<wbr>group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>[]'s<br>Christiane Pousa Ribeiro<br> <br>"Judge a man by his questions, rather than by his answers" </div>
</div>
</blockquote></div></blockquote></div></blockquote></div>