easyblock = 'ConfigureMake'

name = 'hwloc'
version = '1.11.3'

homepage = 'https://www.open-mpi.org/projects/hwloc/'
description = """The Portable Hardware Locality (hwloc) software package provides a portable abstraction
 (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including
 NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various
 system attributes such as cache and memory information as well as the locality of I/O devices such as
 network interfaces, InfiniBand HCAs or GPUs. It primarily aims at helping applications with gathering
 information about modern computing hardware so as to exploit it accordingly and efficiently."""

toolchain = {'name': 'intel', 'version': '2016b'}

source_urls = ['https://www.open-mpi.org/software/hwloc/v%(version_major_minor)s/downloads/']
sources = [SOURCE_TAR_GZ]
checksums = ['03a1cc63f23fed7e17e4d4369a75dc77d5c145111b8578b70e0964a12712dea0']

dependencies = [('numactl', '2.0.11')]

configopts = "--enable-libnuma=$EBROOTNUMACTL"

moduleclass = 'system'
