compilation of VASP5

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.

Moderators: Global Moderator, Moderator

Post Reply
Message
Author
IBRAHIM
Jr. Member
Jr. Member
Posts: 82
Joined: Mon Jan 30, 2017 6:00 pm
License Nr.: 5-2551

compilation of VASP5

#1 Post by IBRAHIM » Wed Aug 30, 2023 2:45 am

Dear VASP admin,

During compilation of VASP5.4.4.pl2, we noticed this warning:
davidson.F(685): warning #15552: loop was not vectorized with "simd"

And the compilation complete without any error.

Is our compilation OK?

Attached is the last part of the compilation report.

Thanks
You do not have the required permissions to view the files attached to this post.

ferenc_karsai
Global Moderator
Global Moderator
Posts: 422
Joined: Mon Nov 04, 2019 12:44 pm

Re: compilation of VASP5

#2 Post by ferenc_karsai » Wed Aug 30, 2023 8:10 am

Around that line there is the command "!DIR$ SIMD" to vectorize for SIMD capable processors.
Either you don't have a SIMD capable processor or if you have one it's not recognized correctly.

That part is anyway completely changed in the latest VASP version (SIMD part is completely removed and replaced by GEMM calls), so I would strongly advise to upgrade to the latest version.

IBRAHIM
Jr. Member
Jr. Member
Posts: 82
Joined: Mon Jan 30, 2017 6:00 pm
License Nr.: 5-2551

Re: compilation of VASP5

#3 Post by IBRAHIM » Wed Aug 30, 2023 8:21 am

What is the effect on the compiled version?

The compilation finished without error.


Thanks

ferenc_karsai
Global Moderator
Global Moderator
Posts: 422
Joined: Mon Nov 04, 2019 12:44 pm

Re: compilation of VASP5

#4 Post by ferenc_karsai » Wed Aug 30, 2023 10:12 am

If you don't have simd then nothing. Otherwise if simd is not used then that part is not simd vectorized, hence slower in execution time.

IBRAHIM
Jr. Member
Jr. Member
Posts: 82
Joined: Mon Jan 30, 2017 6:00 pm
License Nr.: 5-2551

Re: compilation of VASP5

#5 Post by IBRAHIM » Wed Aug 30, 2023 10:17 am

So, it affects only on the execution time?
and no effect on the accuracy of the compiled version?

Thanks

ferenc_karsai
Global Moderator
Global Moderator
Posts: 422
Joined: Mon Nov 04, 2019 12:44 pm

Re: compilation of VASP5

#6 Post by ferenc_karsai » Wed Aug 30, 2023 11:04 am

No effect, but if you are unsure then run the testsuite.

IBRAHIM
Jr. Member
Jr. Member
Posts: 82
Joined: Mon Jan 30, 2017 6:00 pm
License Nr.: 5-2551

Re: compilation of VASP5

#7 Post by IBRAHIM » Fri Sep 22, 2023 12:00 am

Hi,

The admin of our server recommended the following changes in davidson.F:

!DIR$ SIMD

to:

!$OMP SIMD


and the compilation process finished without warning. Is it OK? Please find the report attached.

Thanks
You do not have the required permissions to view the files attached to this post.

IBRAHIM
Jr. Member
Jr. Member
Posts: 82
Joined: Mon Jan 30, 2017 6:00 pm
License Nr.: 5-2551

Re: compilation of VASP5

#8 Post by IBRAHIM » Thu Oct 05, 2023 9:46 am

Dear VASP admin,

Could you please check if the compilation is OK? including the changes in davidson.F:

!DIR$ SIMD

to:

!$OMP SIMD

Thanks

andreas.singraber
Global Moderator
Global Moderator
Posts: 235
Joined: Mon Apr 26, 2021 7:40 am

Re: compilation of VASP5

#9 Post by andreas.singraber » Thu Oct 05, 2023 12:11 pm

Hello!

Yes, the compilation is ok, the VASP binaries were successfully compiled. This was also the case for your initial build. The compiler warning was only notifying you that the explicit vectorization directive !DIR$ SIMD did not trigger a vectorization of the next loop. Meaning that this particular loop may not be executed in an optimal manner, i.e., without benefiting from SIMD vectorization. There can be many reasons why the compiler decided not to vectorize this loop, it may even depend on your compiler version and hardware you are using. Maybe it even did, but not because of the directive but in some other compilation stage. Whether this loop is ultimately vectorized one may find out with the qopt-report flag of current Intel compilers (I am unsure whether Intel 2018 which you are using already had that flag). However, even if this one loop may be slower this does not affect any other portion of the code or the accuracy of results, you still got valid VASP binaries. Before digging too deep into compiler diagnostics I would suggest to try both versions you have compiled now and only investigate further if you have the impression that VASP is very slow compared to other builds (e.g. with GNU compiler or older builds).

Regarding your second build with the updated directive: I suspect that the warning is now gone because you did not compile with OpenMP support, hence the !$OMP SIMD directive was completely ignored and has no effect.

All the best,
Andreas Singraber

Post Reply