-
Notifications
You must be signed in to change notification settings - Fork 12
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
7c01a83
commit 44e2d0f
Showing
9 changed files
with
58 additions
and
3 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
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
Empty file.
Empty file.
Empty file.
Empty file.
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Echo each command | ||
set -x | ||
|
||
# Exit on error. | ||
set -e | ||
|
||
# Core deps. | ||
sudo apt-get install wget | ||
|
||
# Install conda+deps. | ||
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniconda.sh | ||
export deps_dir=$HOME/local | ||
export PATH="$HOME/miniconda/bin:$PATH" | ||
bash miniconda.sh -b -p $HOME/miniconda | ||
conda create -y -p $deps_dir c-compiler cxx-compiler cmake ninja 'llvmdev=18.*' \ | ||
tbb-devel tbb libboost-devel 'mppp=1.*' sleef xtensor xtensor-blas blas \ | ||
blas-devel fmt spdlog | ||
source activate $deps_dir | ||
|
||
# Create the build dir and cd into it. | ||
mkdir build | ||
cd build | ||
|
||
# Clear the compilation flags set up by conda. | ||
unset CXXFLAGS | ||
unset CFLAGS | ||
|
||
# Configure. | ||
cmake ../ -G Ninja \ | ||
-DCMAKE_PREFIX_PATH=$deps_dir \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DHEYOKA_BUILD_TESTS=yes \ | ||
-DHEYOKA_BUILD_TUTORIALS=ON \ | ||
-DHEYOKA_WITH_MPPP=yes \ | ||
-DHEYOKA_WITH_SLEEF=yes \ | ||
-DCMAKE_CXX_FLAGS="-fsanitize=address" \ | ||
-DCMAKE_CXX_FLAGS_DEBUG="-g -Og" | ||
|
||
# Build. | ||
ninja -v | ||
|
||
# Run the tests. | ||
ctest -VV -j4 | ||
|
||
set +e | ||
set +x |