[CP2K:10103] Re: Issues with CP2K 6 and linking additional libs

Alfio Lazzaro alfio.... at gmail.com
Fri Mar 23 06:40:52 UTC 2018


Hi Luiz,
so, the problem is in the DFLAGS setting in your arch file. You are setting 
it twice:

DFLAGS   = -D__MKL -D__HAS_NO_SHARED_GLIBC -D__LIBXSMM \
           -D__parallel -D__SCALAPACK \
           -D__ELPA=201605 \
           -D__LIBXC \
           -D_LIBINT -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 \
           -D__MAX_CONTR=4

and then

DFLAGS   = -D__parallel -D__SCALAPACK -D__MPI_VERSION=3 \
                                         -D__FFTW3 \
                                         -D__HAS_ISO_C_BINDING
DFLAGS += -D__PLUMED2

Just remove the second definition, put the PLUMED2 on top, and it should 
fix your problem.

Alfio


Il giorno venerdì 23 marzo 2018 01:56:40 UTC+1, Luiz Fernando Lopes 
Oliveira ha scritto:
>
> Hello Alfio.
>
> Thank you for your feedback. 
>
> Attached is my .psmp arch file. I made some modifications to it since 
> my last post, but still, I cannot link the following libraries to it: 
> libxc, libinit, and elpa. By no means my .arch is "clean", but if you can 
> have a look at it, any thoughts would be greatly appreciated. 
>
> By the way, the command you suggested gave me:
>
>  cp2kflags: omp fftw3 parallel mpi3 scalapack plumed2
>
> On Monday, March 19, 2018 at 1:50:51 AM UTC-7, Alfio Lazzaro wrote:
>>
>> Dear Luiz Fernando Lopes Oliveira,
>> could you attach the arch file you are using? In your previous email, you 
>> attached the arch file which is in CP2K, but you said that you did some 
>> changes to it (plumed)...
>> Then, you can just run the command:
>>
>> ./cp2k.psmp --version | grep cp2kflags
>>
>> to see which libraries are there.
>>
>> Alfio
>>
>>
>> Il giorno lunedì 19 marzo 2018 08:10:20 UTC+1, Luiz Fernando Lopes 
>> Oliveira ha scritto:
>>>
>>> Yes. I used the arch file that comes by default with CP2K latest version.
>>>  
>>> Of course, I updated the paths of my libs, but the arch file looks like 
>>> the one attached
>>>
>>> On Sun, Mar 18, 2018 at 11:03 PM, Yingchun Zhang <zhang... at 126.com> 
>>> wrote:
>>>
>>>>
>>>>> Hi,
>>>> More information is needed. You should attach your arch file.
>>>> My understanding on your problems is you compile CP2K without errors 
>>>> but the libs were not linked to the executable .psmp file, right? 
>>>> Maybe you didn't include those libs correctly in your ARCH file. 
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "cp2k" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/cp2k/p1a4JbkXlF8/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> cp2k+... at googlegroups.com.
>>>> To post to this group, send email to cp... at googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/cp2k.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>>
>>> *"You will never reach your destination if you stop and throw stones at 
>>> every dog that barks"Winston Churchill*
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20180322/4e253982/attachment.htm>


More information about the CP2K-user mailing list