Skip to content

Commit 819cce4

Browse files
committed
Add spack
1 parent 8d2b17e commit 819cce4

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

_posts/2024-08-13-build-hpx.markdown

+17-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sudo dnf install hpx-mpich-devel
2121

2222
## Mac OS
2323

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

2626
{% highlight bash %}
2727
brew install hwloc cmake boost
@@ -33,7 +33,23 @@ cmake -DHPX_WITH_FETCH_ASIO=ON ..
3333
make -j 8
3434
{% endhighlight %}
3535

36+
## Spack
3637

38+
On supercomputers and clusters, the HPX package mananger [Spack](https://github.com/spack/spack) can be used to install HPX.
39+
40+
{% highlight bash %}
41+
# Install spack (Update v0.22 with the latest Spack release)
42+
git clone --depth=100 --branch=releases/v0.22 https://github.com/spack/spack.git ~/spack
43+
# Activate Spack
44+
. ~/spack/share/spack/setup-env.sh
45+
# Find compilers
46+
spack compiler find
47+
# Install hpx
48+
spack install hpx
49+
# Install distributed hpx
50+
spack external find openmpi
51+
spack install hpx networking=mpi ^ôpenmpi
52+
{% endhighlight %}
3753

3854

3955

0 commit comments

Comments
 (0)