-
-
Notifications
You must be signed in to change notification settings - Fork 325
Set subfiling vfd default enabled=ON #5518
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
Changes from 2 commits
f51d272
93b9bd0
70b0d6c
55406e4
604a563
dd892cf
e4ae046
2b8bd71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,7 @@ else() | |
| set (HDF5_EXTERNALLY_CONFIGURED 1) | ||
| endif() | ||
| endif() | ||
| include (CMakeDependentOption) | ||
| #----------------------------------------------------------------------------- | ||
| # Instructions for use : Sub-Project Build | ||
| # | ||
|
|
@@ -835,32 +836,18 @@ set (HDF5_SRC_INCLUDE_DIRS | |
| ${HDF5_SRC_INCLUDE_DIRS} | ||
| ${H5FD_SUBFILING_DIR} | ||
| ) | ||
| option (HDF5_ENABLE_SUBFILING_VFD "Build Parallel HDF5 Subfiling VFD" OFF) | ||
| cmake_dependent_option(HDF5_ENABLE_SUBFILING_VFD "Build Parallel HDF5 Subfiling VFD" ON "HDF5_ENABLE_PARALLEL AND NOT WIN32" OFF) | ||
| if (HDF5_ENABLE_SUBFILING_VFD) | ||
| if (WIN32) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this check is still needed.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to know for sure - as I believe the documentation states:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I mean is that CMake hides the option, but I don't think that means it's actually gone. I think it's similar to just being marked with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it hides the option but the condition forces a value if it is hidden
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ran " ccmake -DMPIEXEC_PREFLAGS:STRING="-n;6" -DHDF5_ENABLE_SUBFILING_VFD=ON ../lrk-hdf5", then configured without any other changes. The subfiling vfd option was missing and libhdf5.settings reported Subfiling VFD OFF. |
||
| message (FATAL_ERROR " **** Subfiling is not supported on Windows **** ") | ||
| endif () | ||
| if (NOT HDF5_ENABLE_PARALLEL) | ||
| message (FATAL_ERROR "Subfiling VFD requires a parallel HDF5 build") | ||
| else () | ||
| # Make sure we found MPI_Comm_split_type previously | ||
| if (NOT H5_HAVE_MPI_Comm_split_type) | ||
| message (FATAL_ERROR "Subfiling VFD requires MPI-3 support for MPI_Comm_split_type") | ||
| endif () | ||
| if (NOT H5_HAVE_MPI_Comm_split_type) | ||
| message (FATAL_ERROR "Subfiling VFD requires MPI-3 support for MPI_Comm_split_type") | ||
| endif () | ||
|
|
||
| # Subfiling requires thread operations | ||
| if (NOT Threads_FOUND) | ||
| message (FATAL_ERROR "Subfiling requires thread operations support") | ||
| endif () | ||
|
|
||
| set (H5_HAVE_SUBFILING_VFD 1) | ||
| # IOC VFD is currently only built when subfiling is enabled | ||
| set (H5_HAVE_IOC_VFD 1) | ||
|
|
||
| if(NOT H5_HAVE_SUBFILING_VFD EQUAL 1) | ||
| set (HDF5_ENABLE_SUBFILING_VFD OFF CACHE BOOL "Build Parallel HDF5 Subfiling VFD" FORCE) | ||
| endif() | ||
| endif() | ||
|
|
||
|
|
||
|
|
||
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.
Also, it looks like this syntax for the condition is only supported as of CMake 3.22 and otherwise has to be a semicolon-separated list.
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.
Since we are still on 3.18 then we need to use the semis
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.
I will fix this.