<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.git/cp2k/src/ma/ma_affinity.F: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.git/cp2k/src/ma/ma_affinity.F: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.git/cp2k/src/ma/ma_affinity.F:937.39:<br><br>  my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                       1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F: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.git/cp2k/src/ma/ma_affinity.F:693.41:<br><br>    my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                         1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:628.41:<br><br>    my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                         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/openmpi/opal/mca/hwloc/ -I/usr/include/elpa/modules -D__COMPILE_ARCH="\"Linux-x86-64-debian-gfortran\"" -D__COMPILE_DATE="\"Uto Stu  4 22:28:09 CET 2014\"" -D__COMPILE_HOST="\"akston\"" -D__COMPILE_REVISION="\"git:eb7b195\"" -D__SHORT_FILE__="\"cp_files.F\"" /home/vedranm/workspace/cp2k.git/cp2k/src/common/cp_files.F <br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:528.38:<br><br>    my_info%threads_info(id+1)%node = ma_get_core_node(core)<br>                                      1<br>Error: Function 'ma_get_core_node' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:530.41:<br><br>    my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                         1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:454.41:<br><br>    my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                         1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:376.41:<br><br>    my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                         1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:316.39:<br><br>  my_info%threads_info(id+1)%id_real = ma_get_thread_id()<br>                                       1<br>Error: Function 'ma_get_thread_id' at (1) has no IMPLICIT type<br>/home/vedranm/workspace/cp2k.git/cp2k/src/ma/ma_affinity.F:321.33:<br><br>  my_info%threads_info(1)%node = ma_get_core_node(core)<br>                                 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/openmpi/opal/mca/hwloc but it made no change. Any ideas?<br><br>Regards,<br>Vedran Miletić<br></div>