easyblock = 'ConfigureMake'

name = 'hwloc'
version = '1.5'

homepage = 'http://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 local_computing hardware so as to exploit it accordingly and efficiently."""

toolchain = {'name': 'GCC', 'version': '4.4.7-system'}

# numactl SGI implementation package
osdependencies = ['libnuma']

# We are using system package, this easyconfig is just for not breaking
# toolchains system and module creation
skipsteps = [
    'source',
    'patch',
    'prepare',
    'configure',
    'build',
    'test',
    'install']

sanity_check_paths = {
    'files': ['/usr/bin/hwloc-assembler'],
    'dirs': ['/usr/share/hwloc']
}

moduleclass = 'system'
