Skip to content
Snippets Groups Projects
Commit c0ab44ee authored by Inge Gutheil's avatar Inge Gutheil Committed by Tom Ridley
Browse files

SUNDIALS-6.1.0

parent df12e6f6
No related branches found
No related tags found
No related merge requests found
from easybuild.easyblocks.generic.cmakemake import CMakeMake
from easybuild.tools.modules import get_software_root
class EB_SUNDIALS(CMakeMake):
"""Support for building Sundials."""
def __init__(self, *args, **kwargs):
"""Custom constructor for SuiteSparse easyblock, initialize custom class parameters."""
super(EB_SUNDIALS, self).__init__(*args, **kwargs)
def configure_step(self):
cuda = get_software_root('CUDA')
if cuda:
cuda_cc_space_sep = self.cfg.template_values['cuda_cc_space_sep'].replace('.','').split()
_max = max(cuda_cc_space_sep)
self.cfg['configopts'] += '-DCMAKE_CUDA_ARCHITECTURES=\"%s\"' %_max
super(EB_SUNDIALS, self).configure_step()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment