Question about Compiler Choices in makefile.include.oneapi.

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
hszhao.cn@gmail.com
Full Member
Full Member
Posts: 191
Joined: Tue Oct 13, 2020 11:32 pm

Question about Compiler Choices in makefile.include.oneapi.

#1 Post by hszhao.cn@gmail.com » Fri May 17, 2024 12:56 am

Hello,

I noticed some differences between makefile.include.intel and makefile.include.oneapi in VASP 6.4.3, as shown below:

Code: Select all

werner@x13dai-t:~/Public/hpc/vasp/src/vasp.6.4.3/arch$ diff makefile.include.intel makefile.include.oneapi
14,15c14,15
< FC          = mpiifort
< FCL         = mpiifort
---
> FC          = mpiifort -fc=ifx
> FCL         = mpiifort -fc=ifx
32c32
< CC_LIB      = icc
---
> CC_LIB      = icx
40c40
< CXX_PARS    = icpc
---
> CXX_PARS    = icpx
As you can see, in makefile.include.intel, the MPI Fortran compiler is set to mpiifort, while in makefile.include.oneapi, it is set to mpiifort -fc=ifx. Similarly, the C and C++ compilers are changed from icc and icpc to icx and icpx respectively.

Given that mpiifx is the dedicated MPI Fortran compiler wrapper for the Intel oneAPI ifx compiler, I'm curious why makefile.include.oneapi does not simply use mpiifx instead of mpiifort -fc=ifx.

Could you please explain the rationale behind this choice?

Thank you for your assistance.

Best regards,
Zhao

jonathan_lahnsteiner2
Global Moderator
Global Moderator
Posts: 215
Joined: Fri Jul 01, 2022 2:17 pm

Re: Question about Compiler Choices in makefile.include.oneapi.

#2 Post by jonathan_lahnsteiner2 » Fri May 17, 2024 9:27 am

Dear Zhao,

Yes, you are right, one could use mpiifx in the makefile.include.oneapi. But at the time when this makefile.include was generated
mpiifx did not exist yet. Still

Code: Select all

mpiifx
and

Code: Select all

mpiifort -fc=ifx
do the same thing. The same is true for the c and c++ compilers.
I hope this clarifies your question.

All the best Jonathan

hszhao.cn@gmail.com
Full Member
Full Member
Posts: 191
Joined: Tue Oct 13, 2020 11:32 pm

Re: Question about Compiler Choices in makefile.include.oneapi.

#3 Post by hszhao.cn@gmail.com » Sat May 18, 2024 4:40 am

Dear Jonathan,

Thank you for your clarification. Got it.

Regards,
Zhao

Post Reply