<div dir="ltr"><div>Hi,</div><div>thanks for your reply. I will try with the suggested options.</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Regards,<div>Mandar Kulkarni</div></div></div></div></div></div><br><br>On Tuesday, 9 April 2019 10:28:46 UTC+2, Alfio Lazzaro  wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">GPU compilation requires other flags for your arch file. <div>Please see</div><div><br></div><div><a href="https://github.com/cp2k/cp2k/blob/master/arch/Linux-x86-64-dbcsr-cuda.popt" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k%2Fblob%2Fmaster%2Farch%2FLinux-x86-64-dbcsr-cuda.popt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJVRvTqivB5L6Viyrx_xkafBombg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k%2Fblob%2Fmaster%2Farch%2FLinux-x86-64-dbcsr-cuda.popt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJVRvTqivB5L6Viyrx_xkafBombg';return true;">https://github.com/cp2k/cp2k/<wbr>blob/master/arch/Linux-x86-64-<wbr>dbcsr-cuda.popt</a></div><div><br></div><div>See <a href="https://github.com/cp2k/cp2k/blob/master/INSTALL.md" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k%2Fblob%2Fmaster%2FINSTALL.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG79gedIFzrU442k2no95hsXY8cg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k%2Fblob%2Fmaster%2FINSTALL.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG79gedIFzrU442k2no95hsXY8cg';return true;">https://github.com/cp2k/<wbr>cp2k/blob/master/INSTALL.md</a> <wbr>for more details.</div><div><br></div><div>Alfio</div><div><div><br><br>Il giorno lunedì 8 aprile 2019 10:11:59 UTC+2, Mandar Kulkarni ha scritto:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear Tiziano,</div><div>Thanks for the help and sorry for the delayed response. <br></div><div><br></div><div>I have installed cp2k with all gnu compilers finally, I had still issues with intel compilers.</div><div><br></div><div>But I am still unable to install cp2k with cuda.I have NVIDIA 940MX card and cuda 10.1 installed. Please is it possible to comment whether cp2k is compatible with certain GPU cards, because in master branch version I saw only certain GPU cards are mentioned.</div><div><br></div><div>Thanks and Regards,</div><div>Mandar Kulkarni<br></div><br>On Thursday, 28 March 2019 10:55:46 UTC+1, Tiziano Müller  wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mandar,
<br>
<br>The arch-files generated by the toolchain contain specific flags for 
<br>gfortran, most notably the FCFLAGS.
<br>When compiling with Intel Fortran (ifort), you have to manually adapt 
<br>them to ifort.
<br>
<br>A good starting point for this is the following arch-file:
<br>
<br>   <a href="https://github.com/cp2k/cp2k/blob/master/arch/Linux-x86-64-intel.popt" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k%2Fblob%2Fmaster%2Farch%2FLinux-x86-64-intel.popt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH9jYoJX6yzctuyCdwX8i2BJjWnfQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k%2Fblob%2Fmaster%2Farch%2FLinux-x86-64-intel.popt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH9jYoJX6yzctuyCdwX8i2BJjWnfQ';return true;">https://github.com/cp2k/cp2k/<wbr>blob/master/arch/Linux-x86-64-<wbr>intel.popt</a>
<br>
<br>In particular, you should replace
<br>
<br>   -march=native -fno-omit-frame-pointer -g  -O3 -funroll-loops 
<br>-ffast-math -m64
<br>
<br>with
<br>
<br>   -O2 -funroll-loops -fpp -free -fp-model precise -g -traceback
<br>
<br>remove most if not all `-W...` flags and add
<br>
<br>   -D__MKL
<br>
<br>to DFLAGS.
<br>
<br>The include directives you should leave as they are.
<br>
<br>Best regards,
<br>Tiziano
<br>
<br>On 27.03.19 22:38, Mandar Kulkarni wrote:
<br>> Dear Developers and Users,
<br>> 
<br>> I am trying to install cp2k 6.1 on my laptop using toolchain script. I 
<br>> got NVIDIA 940MX card and have working cuda-10.1 installation. Before 
<br>> installation I have exported path to openmpi mpirun and nvcc. The 
<br>> instructions are followed from CP2K: Automation, Scripting, Testing slides.
<br>> 
<br>> *Installation:*
<br>> git clone -b support/v6.1 <a href="https://github.com/cp2k/cp2k.git" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGSBp8I-5Gc_1Dj75HwIsz0nW7gQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcp2k%2Fcp2k.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGSBp8I-5Gc_1Dj75HwIsz0nW7gQ';return true;">https://github.com/cp2k/cp2k.<wbr>git</a> cp2k
<br>> 
<br>> ./install_cp2k_toolchain.sh --enable-cuda
<br>> 
<br>> /All necessary files get installed at this step./
<br>> 
<br>> cp 
<br>> /home/mandar/softwares/source/<wbr>cp2k_from_git/cp2k/tools/<wbr>toolchain/install/arch/* 
<br>> /home/mandar/softwares/source/<wbr>cp2k_from_git/cp2k/arch/
<br>> 
<br>>   source 
<br>> /home/mandar/softwares/source/<wbr>cp2k_from_git/cp2k_v6.1/cp2k/<wbr>tools/toolchain/install/setup
<br>> 
<br>> make -j 8 ARCH=local VERSION="popt"
<br>> 
<br>> *The error is as follows:*
<br>> mpif90 -c -march=native -fno-omit-frame-pointer -g  -O3 -funroll-loops 
<br>> -ffast-math     -m64 
<br>> -I/opt/intel/compilers_and_<wbr>libraries_2018.3.222/linux/<wbr>mkl/include 
<br>> -I'/home/mandar/softwares/<wbr>source/cp2k_from_git/cp2k_v6.<wbr>1/cp2k/tools/toolchain/<wbr>install/fftw-3.3.7/include' 
<br>> -I'/home/mandar/softwares/<wbr>source/cp2k_from_git/cp2k_v6.<wbr>1/cp2k/tools/toolchain/<wbr>install/libint-1.1.6/include' 
<br>> -I'/home/mandar/softwares/<wbr>source/cp2k_from_git/cp2k_v6.<wbr>1/cp2k/tools/toolchain/<wbr>install/libxc-4.0.3/include' 
<br>> -I'/home/mandar/softwares/<wbr>source/cp2k_from_git/cp2k_v6.<wbr>1/cp2k/tools/toolchain/<wbr>install/libxsmm-1.9.0/include' 
<br>> -ffree-form -std=f2003 -fimplicit-none  -Werror=aliasing 
<br>> -Werror=ampersand -Werror=c-binding-type -Werror=intrinsic-shadow 
<br>> -Werror=intrinsics-std -Werror=line-truncation -Werror=tabs 
<br>> -Werror=realloc-lhs-all -Werror=target-lifetime -Werror=underflow 
<br>> -Werror=unused-but-set-<wbr>variable -Werror=unused-variable 
<br>> -Werror=unused-dummy-argument -Werror=conversion -Werror=zerotrip 
<br>> -Werror=uninitialized -Wno-maybe-uninitialized -Wuse-without-only  
<br>> -D__LIBXSMM  -D__parallel  -D__SCALAPACK -D__FFTW3  -D__LIBINT 
<br>> -D__LIBINT_MAX_AM=6 -D__LIBDERIV_MAX_AM1=5 -D__LIBXC   
<br>> -D__COMPILE_ARCH="\"local\"" -D__COMPILE_DATE="\"Wed Mar 27 22:23:27 CET 
<br>> 2019\"" -D__COMPILE_HOST="\"jarvis\"" 
<br>> -D__COMPILE_REVISION="\"svn:<wbr>18464\"" 
<br>> -D__DATA_DIR="\"/home/mandar/<wbr>softwares/source/cp2k_from_<wbr>git/cp2k_v6.1/cp2k/data\"" 
<br>> -D__SHORT_FILE__="\"base/<wbr>machine.F\"" 
<br>> -I'/home/mandar/softwares/<wbr>source/cp2k_from_git/cp2k_v6.<wbr>1/cp2k/src/base/' 
<br>> machine.F90
<br>> /home/mandar/softwares/source/<wbr>cp2k_from_git/cp2k_v6.1/cp2k/<wbr>tools/build_utils/fypp 
<br>> -n 
<br>> /home/mandar/softwares/source/<wbr>cp2k_from_git/cp2k_v6.1/cp2k/<wbr>src/dbcsr/base/dbcsr_toollib.F 
<br>> dbcsr_toollib.F90
<br>> ifort: command line warning #10006: ignoring unknown option '-ffast-math'
<br>> ifort: command line warning #10006: ignoring unknown option '-ffree-form'
<br>> ifort: command line warning #10006: ignoring unknown option '-std=f2003'
<br>> ifort: command line warning #10006: ignoring unknown option 
<br>> '-fimplicit-none'
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> ifort: command line warning #10157: ignoring option '-W'; argument is of 
<br>> wrong type
<br>> /home/mandar/softwares/source/<wbr>cp2k_from_git/cp2k_v6.1/cp2k/<wbr>src/base/machine.F(74): 
<br>> error #7013: This module file was not generated by any release of this 
<br>> compiler.   [LIBXSMM]
<br>>        USE libxsmm, ONLY: libxsmm_timer_tick, libxsmm_timer_duration
<br>> 
<br>> any suggestions to solve this issue will be really helpful. TIA.
<br>> 
<br>> Regards,
<br>> Mandar Kulkarni
<br>> 
<br>> -- 
<br>> You received this message because you are subscribed to the Google 
<br>> Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it, send 
<br>> an email to <a rel="nofollow">c...@googlegroups.com</a> 
<br>> <mailto:<a rel="nofollow">c...@googlegroups.com</a><wbr>>.
<br>> To post to this group, send email to <a rel="nofollow">c...@googlegroups.com</a> 
<br>> <mailto:<a rel="nofollow">c...@googlegroups.com</a><wbr>>.
<br>> Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.
<br>> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" 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>
<br>-- 
<br>Tiziano Müller
<br>University of Zurich
<br>Department of Chemistry
<br>Winterthurerstrasse 190
<br>CH-8057 Zürich
<br>
<br>Tel: +41 44 63 54234
<br><a href="http://www.chem.uzh.ch" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.chem.uzh.ch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEaSd80M-dQwlA8q5GEKkKY5wRCiQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.chem.uzh.ch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEaSd80M-dQwlA8q5GEKkKY5wRCiQ';return true;">www.chem.uzh.ch</a>
<br><a rel="nofollow">tiz...@chem.uzh.ch</a>
<br></blockquote></div></blockquote></div></div></div></blockquote></div>