spack / spack-tutorial

Standalone Spack Tutorial Repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace HDF5 with a quicker-to-build package

tgamblin opened this issue · comments

In the developer workflows tutorial, we build hdf5~mpi, but it still takes a while. Replace it with something that:

  1. builds quickly
  2. has at least one installed dependency already in the build cache
  3. doesn't add any new build cache requirements

Where can I find what is IN the build cache?

spack buildcache list

With the due modifications (i.e. adding the develop version) we can probably use hwloc:

$ spack dev-build hwloc@develop
[ ... ]
==> Successfully installed hwloc
  Fetch: 0.00s.  Build: 56.55s.  Total: 56.55s.
[+] /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.4.0/hwloc-develop-kezfab6iyi5nljlnfmpwy3bgxu7f6rie

It has a few dependencies but they're all in the cache. For sake of comparison here's hdf5 on the same platform as above:

$ spack dev-build hdf5@develop ~mpi
[ ... ]
==> Successfully installed hdf5
  Fetch: 0.00s.  Build: 6m 41.83s.  Total: 6m 41.83s.
[+] /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.4.0/hdf5-develop-ld43fxgqbuqzgf5rrruxuc4l2brs47yy

I'll proceed with hwloc by:

  1. Modifying the Development workflow tutorial and submitting a PR
  2. Modifying the hwloc package and submit a PR to develop and the release branch

@becker33 ☝️