Skip to content

Commit

Permalink
build_ascent caliper support (#1344)
Browse files Browse the repository at this point in the history
* build_ascent: caliper support for linux

* caliper windows progress

* only use adiak if caliper needs it

* skip caliper tools

* trim static cuda ci test outputs
  • Loading branch information
cyrush authored Aug 8, 2024
1 parent b0e0ede commit 283e06d
Show file tree
Hide file tree
Showing 7 changed files with 1,448 additions and 24 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_ascent_gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
enable_fortran=ON \
enable_tests=OFF \
enable_verbose=OFF \
build_caliper=true \
build_ascent=false \
build_jobs=2 \
./scripts/build_ascent/build_ascent.sh
Expand Down
19 changes: 17 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,11 @@ stages:
ENABLE_DRAY: ON
ENABLE_MFEM: ON
BLT_CXX_STD: c++14
# static linking unit tests eats up alot of disk space,
# static linking unit tests + examples eats up alot of disk space,
# so skip building tests in CI to keep us away from clif
ENABLE_TESTS: OFF
ENABLE_EXAMPLES: OFF
ENABLE_UTILS: OFF

ubuntu_20.04_static_cuda_11.4.3:
containerImage: ${{ variables.ubuntu_20_04_cuda_11_4_3_tag }}
Expand All @@ -461,9 +463,12 @@ stages:
ENABLE_DRAY: ON
ENABLE_MFEM: ON
BLT_CXX_STD: c++14
# static linking unit tests eats up alot of disk space,
# static linking unit tests + examples eats up alot of disk space,
# so skip building tests in CI to keep us away from clif
ENABLE_TESTS: OFF
ENABLE_EXAMPLES: OFF
ENABLE_UTILS: OFF

ubuntu_20.04_static_cuda_11.4.3_no_mfem:
containerImage: ${{ variables.ubuntu_20_04_cuda_11_4_3_tag }}
BUILD_SHARED_LIBS: OFF
Expand All @@ -474,6 +479,8 @@ stages:
# static linking unit tests eats up alot of disk space,
# so skip building tests in CI to keep us away from clif
ENABLE_TESTS: OFF
ENABLE_EXAMPLES: OFF
ENABLE_UTILS: OFF
## on hold until we get new CI container with shared libs
# cuda-11.4.0-shared_dray:
# containerImage: ${{ variables.ubuntu_18_cuda_11_4_0_tag }}
Expand Down Expand Up @@ -531,6 +538,8 @@ stages:
if [ $ENABLE_MFEM = 'OFF' ]; then export CMAKE_OPTS="${CMAKE_OPTS} -DMFEM_DIR=IGNORE"; fi
export CMAKE_OPTS="${CMAKE_OPTS} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}"
export CMAKE_OPTS="${CMAKE_OPTS} -DENABLE_TESTS=$ENABLE_TESTS"
export CMAKE_OPTS="${CMAKE_OPTS} -DENABLE_EXAMPLES=$ENABLE_EXAMPLES"
export CMAKE_OPTS="${CMAKE_OPTS} -DENABLE_UTILS=$ENABLE_UTILS"
export CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_INSTALL_PREFIX=../install"
# configure
cmake ${CMAKE_OPTS} -C ${HOST_CONFIG} ../src
Expand Down Expand Up @@ -567,6 +576,9 @@ stages:
export PATH=${CMAKE_BIN_DIR}:$PATH
echo $PATH
which cmake
# copy example we want to test
mkdir -p install/examples/ascent/
cp -r src/examples/using-with-cmake install/examples/ascent/
export LD_LIBRARY_PATH="/usr/local/cuda/compat/"
cd install/examples/ascent/using-with-cmake
mkdir _test_build
Expand All @@ -582,6 +594,9 @@ stages:
cat install/share/ascent/ascent_config.mk
pwd
ls -l
# copy example we want to test
mkdir -p install/examples/ascent/
cp -r src/examples/using-with-make install/examples/ascent/
export LD_LIBRARY_PATH="/usr/local/cuda/compat/"
cd install/examples/ascent/using-with-make
make
Expand Down
Loading

0 comments on commit 283e06d

Please sign in to comment.