Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try building on windows #154

Merged
merged 40 commits into from
Oct 14, 2024
Merged

Conversation

Fitanium
Copy link
Collaborator

@Fitanium Fitanium commented Oct 4, 2024

In this PR I made some changes to NeoFOAM so that it can be built on Windows.

My hardware configuration:

  • OS: Windows 11 Pro
  • Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33130
  • CUDA: 12.1 (GeForce 2060 12GB)
  • MPI: MS-MPI 10.1.12498.52

CMake command line:

cd /path/to/NeoFOAM
mkdir build
cd build 
cmake .. -DCMAKE_BUILD_TYPE=Release -DKokkos_DIR="D:/dev/Kokkos/lib/cmake/Kokkos"

Build with MS-Build:

MSBuild.exe -p:configuration=Release -p:platform=x64 -m:8 .\NeoFOAM.sln

The following is screenshot of some logs:
image

image

Hope this helps.

@greole greole linked an issue Oct 4, 2024 that may be closed by this pull request
@Fitanium
Copy link
Collaborator Author

Fitanium commented Oct 6, 2024

CMake config:
image

Build:

MSBuild.exe -p:configuration=Release -p:platform=x64 -noLogo -m .\NeoFOAM.sln

Generated files:
image

@greole
Copy link
Contributor

greole commented Oct 6, 2024

I created a branch/PR to add enable building NeoFOAM without mpi support, see #156. Once, that is ready we should add windows support without mpi first.

@greole greole changed the base branch from main to feat/nompi October 6, 2024 14:58
@greole greole changed the base branch from feat/nompi to main October 6, 2024 14:58
Copy link
Contributor

@greole greole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick and not complete review. Looks already in good shape, thank you!
Two general comments:

  1. Please move the additional benchmarking and non windows build related changes to a separate PR. This helps to keep the PRs easy to review.
  2. Please remove the MPI related changes, since we try to add support for builds without MPI first.

CMakeLists.txt Outdated Show resolved Hide resolved
benchmarks/fields/bench_fields.cpp Outdated Show resolved Hide resolved
benchmarks/fields/bench_fields.cpp Outdated Show resolved Hide resolved
cmake/CxxThirdParty.cmake Outdated Show resolved Hide resolved
cmake/Docs.cmake Show resolved Hide resolved
include/NeoFOAM/core/mpi/operators.hpp Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
src/core/demangle.cpp Outdated Show resolved Hide resolved
test/core/parallelAlgorithms.cpp Outdated Show resolved Hide resolved
@greole greole changed the base branch from main to ci/win October 7, 2024 06:57
@greole greole force-pushed the ci/win branch 2 times, most recently from cebb577 to 1088d50 Compare October 8, 2024 18:53
…ing parent function ('CATCH2_INTERNAL_TEST_0') for an extended __host__ __device__ lambda cannot have internal or no linkage"

This reverts commit cf84406.
CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
@Fitanium Fitanium force-pushed the try-building-on-windows branch from 76e4db3 to 9349d1d Compare October 13, 2024 08:45
@greole greole merged commit 9fc0360 into exasim-project:ci/win Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows build
2 participants