<div dir="ltr">I use ACML because i red that for using MKL ifort compiler is needed, and i don't have it.<br><br>Anyway I'm going to try ATLAS.<br><br>I'll tell you. Thank you<br><br>Rafa<br><br>El martes, 14 de febrero de 2017, 13:50:05 (UTC+1), sassy  escribió:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi Rafa,
<br>
<br>there are two things:
<br>
<br>a) why do you use ACML when you got an Intel CPU? ACML is for AMD Opterons and 
<br>I am not sure whether it makes sense to use a high performance BLAS library 
<br>which was tuned for a different chip family. 
<br>If you want to stay clear of proprietary BLAS libs I would suggest to use 
<br>OpenBLAS or ATLAS.
<br>
<br>b) it appears that your library is not in the search path for the libraries. 
<br>There are three ways of fixing this.
<br>-   $ export LD_LIBRARY_PATH=/path/to/<wbr>libacml_mp.so:$LD_LIBRARY_PATH
<br>-   add /path/to/libacml_mp.so in /etc/ld.so.conf and run ldconfig
<br>-   use -Wl,--rpath=/path/to/libacml_<wbr>mp.so when you compile for the linking.
<br>
<br>The first will only last for the current shell session and the second is a 
<br>global setting. The third means you hard-code the path into your binary file. 
<br>
<br>Like all things, there are pros and cons for all of that. ;-)
<br>
<br>All the best
<br>
<br>Jörg
<br>
<br>On Tuesday 14 Feb 2017 04:40:09 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="D5fm-MPkBwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">rdel...@gmail.com</a> wrote:
<br>> Hello and thank you Jörg
<br>> 
<br>> I compile the next arch file:
<br>> 
<br>> CC         = gcc
<br>> CPP        =
<br>> FC         = gfortran
<br>> LD         = gfortran
<br>> AR         = ar -r
<br>> ACML_INC   = /home/ralf/ACML/gfortran64_mp/<wbr>include
<br>> ACML_LIB   = /home/ralf/ACML/gfortran64_mp/<wbr>lib
<br>> FFTW_INC   = /usr/local/include/
<br>> FFTW_LIB   = /usr/local/lib/
<br>> LIBINT_INC = /usr/local/libint/1.1.4-<wbr>stable/include
<br>> LIBINT_LIB = /usr/local/libint/1.1.4-<wbr>stable/lib
<br>> LIBXC_INC  = /opt/etsf/include
<br>> LIBXC_LIB  = /opt/etsf/lib
<br>> DFLAGS     = -D__FFTW3 -D__LIBINT -D__LIBXC2\
<br>>              -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4
<br>> CPPFLAGS   =
<br>> FCFLAGS    = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\
<br>>              -fopenmp -ftree-vectorize -funroll-loops\
<br>>              -mtune=native\
<br>>              -I$(ACML_INC) -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC)
<br>> LDFLAGS    = $(FCFLAGS) -static-libgfortran
<br>> LIBS       = $(ACML_LIB)/libacml_mp.so\
<br>>              $(FFTW_LIB)/libfftw3.a\
<br>>              $(FFTW_LIB)/libfftw3_threads.<wbr>a\
<br>>              $(LIBXC_LIB)/libxcf90.a\
<br>>              $(LIBXC_LIB)/libxc.a\
<br>>              $(LIBINT_LIB)/libderiv.a\
<br>>              $(LIBINT_LIB)/libint.a
<br>> 
<br>> And when I run the tests I obtain in all 2500 cases this kind of error
<br>> 
<br>> /home/ralf/cp2k-4.1/<wbr>regtesting/make/ssmp/TEST-<wbr>make-ssmp-2017-02-14_13-35-10/
<br>> optimize_input/regtest-1/<wbr>driver-stride.inp.out
<br>> /home/ralf/cp2k-4.1/<wbr>regtesting/make/ssmp/../../../<wbr>/exe/make/cp2k.ssmp:
<br>> error while loading shared libraries: libacml_mp.so: cannot open shared
<br>> object file: No such file or directory
<br>> EXIT CODE:  127  MEANING:  RUNTIME FAIL
<br>> 
<br>> I should use libacml_mp.a for the compilling but in my installation this
<br>> file doesn appear
<br>> 
<br>> Rafa
<br>> 
<br>> 
<br>> El martes, 14 de febrero de 2017, 13:11:16 (UTC+1), <a>rdel...@gmail.com</a>
<br>> 
<br>> escribió:
<br>> > Hello all.
<br>> > 
<br>> > I have been trying to compile and execute cp2k in my computer but i'm
<br>> > having problems.
<br>> > 
<br>> > I use a modified arch file including my routes to files and libreries.
<br>> > When I compile it works but wher runing the tests it fails in all the
<br>> > cases.
<br>> > 
<br>> > Could anyone help me with this? My computer is an intel i7-920 with 4
<br>> > cores and 8 threadings. I have a CUDA capable graphic card so i like to
<br>> > enable it (I have installed the last version of the nvidia CUDA kit)
<br>> > About the software i run ubuntu 16.04.4 with gfortran and gcc, both
<br>> > versions 5.4.0. Also I have installed the last version of the intel MKL
<br>> > library (aditionally i also have ACML). Finally I'd like to compile cp2k
<br>> > with libint, libxc and fftw. All three are compiled and installed in my
<br>> > computer
<br>> > 
<br>> > Any help for the creation of the appropiate arch file in wellcome.
<br>> > 
<br>> > That you all in advance.
<br>> > 
<br>> > Rafa
<br>
<br>
<br>-- 
<br>******************************<wbr>******************************<wbr>*
<br>Dr. Jörg Saßmannshausen, MRSC
<br>University College London
<br>Department of Chemistry
<br>20 Gordon Street
<br>London
<br>WC1H 0AJ 
<br>
<br>email: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="D5fm-MPkBwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">j.sas...@ucl.ac.uk</a>
<br>web: <a href="http://sassy.formativ.net" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fsassy.formativ.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9o9WkpTCH9I54nkUfQDVTZ3MyXg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fsassy.formativ.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9o9WkpTCH9I54nkUfQDVTZ3MyXg';return true;">http://sassy.formativ.net</a>
<br>
<br>Please avoid sending me Word or PowerPoint attachments.
<br>See <a href="http://www.gnu.org/philosophy/no-word-attachments.html" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.gnu.org%2Fphilosophy%2Fno-word-attachments.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjON8UjWwcCChP9-0mlwmJs_iU7g';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.gnu.org%2Fphilosophy%2Fno-word-attachments.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEjON8UjWwcCChP9-0mlwmJs_iU7g';return true;">http://www.gnu.org/philosophy/<wbr>no-word-attachments.html</a></blockquote></div>