-
Notifications
You must be signed in to change notification settings - Fork 128
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
bp4: integrate SCR calls #3294
Open
adammoody
wants to merge
4
commits into
ornladios:master
Choose a base branch
from
adammoody:scr
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
bp4: integrate SCR calls #3294
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
source /etc/profile.d/z00_lmod.sh | ||
module load cuda/10.2 | ||
module load gcc/8.3.1 | ||
module load cmake/3.23.1 # to avoid cmake FindMPI problem | ||
|
||
set -x | ||
|
||
installdir=`pwd`/install | ||
#rm -rf $installdir | ||
|
||
# download SCR-v3.0.1 release | ||
if [ ! -f scr-v3.0.1.tgz ] ; then | ||
wget https://github.com/LLNL/scr/releases/download/v3.0.1/scr-v3.0.1.tgz | ||
if [ ! -d scr-v3.0.1 ] ; then | ||
tar -xzf scr-v3.0.1.tgz | ||
fi | ||
fi | ||
|
||
# build SCR-v3.0.1 in debug mode | ||
pushd scr-v3.0.1 | ||
installdir_scr=`pwd`/install | ||
rm -rf $installdir_scr | ||
|
||
rm -rf build | ||
mkdir build | ||
pushd build | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX=$installdir_scr \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DSCR_RESOURCE_MANAGER=LSF \ | ||
.. | ||
make -j | ||
make install | ||
popd | ||
popd | ||
|
||
# build ADIOS2 and point to the above SCR installation | ||
rm -rf build | ||
mkdir build | ||
cd build | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX=$installdir \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DADIOS2_USE_MPI=ON \ | ||
-DADIOS2_USE_HDF5=OFF \ | ||
-DADIOS2_USE_CUDA=OFF \ | ||
-DADIOS2_USE_Fortran=OFF \ | ||
-DADIOS2_USE_Python=OFF \ | ||
-DSCR_ROOT=$installdir_scr \ | ||
.. | ||
|
||
make -j | ||
|
||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#------------------------------------------------------------------------------# | ||
# Distributed under the OSI-approved Apache License, Version 2.0. See | ||
# accompanying file Copyright.txt for details. | ||
#------------------------------------------------------------------------------# | ||
# | ||
# FindSCR | ||
# ----------- | ||
# | ||
# Try to find the SCR library | ||
# | ||
# This module defines the following variables: | ||
# | ||
# SCR_FOUND - System has SCR | ||
# SCR_INCLUDE_DIRS - The SCR include directory | ||
# SCR_LIBRARIES - Link these to use SCR | ||
# | ||
# and the following imported targets: | ||
# SCR::SCR - The SCR library target | ||
# | ||
# You can also set the following variable to help guide the search: | ||
# SCR_ROOT - The install prefix for SCR containing the | ||
# include and lib folders | ||
# Note: this can be set as a CMake variable or an | ||
# environment variable. If specified as a CMake | ||
# variable, it will override any setting specified | ||
# as an environment variable. | ||
|
||
if(NOT SCR_FOUND) | ||
if((NOT SCR_ROOT) AND (NOT (ENV{SCR_ROOT} STREQUAL ""))) | ||
set(SCR_ROOT "$ENV{SCR_ROOT}") | ||
endif() | ||
if(SCR_ROOT) | ||
set(SCR_INCLUDE_OPTS HINTS ${SCR_ROOT}/include NO_DEFAULT_PATHS) | ||
set(SCR_LIBRARY_OPTS | ||
HINTS ${SCR_ROOT}/lib ${SCR_ROOT}/lib64 | ||
NO_DEFAULT_PATHS | ||
) | ||
endif() | ||
|
||
find_path(SCR_INCLUDE_DIR scr.h ${SCR_INCLUDE_OPTS}) | ||
find_library(SCR_LIBRARY NAMES scr ${SCR_LIBRARY_OPTS}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(SCR | ||
FOUND_VAR SCR_FOUND | ||
REQUIRED_VARS SCR_LIBRARY SCR_INCLUDE_DIR | ||
) | ||
if(SCR_FOUND) | ||
set(SCR_INCLUDE_DIRS ${SCR_INCLUDE_DIR}) | ||
set(SCR_LIBRARIES ${SCR_LIBRARY}) | ||
if(SCR_FOUND AND NOT TARGET SCR::SCR) | ||
add_library(SCR::SCR UNKNOWN IMPORTED) | ||
set_target_properties(SCR::SCR PROPERTIES | ||
IMPORTED_LOCATION "${SCR_LIBRARY}" | ||
INTERFACE_LINK_LIBRARIES "${SCR_LIBRARIES}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${SCR_INCLUDE_DIR}" | ||
) | ||
endif() | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 had to load gcc to be able to build ADIOS2 (I did not load gcc to be able to build SCR)
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.
Yes, I think I had to do the same.