AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
503 stars 336 forks source link

AMReX Build Errors Windows Visual Studio 2022 (CUDA Enabled) - With Latest Development branch Pull #3972

Open ramsampath opened 1 month ago

ramsampath commented 1 month ago

Hello,

I was wondering if someone could help out with the following errors during build using Visual Studio 2022 (With CUDA Enabled).

Error: static assertion failed with "PackComponents is expected to satisfy the concept DataPacking." amrex_3d on amrex\Src\Base\AMReX_NonLocalBC.H 605 Error static assertion failed with "ApplyDtosAndProjectionOnReciever<> is expected to satisfy the DataPacking concept." amrex_3d amrex\Src\Base\AMReX_NonLocalBC.H 666 ....

and

Error C2244 'amrex::FabArray::array': unable to match function definition to an existing declaration amrex_3d
amrex\Src\Base\AMReX_FabArray.H 1552

Error C2244 'amrex::FabArray::const_array': unable to match function definition to an existing declaration amrex_3d
amrex\Src\Base\AMReX_FabArray.H 1584

...

there are many errors but with a similar error code.

Would be great if someone could give some pointers on how to fix these.

Thank you much.

Ram.

WeiqunZhang commented 1 month ago

Unfortunately we don't have windows machines for testing. There is a PR trying to set up a GitHub Action for Windows + CUDA. But it still has some issues. It seems to have a different issue than what you have. @ramsampath maybe you can offer some help on #1585.

ramsampath commented 4 weeks ago

Thank you Weiqun . I will try to figure this error and if this works can then try to help out with #1585