Compiling VASP using Intel oneAPI on AMD processors
Moderators: Global Moderator, Moderator
-
- Newbie
- Posts: 2
- Joined: Tue Sep 13, 2022 4:27 pm
Compiling VASP using Intel oneAPI on AMD processors
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.
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.
-
- Global Moderator
- Posts: 460
- Joined: Mon Nov 04, 2019 12:44 pm
Re: Compiling VASP using Intel oneAPI on AMD processors
You forgot to upload the testsuite.log and compilation output.
-
- Newbie
- Posts: 2
- Joined: Tue Sep 13, 2022 4:27 pm
Re: Compiling VASP using Intel oneAPI on AMD processors
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
testsuit.log
https://drive.google.com/file/d/1vwdFWV ... sp=sharing
compilation output
https://drive.google.com/file/d/1asJirg ... sp=sharing
-
- Global Moderator
- Posts: 460
- Joined: Mon Nov 04, 2019 12:44 pm
Re: Compiling VASP using Intel oneAPI on AMD processors
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.
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.
-
- Newbie
- Posts: 1
- Joined: Wed Dec 28, 2022 11:43 am
Re: Compiling VASP using Intel oneAPI on AMD processors
Hi,
Have you been able to solve this issue? i am also having the same problem and struggling to compile VASP 6.
Have you been able to solve this issue? i am also having the same problem and struggling to compile VASP 6.
-
- Global Moderator
- Posts: 460
- Joined: Mon Nov 04, 2019 12:44 pm
Re: Compiling VASP using Intel oneAPI on AMD processors
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.
If yes please upload all the neccessary files I have mentioned above.