Page 1 of 1

VASP 6 on AMD GPUs

Posted: Mon Dec 27, 2021 11:55 am
by Dankomaister
Hi,
At the beginning of next year our group will get access to a new supercomputer with plenty of AMD Instinct MI250X GPUs. These are monsters with 128GB of GPU memory and I wanted to ask what is needed in order to run VASP 6 on AMD GPUs. As far as I understand OpenACC is supported on AMD Instinct GPUs, but that doesn’t necessarily mean that VASP 6 will work out of the box, right?

Re: VASP 6 on AMD GPUs

Posted: Wed Dec 29, 2021 8:13 pm
by fabien_tran1
Hi,

OpenACC in VASP has been implemented and tested using NVIDIA GPUs. I guess that nobody of us has tried with other GPUs. So, we don't know if some changes in the code would need to be done for other GPUs, but actually in the code there are a few lines which seem to be specific to NVIDIA.

Re: VASP 6 on AMD GPUs

Posted: Thu Feb 03, 2022 7:27 am
by Dankomaister
Alright, I saw that the new version (6.3) includes optimizations for AMD CPUs.
Any plans to give the ACC version the same treatment for AMD GPUs?

/Daniel

Re: VASP 6 on AMD GPUs

Posted: Wed Oct 12, 2022 2:18 am
by Dankomaister
fabien_tran1 wrote: Wed Dec 29, 2021 8:13 pm Hi,

OpenACC in VASP has been implemented and tested using NVIDIA GPUs. I guess that nobody of us has tried with other GPUs. So, we don't know if some changes in the code would need to be done for other GPUs, but actually in the code there are a few lines which seem to be specific to NVIDIA.
Since its been almost one year since I asked this I wanted to check in if there has been any progress on making VASP run on AMD GPUs.
This is very relevant since most of the new HPC clusters (Frontier, LUMI, Dardel, Adastra, etc) will/are running AMD GPUs.

Re: VASP 6 on AMD GPUs

Posted: Wed Oct 12, 2022 7:31 am
by fabien_tran1
Hi,

Unfortunately, porting VASP on AMD GPUs is not going to happen very soon, in particular since there is currently no OpenACC compiler that would work.

Re: VASP 6 on AMD GPUs

Posted: Mon Feb 13, 2023 12:34 pm
by Dankomaister
Hi,

As far as I can understand the upcoming GCC 13 release will have support for OpenACC 2.7+ as well as support for the Instinct MI200 series devices (gfx90a) such as the AMD Instinct MI250X GPUs that are used in the LUMI supercomputer. This together with AMD’s HIP will make it possible to port VASP to AMD GPUs, see for example: https://www.lumi-supercomputer.eu/prepa ... ons-to-hip

I suggest making it a priority to port VASP to AMD GPUs as current and upcoming HPC systems will use AMD GPUs. Any VASP users who feel the same should reply to this post to show their interest.

Re: VASP 6 on AMD GPUs

Posted: Mon Feb 13, 2023 12:55 pm
by mmarsman
Hi,

We are currently exploring several routes to support AMD GPUs.
Hopefully we will soon be able to compile and run the OpenACC port on AMD using either the Cray compiler or possibly GCC-13.
OpenACC support in these compilers might not be completely mature yet, so I do not expect things to work out-of-the-box for some time.
Another route we are exploring actively is the use of OpenMP offloading. This is still work in progress though.

Re: VASP 6 on AMD GPUs

Posted: Tue Feb 14, 2023 2:27 am
by Dankomaister
Ah great looking forwarded to see progress on this front!

Re: VASP 6 on AMD GPUs

Posted: Wed Feb 14, 2024 1:00 pm
by Dankomaister
Has been a year now.
Any updates on supporting AMD GPUs?

Re: VASP 6 on AMD GPUs

Posted: Thu Feb 15, 2024 10:51 am
by fabien_tran1
Hi,

This is still work in progress. AMD has implemented (partial) OpenMP offloading in VASP, that works with their GPUs and the Cray compiler. We plan to integrate their work in our branch, however this will take some time.