Skip to content

Commit

Permalink
Merge pull request #60 from esa/update_hy_6
Browse files Browse the repository at this point in the history
update to hy 6
  • Loading branch information
darioizzo authored Dec 12, 2024
2 parents 82b2c7f + e75e7ac commit 1fe6fcb
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 37 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gha_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
conda_asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: bash tools/gha_conda_asan.sh
conda_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# NOTE: this is needed by codecov
# apparently:
Expand Down Expand Up @@ -73,10 +73,10 @@ jobs:
windows_2019:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- uses: conda-incubator/setup-miniconda@v2
uses: microsoft/setup-msbuild@v2
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: cascade_devel
environment-file: cascade_devel.yml
Expand All @@ -97,13 +97,13 @@ jobs:
osx_11:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: bash tools/gha_conda_osx.sh
build-and-deploydocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install and Build 🔧
run: bash tools/gha_deploydocs.sh
- name: Upload to github pages 🚀
Expand Down
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(NOT CMAKE_BUILD_TYPE)
FORCE)
endif()

project(cascade VERSION 0.1.8 LANGUAGES CXX C)
project(cascade VERSION 0.1.9 LANGUAGES CXX C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/yacma")

Expand Down Expand Up @@ -169,23 +169,25 @@ target_include_directories(cascade PUBLIC
find_package(TBB REQUIRED CONFIG)
target_link_libraries(cascade PRIVATE TBB::tbb)

# Boost.
# NOTE: need 1.73 for atomic_ref.
find_package(Boost 1.73 REQUIRED)
target_link_libraries(cascade PUBLIC Boost::boost)

# fmt.
find_package(fmt REQUIRED CONFIG)
target_link_libraries(cascade PUBLIC fmt::fmt)

# heyoka.
find_package(heyoka 5 REQUIRED CONFIG)
find_package(heyoka 6 REQUIRED CONFIG)
target_link_libraries(cascade PUBLIC heyoka::heyoka)

# spdlog.
find_package(spdlog REQUIRED CONFIG)
target_link_libraries(cascade PRIVATE spdlog::spdlog)

# Boost.
# NOTE: need 1.73 for atomic_ref.
# NOTE: it seems this must to be after find_package(heyoka 6 REQUIRED CONFIG) else
# cmake will complain of the missing target Boost::serialization
find_package(Boost 1.73 REQUIRED CONFIG)
target_link_libraries(cascade PUBLIC Boost::boost)

# Installation of the header files.
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/cascade" DESTINATION include)
#install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/cascade/config.hpp" DESTINATION include/cascade)
Expand Down
12 changes: 6 additions & 6 deletions cascade_devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ dependencies:
- cxx-compiler
- ninja
- cmake >=3.18
- python =3.11
- python
- tbb-devel
- tbb
- boost-cpp >=1.73
- libboost-devel >=1.86
- fmt
- heyoka =5*
- heyoka.py =5*
- heyoka =6*
- heyoka.py =6*
- spdlog
- pybind11 >=2.10
- xtensor
- xtensor-blas
- hdf5
- xtensor-blas
- hdf5
2 changes: 1 addition & 1 deletion src/sim_jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void sim::add_jit_functions()

auto &state = m_data->state;

auto *fp_t = hy::detail::to_llvm_type<double>(state.context());
auto *fp_t = hy::detail::to_internal_llvm_type<double>(state);

detail::add_poly_translator_a(state, m_data->s_ta.get_order());
detail::add_poly_ssdiff3_cfunc(state, m_data->s_ta.get_order());
Expand Down
8 changes: 4 additions & 4 deletions tools/gha_conda_asan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ set -e
sudo apt-get install wget

# Install conda+deps.
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O mambaforge.sh
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh
export deps_dir=$HOME/local
export PATH="$HOME/mambaforge/bin:$PATH"
bash mambaforge.sh -b -p $HOME/mambaforge
mamba env create -f cascade_devel.yml -q -p $deps_dir
export PATH="$HOME/miniforge/bin:$PATH"
bash miniforge.sh -b -p $HOME/miniforge
conda env create -f cascade_devel.yml -q -p $deps_dir
source activate $deps_dir

export CXXFLAGS="$CXXFLAGS -fsanitize=address"
Expand Down
8 changes: 4 additions & 4 deletions tools/gha_conda_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ set -e
sudo apt-get install wget

# Install conda+deps.
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O mambaforge.sh
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh
export deps_dir=$HOME/local
export PATH="$HOME/mambaforge/bin:$PATH"
bash mambaforge.sh -b -p $HOME/mambaforge
mamba env create -f cascade_devel.yml -q -p $deps_dir
export PATH="$HOME/miniforge/bin:$PATH"
bash miniforge.sh -b -p $HOME/miniforge
conda env create -f cascade_devel.yml -q -p $deps_dir
source activate $deps_dir
mamba install lcov -y

Expand Down
10 changes: 7 additions & 3 deletions tools/gha_conda_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ 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/Mambaforge-MacOSX-x86_64.sh -O mambaforge.sh
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh
export deps_dir=$HOME/local
export PATH="$HOME/mambaforge/bin:$PATH"
bash mambaforge.sh -b -p $HOME/mambaforge
export PATH="$HOME/miniforge/bin:$PATH"
bash miniforge.sh -b -p $HOME/miniforge
conda env create -f cascade_devel.yml -q -p $deps_dir
source activate $deps_dir
source activate $deps_dir

mkdir build
cd build
Expand Down
10 changes: 5 additions & 5 deletions tools/gha_deploydocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ set -e
sudo apt-get install wget

# Install conda+deps.
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O mambaforge.sh
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh
export deps_dir=$HOME/local
export PATH="$HOME/mambaforge/bin:$PATH"
bash mambaforge.sh -b -p $HOME/mambaforge
mamba env create -f cascade_devel.yml -q -p $deps_dir
# Adding the necessary tools for doc building
export PATH="$HOME/miniforge/bin:$PATH"
bash miniforge.sh -b -p $HOME/miniforge
conda env create -f cascade_devel.yml -q -p $deps_dir
source activate $deps_dir
# Adding the necessary tools for doc building
mamba install sphinx myst-nb sphinx-book-theme sphinx-design matplotlib pykep sgp4

# Create the build dir and cd into it.
Expand Down

0 comments on commit 1fe6fcb

Please sign in to comment.