-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1610 from DARMA-tasking/1609-clean-up-workspace-b…
…efore-tpl-sample-build #1609 clean up workspace before compiling vt-sample-project with vt as TPL
- Loading branch information
Showing
13 changed files
with
85 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
source_dir=${1} | ||
build_dir=${2} | ||
|
||
inclusion_type="" | ||
if test "$VT_INCLUSION_TYPE" = "TPL" | ||
then | ||
inclusion_type="-Dbuild_with_tpl=1" | ||
elif test "$VT_INCLUSION_TYPE" = "EXT_LIB" | ||
then | ||
inclusion_type="-Dbuild_with_libs=1" | ||
fi | ||
|
||
if test "${VT_CI_BUILD:-0}" -eq 1 | ||
then | ||
export VT=${source_dir} | ||
export VT_BUILD=${build_dir}/vt | ||
export VT_INSTALL=${VT_BUILD}/install | ||
export DETECTOR=${build_dir}/detector | ||
export CHECKPOINT=${DETECTOR}/build/checkpoint | ||
|
||
cd "$VT_BUILD" | ||
|
||
if test "$VT_INCLUSION_TYPE" = "TPL" | ||
then | ||
echo "Clean up before building vt-sample-project" | ||
cmake --build . --target clean | ||
rm -rf "$VT_INSTALL" | ||
fi | ||
|
||
if test "$VT_INCLUSION_TYPE" = "EXT_LIB" | ||
then | ||
export vt_DIR="$VT_INSTALL" | ||
fi | ||
|
||
git clone https://github.com/DARMA-tasking/vt-sample-project | ||
mkdir -p vt-sample-project/build | ||
cd vt-sample-project/build || exit | ||
|
||
cmake -G "${CMAKE_GENERATOR:-Ninja}" \ | ||
-Dvt_DIR="${VT}" \ | ||
-Dcheckpoint_DIR="${CHECKPOINT}" \ | ||
-Ddetector_DIR="${DETECTOR}" \ | ||
-Dkokkos_DISABLE:BOOL=1 \ | ||
-Dkokkos_kernels_DISABLE:BOOL=1 \ | ||
-Dvt_trace_only="1" \ | ||
-DVT_BUILD_EXAMPLES="0" \ | ||
-DVT_BUILD_TESTS="0" \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}" \ | ||
-DCMAKE_CXX_COMPILER="${CXX:-c++}" \ | ||
-DCMAKE_C_COMPILER="${CC:-cc}" \ | ||
"$inclusion_type" \ | ||
.. | ||
cmake --build . | ||
|
||
# Try to actually run samples | ||
mpiexec -n 2 ./vt-runtime-sample | ||
mpiexec -n 2 ./vt-trace-only-sample | ||
fi |
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
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