-
Notifications
You must be signed in to change notification settings - Fork 79
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
Adding HDF5 compression plugins to superbuild #2432
base: develop
Are you sure you want to change the base?
Conversation
the cuda-distconv.sh superbuild example.
# if (TARGET HDF5 AND NOT LBANN_SB_FWD_ZFP_HDF5_DIR) | ||
# set(LBANN_SB_FWD_ZFP_HDF5_DIR ${HDF5_DIR}) | ||
# endif () | ||
|
||
# Conduit is "cute" about finding HDF5. It's not a CMake option() -- | ||
# you opt in by setting HDF5_DIR explicitly. So let's do that. | ||
# if (TARGET HDF5 AND NOT LBANN_SB_FWD_ZFP_HDF5_DIR) | ||
# set(LBANN_SB_FWD_ZFP_HDF5_DIR ${HDF5_DIR}) | ||
# 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.
# if (TARGET HDF5 AND NOT LBANN_SB_FWD_ZFP_HDF5_DIR) | |
# set(LBANN_SB_FWD_ZFP_HDF5_DIR ${HDF5_DIR}) | |
# endif () | |
# Conduit is "cute" about finding HDF5. It's not a CMake option() -- | |
# you opt in by setting HDF5_DIR explicitly. So let's do that. | |
# if (TARGET HDF5 AND NOT LBANN_SB_FWD_ZFP_HDF5_DIR) | |
# set(LBANN_SB_FWD_ZFP_HDF5_DIR ${HDF5_DIR}) | |
# endif () |
# option(LBANN_SB_FWD_HDF5_HDF5_USE_16_API_DEFAULT | ||
# "Use 1.6 API by default" | ||
# OFF) | ||
# option(LBANN_SB_FWD_HDF5_HDF5_USE_18_API_DEFAULT | ||
# "Use 1.8 API by default" | ||
# OFF) | ||
# option(LBANN_SB_FWD_HDF5_HDF5_USE_110_API_DEFAULT | ||
# "Use 1.10 API by default" | ||
# OFF) | ||
# option(LBANN_SB_FWD_HDF5_HDF5_USE_112_API_DEFAULT | ||
# "Use 1.12 API by default" | ||
# ON) |
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.
# option(LBANN_SB_FWD_HDF5_HDF5_USE_16_API_DEFAULT | |
# "Use 1.6 API by default" | |
# OFF) | |
# option(LBANN_SB_FWD_HDF5_HDF5_USE_18_API_DEFAULT | |
# "Use 1.8 API by default" | |
# OFF) | |
# option(LBANN_SB_FWD_HDF5_HDF5_USE_110_API_DEFAULT | |
# "Use 1.10 API by default" | |
# OFF) | |
# option(LBANN_SB_FWD_HDF5_HDF5_USE_112_API_DEFAULT | |
# "Use 1.12 API by default" | |
# ON) |
# option(LBANN_SB_FWD_HDF5_DEFAULT_API_VERSION | ||
# "Only Build Shared Libraries." | ||
# v112) |
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.
# option(LBANN_SB_FWD_HDF5_DEFAULT_API_VERSION | |
# "Only Build Shared Libraries." | |
# v112) |
# Conduit is "cute" about finding HDF5. It's not a CMake option() -- | ||
# you opt in by setting HDF5_DIR explicitly. So let's do that. | ||
# if (TARGET HDF5 AND NOT LBANN_SB_FWD_ZFP_HDF5_DIR) | ||
# set(LBANN_SB_FWD_ZFP_HDF5_DIR ${HDF5_DIR}) | ||
# 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.
# Conduit is "cute" about finding HDF5. It's not a CMake option() -- | |
# you opt in by setting HDF5_DIR explicitly. So let's do that. | |
# if (TARGET HDF5 AND NOT LBANN_SB_FWD_ZFP_HDF5_DIR) | |
# set(LBANN_SB_FWD_ZFP_HDF5_DIR ${HDF5_DIR}) | |
# endif () |
set(LBANN_SB_SUGG_CMAKE_PREFIX_PATH_TMP "${CMAKE_PREFIX_PATH}:\$\{CMAKE_PREFIX_PATH\}") | ||
message("BVE I think that there is a prefix path ${CMAKE_PREFIX_PATH}") | ||
message("BVE I think that there is a foo ${FOO}") | ||
message("BVE I think that there is a suggesed prefix path ${LBANN_SB_SUGG_CMAKE_PREFIX_PATH_TMP}") | ||
#set(LBANN_SB_SUGG_CMAKE_PREFIX_PATH_TMP "\$\{CMAKE_PREFIX_PATH\}") |
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.
set(LBANN_SB_SUGG_CMAKE_PREFIX_PATH_TMP "${CMAKE_PREFIX_PATH}:\$\{CMAKE_PREFIX_PATH\}") | |
message("BVE I think that there is a prefix path ${CMAKE_PREFIX_PATH}") | |
message("BVE I think that there is a foo ${FOO}") | |
message("BVE I think that there is a suggesed prefix path ${LBANN_SB_SUGG_CMAKE_PREFIX_PATH_TMP}") | |
#set(LBANN_SB_SUGG_CMAKE_PREFIX_PATH_TMP "\$\{CMAKE_PREFIX_PATH\}") |
|
||
# Set to the preferred build directory | ||
BUILD_DIR=${TMPDIR}/lbann-superbuild | ||
|
||
# -G Ninja \ |
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.
# -G Ninja \ |
cmake \ | ||
-G Ninja \ | ||
-G "Unix Makefiles" \ |
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.
-G "Unix Makefiles" \ |
@@ -107,12 +115,13 @@ cmake \ | |||
-D LBANN_SB_BUILD_Aluminum=${BUILD_LBANN_STACK} \ | |||
-D LBANN_SB_Aluminum_CXX_FLAGS="${EXTRA_CXX_FLAGS}" \ | |||
-D LBANN_SB_Aluminum_CUDA_FLAGS="${EXTRA_CUDA_FLAGS}" \ | |||
-D LBANN_SB_FWD_Aluminum_ALUMINUM_ENABLE_CALIPER=ON \ | |||
-D LBANN_SB_FWD_Aluminum_ALUMINUM_ENABLE_CALIPER=OFF \ |
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.
May as well set LBANN_SB_BUILD_adiak=OFF
and LBANN_SB_BUILD_Caliper=OFF
, too.
ZFP # LBANN | ||
H5Z-ZFP # LBANN | ||
HDF5_PLUGINS # LBANN |
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.
ZFP # LBANN | |
H5Z-ZFP # LBANN | |
HDF5_PLUGINS # LBANN | |
ZFP # LBANN (runtime) | |
H5Z-ZFP # LBANN (runtime) | |
HDF5_PLUGINS # LBANN (runtime) |
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.
This file is a bit of a mess -- it looks like this is just a copy of the cacheinit.cmake
file you load with -C
later on? I'd prefer to just use that cacheinit
file rather than have a full copy here. If there are still a bunch of variables you'd prefer to specify manually, I'd prefer to still use a separate file (see the opencv recipe for an example of this).
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, this was not executable in the repository on purpose (executing it wouldn't preserve the meaningful export
statements) -- it should only ever be sourced.
Adding additional HDF5 plugins and ZFP to the superbuild. Updating
the cuda-distconv.sh superbuild example.