# hhwloc [![hackage](https://img.shields.io/hackage/v/hhwloc.svg?logo=haskell&label=hhwloc)](https://hackage.haskell.org/package/hhwloc) Haskell bindings to https://www.open-mpi.org/projects/hwloc ## Prerequisites You'll need [hwloc](https://github.com/open-mpi/hwloc/), in order to use the bindings. ## Using a custom version of hwloc ``` git clone https://github.com/open-mpi/hwloc ../hwloc cd ../hwloc sh autogen.sh sh configure --disable-picky --disable-cairo --disable-cpuid --disable-libxml2 --disable-io --disable-pci --disable-opencl --disable-cuda --disable-nvml --disable-gl --disable-libudev --disable-netloc make -C hwloc cd ../hhwloc stack exec -- hsc2hs src/System/Libhwloc/Internal -I../hwloc/include stack ghci --ghci-options="-L../hwloc/hwloc/.libs -lhwloc" ```