Adding HDF5 compression plugins to superbuild#2432
Adding HDF5 compression plugins to superbuild#2432bvanessen wants to merge 3 commits intoLBANN:v1.x-developfrom
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.
| # 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.
| # 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.
| # 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.
| # 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.
| 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.
| # -G Ninja \ |
| # -G Ninja \ | ||
| cmake \ | ||
| -G Ninja \ | ||
| -G "Unix Makefiles" \ |
There was a problem hiding this comment.
| -G "Unix Makefiles" \ |
| -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.
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.
| 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.
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.
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.