Compiling VASP using Intel oneAPI on AMD processors

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
iretamoreno_joel1
Newbie
Newbie
Posts: 2
Joined: Tue Sep 13, 2022 4:27 pm

Compiling VASP using Intel oneAPI on AMD processors

#1 Post by iretamoreno_joel1 » Sat Dec 10, 2022 7:09 pm

Hi everyone,

I'm trying to compile VASP 6.3.2 using Intel oneAPI compiler and library suite on AMD Epyc 7713 64-core processors, as others have already mentioned that Intel compilers produce better performance than AMD's own compiler (AOCC/AOCL; I already used it and the executable works without issues). However, I'm having some issues using the included makefiles, and even after modifying some flags, the executable fails on some tests, and even crashes with Segmentation fault without further details. I understand that using Intel compilers on AMD processors is not entirely supported, but perhaps you could help me to identify the issue.

The toolchain I used is:

intel-openapi-compilers v2022.2.0
intel-openapi-mkl v2022.2.0
intel-openapi-mpi v2021.7.0

I set the environment variable MKLROOT to point to the Intel MKL library folder, but I get an error regarding SSE: catastrophic error: Function return parameter requires SSE register while SSE is disabled. It seems that it's related to the -xHOST option, where the compiler is unable to infer the capabilities of the AMD processor.

Following suggestions in the Intel community forum and others, I tried setting the variable VASP_TARGET_CPU to either "-xHOST -msoft-float -msse -msse2 -msse3 -msse4" or "-march=core-avx2". Compilation succeeded with both flag sets, but the executable failed to pass the test suite, and even crashed with Segmentation fault in several cases. I've attached the testsuite.log and compilation output.

I hope you can help to solve this issue as I've no idea what to do next.

Thanks.

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

Re: Compiling VASP using Intel oneAPI on AMD processors

#2 Post by ferenc_karsai » Mon Dec 12, 2022 11:57 am

You forgot to upload the testsuite.log and compilation output.

iretamoreno_joel1
Newbie
Newbie
Posts: 2
Joined: Tue Sep 13, 2022 4:27 pm

Re: Compiling VASP using Intel oneAPI on AMD processors

#3 Post by iretamoreno_joel1 » Thu Dec 15, 2022 5:28 pm

Thanks ferenc_karsai, you are right, here are the links to these archives

testsuit.log
https://drive.google.com/file/d/1vwdFWV ... sp=sharing

compilation output
https://drive.google.com/file/d/1asJirg ... sp=sharing

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

Re: Compiling VASP using Intel oneAPI on AMD processors

#4 Post by ferenc_karsai » Thu Dec 22, 2022 12:55 pm

Please also send us your whole makefile.include.

Also try the following:
Add to the option FFLAGS the following -g, -debug, -traceback.
Then compile and rerun the testsuite. Maybe this gives some additional information for the segmentation fault.

sbhowmick
Newbie
Newbie
Posts: 1
Joined: Wed Dec 28, 2022 11:43 am

Re: Compiling VASP using Intel oneAPI on AMD processors

#5 Post by sbhowmick » Fri Apr 21, 2023 4:53 pm

Hi,

Have you been able to solve this issue? i am also having the same problem and struggling to compile VASP 6.

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

Re: Compiling VASP using Intel oneAPI on AMD processors

#6 Post by ferenc_karsai » Sat Apr 22, 2023 8:03 am

Please first try VASP 6.4.1 and see if the problem persists.

If yes please upload all the neccessary files I have mentioned above.

Post Reply