-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92b42ea
commit 54634ba
Showing
7 changed files
with
371 additions
and
174 deletions.
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
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,32 @@ | ||
module purge | ||
module load cuda/11 | ||
module use /gpfs/wolf/proj-shared/csc359/ascent/Modulefiles/Core | ||
module load exasgd-base | ||
module load gcc-ext/7.4.0 | ||
module load spectrum-mpi-ext | ||
module load openblas | ||
module load magma/2.5.3-cuda11 | ||
module load metis | ||
module load mpfr | ||
module load suitesparse | ||
module load cmake/3.18.2 | ||
module load raja | ||
module load umpire | ||
export MY_RAJA_DIR=$RAJA_ROOT | ||
export MY_UMPIRE_DIR=$UMPIRE_ROOT | ||
export MY_METIS_DIR=$OLCF_METIS_ROOT | ||
export MY_HIOP_MAGMA_DIR=$MAGMA_ROOT | ||
export MY_UMFPACK_DIR=$SUITESPARSE_ROOT | ||
export MY_NVCC_ARCH="sm_70" | ||
|
||
if [[ ! -f $BUILDDIR/nvblas.conf ]]; then | ||
cat > $BUILDDIR/nvblas.conf <<EOD | ||
NVBLAS_LOGFILE nvblas.log | ||
NVBLAS_CPU_BLAS_LIB /gpfs/wolf/proj-shared/csc359/ascent/Compiler/gcc-7.4.0/openblas/0.3.10/lib/libopenblas.so | ||
NVBLAS_GPU_LIST ALL | ||
NVBLAS_TILE_DIM 2048 | ||
NVBLAS_AUTOPIN_MEM_ENABLED | ||
EOD | ||
fi | ||
export NVBLAS_CONFIG_FILE=$BUILDDIR/nvblas.conf | ||
EXTRA_CMAKE_ARGS="$EXTRA_CMAKE_ARGS -DHIOP_TEST_WITH_BSUB=ON" |
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,48 @@ | ||
# Attempts to build with all options enabled. This is the default build for | ||
# continuous integration | ||
|
||
defaultBuild() | ||
{ | ||
export CMAKE_OPTIONS="\ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DENABLE_TESTS=ON \ | ||
-DHIOP_USE_MPI=On \ | ||
-DHIOP_SPARSE=On \ | ||
-DHIOP_DEEPCHECKS=ON \ | ||
-DRAJA_DIR=$MY_RAJA_DIR \ | ||
-DHIOP_USE_RAJA=On \ | ||
-Dumpire_DIR=$MY_UMPIRE_DIR \ | ||
-DHIOP_USE_UMPIRE=On \ | ||
-DHIOP_WITH_KRON_REDUCTION=ON \ | ||
-DHIOP_UMFPACK_DIR=$MY_UMFPACK_DIR \ | ||
-DHIOP_METIS_DIR=$MY_METIS_DIR \ | ||
-DHIOP_USE_GPU=ON \ | ||
-DHIOP_MAGMA_DIR=$MY_HIOP_MAGMA_DIR \ | ||
-DHIOP_NVCC_ARCH=$MY_NVCC_ARCH \ | ||
-DHIOP_COINHSL_DIR=$MY_COINHSL_DIR \ | ||
$EXTRA_CMAKE_ARGS" | ||
|
||
if [[ "$BUILD" == "1" ]]; then | ||
if [[ -d $BUILDDIR ]]; then | ||
rm -rf $BUILDDIR || exit 1 | ||
fi | ||
mkdir -p $BUILDDIR || exit 1 | ||
echo | ||
echo Build step | ||
echo | ||
pushd $BUILDDIR || exit 1 | ||
cmake $CMAKE_OPTIONS .. || exit 1 | ||
$MAKE_CMD || exit 1 | ||
popd | ||
fi | ||
|
||
if [[ "$TEST" == "1" ]]; then | ||
echo | ||
echo Testing step | ||
echo | ||
|
||
pushd $BUILDDIR || exit 1 | ||
$CTEST_CMD || exit 1 | ||
popd | ||
fi | ||
} |
Oops, something went wrong.