-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[vtk-m] Fix feature support #31750
base: master
Are you sure you want to change the base?
[vtk-m] Fix feature support #31750
Conversation
- find_package(OpenMP 4.0 REQUIRED COMPONENTS CXX QUIET) | ||
+ find_package(OpenMP REQUIRED COMPONENTS CXX QUIET) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream requires OpenMP 4.0. Did you sufficiently verify that OpenMP 2.0 is sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dg0yt, I submitted an issue upstream to ask whether the minimum openmp version required by vtk-m is 4.0, and whether version 2.0 is ok.
https://gitlab.kitware.com/vtk/vtk-m/-/issues/784
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So upstream says 4.0 means 4.0. This patch is obsolete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream told me to turn off VTKm_ENABLE_OPENMP ,Turning on VTKm_ENABLE_TBB
means that openmp is no longer used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't use what isn't supported. If the compiler (MSVC) doesn't support the requirements (OpenMP 4.0) of this feature (VTKm_ENABLE_OPENMP), it means that this vcpkg port feature (openmp) is not supported for the compiler's vcpkg triplets/platforms. The only thing which needs to be done is to put this information into the manifest.
- find_package(OpenMP 4.0 REQUIRED COMPONENTS CXX QUIET) | ||
+ find_package(OpenMP REQUIRED COMPONENTS CXX QUIET) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So upstream says 4.0 means 4.0. This patch is obsolete.
@@ -33,7 +33,8 @@ | |||
] | |||
}, | |||
"omp": { | |||
"description": "Use the OpenMP device adapter." | |||
"description": "Use the OpenMP device adapter.", | |||
"supports": "linux" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"supports": "!windows | mingw"
(However, it really depends on the compiler.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"supports": "!msvc"
would be required but vcpkg has no clue about the used compiler. Clang-cl can probably build with omp without a problem.
Fixes #13014
Fix error:
Remove the version constraint of
find_package
, and add support like featureomp
only supports linux.SHA512s are updated for each updated downloadThe "supports" clause reflects platforms that may be fixed by this new versionAny fixed CI baseline entries are removed from that file.Any patches that are no longer applied are deleted from the port's directory../vcpkg x-add-version --all
and committing the result.Feature
double,tbb
tested successfully in the following triplet:Feature
mpi
tested successfully in the following triplet:Feature
cuda
andomp
failed as expected