Skip to content

Commit

Permalink
Add spack
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Diehl committed Aug 23, 2024
1 parent 8d2b17e commit 819cce4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion _posts/2024-08-13-build-hpx.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sudo dnf install hpx-mpich-devel

## Mac OS

On Mac OS, we recommend to install the depencies with ´brew´ and compile HPX using CMake as follows:
On Mac OS, we recommend to install the depencies with `brew` and compile HPX using CMake as follows:

{% highlight bash %}
brew install hwloc cmake boost
Expand All @@ -33,7 +33,23 @@ cmake -DHPX_WITH_FETCH_ASIO=ON ..
make -j 8
{% endhighlight %}

## Spack

On supercomputers and clusters, the HPX package mananger [Spack](https://github.com/spack/spack) can be used to install HPX.

{% highlight bash %}
# Install spack (Update v0.22 with the latest Spack release)
git clone --depth=100 --branch=releases/v0.22 https://github.com/spack/spack.git ~/spack
# Activate Spack
. ~/spack/share/spack/setup-env.sh
# Find compilers
spack compiler find
# Install hpx
spack install hpx
# Install distributed hpx
spack external find openmpi
spack install hpx networking=mpi ^ôpenmpi
{% endhighlight %}



Expand Down

0 comments on commit 819cce4

Please sign in to comment.