Skip to content

Does WarpX require GPU? #4192

Answered by ax3l
erny123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @erny123,

Great question! No, WarpX does not require a GPU to run. WarpX can in fact be run on either CPUs, or three kind of different GPU vendors (Nvidia, AMD, Intel).

To run on CPUs, just change during compilation the flag WarpX_COMPUTE to read OMP (OpenMP, our default to use multiple CPU cores) or NOACC (fully CPU serial, not really recommended unless OpenMP causes issues).

rm -rf build
cmake -S . -B build -DWarpX_COMPUTE=OMP
cmake --build build -j 8

We also provide pre-compiled CPU packages, e.g., via conda.

So yes, you can run WarpX on CPU systems such as laptops, desktops or CPU clusters.

Let us know if you have any further questions! :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ax3l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants