amrex icon indicating copy to clipboard operation
amrex copied to clipboard

Windows + CUDA

Open ax3l opened this issue 1 year ago • 4 comments

We need to document and test how to build AMReX on Windows with GPU (CUDA) support. Downstream, we have users for ImpactX/HiPACE++/WarpX actively asking for this feature.

So far, @robertmaynard @sayerhs @mic84 and me gave this a stab in #1585. But we could not yet find a working CI configuration.

ax3l avatar Mar 29 '24 20:03 ax3l

I suggest you to use WSL under Windows, and build AMReX+CUDA like what exactly is done under Linux system. This is what I am doing right now. The efficiency of WSL is good (like original Linux). The only difference is the cuda installation under WSL is a little difference from the original Linux system, see the guides on nvidia websites. Meanwhile, the unified memory feather can not be used under WSL, therefore you should set "amrex.the_arena_is_managed=0" to ensure the program can run correctly.

pkufourier avatar Sep 18 '24 08:09 pkufourier

Hi. Unfortunately, WSL has security issues and is therefore blacklisted in some companies/institutions. It would be great to have a way to build AMReX on Windows natively.

fmuni avatar Jan 06 '25 21:01 fmuni

If you use cmake gui on windows, it might just work.

WeiqunZhang avatar Jan 07 '25 02:01 WeiqunZhang

https://github.com/AMReX-Codes/amrex/pull/4309

WeiqunZhang avatar Jan 23 '25 23:01 WeiqunZhang