I meet a trouble in compiling OpenMP version of cp2k.

nadler rod... at gmx.ch
Sat Dec 17 11:29:05 UTC 2011


Hello Zhu,
I had this issue once and I applied the following (which Urban suggested to 
me):

[...]

in the variables declaration of this subroutine (~line 1376)add a
variable
    INTEGER :: tmp_size

change the two lines (~line 1473):
    !$OMP ATOMIC
    new_nze = new_nze + wm%datasize
to three lines:
    tmp_size = wm%datasize
    !$OMP ATOMIC
    new_nze = new_nze + tmp_size

[...]

I don't remember the name of the subroutine, just grep for new_nze in cp2k/src. Hope it helps.


Cheers,

Roger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20111217/53b4f5c2/attachment.htm>


More information about the CP2K-user mailing list