Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

One way to build GridKit and its dependencies is by using Spack. We include Spack as a submodule to the Gridkit repository and use it for our CI builds. For more information on how to use Spack, please refer to their documentation.

Example steps to build using Spack with an environment created on the fly:

git submodule update --init buildsystem/spack
source ./buildsystem/spack/share/spack/setup-env.sh
spack env create gridkit
spack env activate -p gridkit
spack repo add buildsystem/spack_repo/gridkit
spack develop --path=$(pwd) gridkit@develop
spack compiler find
spack add gridkit+enzyme+ipopt+klu+sundials
spack concretize -f
spack install
spack env deactivate

As GridKit matures, we plan to expand on this build approach and provide Spack configurations for different systems of interest.