Skip to content

Conversation

yhmtsai
Copy link
Member

@yhmtsai yhmtsai commented Aug 6, 2025

This PR fixes the issue when using MSVC with Intel MPI.
In distributed pgm, we use several lambda function and resolve the type on input type.
The type should be resolved when calling the function not defining, but MSVC tries to resolve it when defining it from the error log.
I need to enable /permissive- to make it have more standard conformance behavior. more detail on /permissive-: https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170

Alternatively, moving the lambda function to actual function might help.
However, it will give another issue when initializing some complex object during declaration.
From error log, it seems to consider function from the testing class not the variable class such that it failed at matching function.

@yhmtsai yhmtsai self-assigned this Aug 6, 2025
@yhmtsai yhmtsai added 1:ST:ready-for-review This PR is ready for review is:bugfix This fixes a bug labels Aug 6, 2025
@ginkgo-bot ginkgo-bot added reg:build This is related to the build system. reg:testing This is related to testing. reg:ci-cd This is related to the continuous integration system. mod:core This is related to the core module. labels Aug 6, 2025
@yhmtsai yhmtsai requested review from a team and MarcelKoch August 6, 2025 09:09
@yhmtsai yhmtsai added 1:ST:ready-to-merge This PR is ready to merge. and removed 1:ST:ready-for-review This PR is ready for review labels Aug 7, 2025
@yhmtsai yhmtsai merged commit 3be7b60 into develop Aug 7, 2025
15 of 19 checks passed
@yhmtsai yhmtsai deleted the check_msvc_mpi branch August 7, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:ready-to-merge This PR is ready to merge. is:bugfix This fixes a bug mod:core This is related to the core module. reg:build This is related to the build system. reg:ci-cd This is related to the continuous integration system. reg:testing This is related to testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants