easyblock = 'CMakeMake'

name = 'spGPU'
version = 'master'

homepage = 'https://github.com/davidebarbieri/spgpu'
description = """spGPU is a set of custom matrix storages and CUDA kernels for
 sparse linear algebra local_computing on GPU. It isn't a replacement for
 cuBLAS/cuSPARSE that should be used for a full featured linear algebra
 environment on GPU."""

toolchain = {'name': 'GCC', 'version': '4.9.3-2.25'}

source_urls = ['https://github.com/davidebarbieri/spgpu/archive/']
sources = ['%(version)s.tar.gz']

builddependencies = [('CMake', '3.3.1')]

dependencies = [('CUDA', '7.5.18', '', True)]

patches = ['spGPU-master.patch']

srcdir = 'src'

sanity_check_paths = {
    'files': ['lib/libspgpu.a'],
    'dirs': ['bin', 'lib'],
}

moduleclass = 'lib'
