package.py 1.1 KB
Newer Older
Rob Latham's avatar
Rob Latham committed
1 2 3 4
from spack import *


class Bake(AutotoolsPackage):
5
    """Margo-enabled wrapper for Pmem, enabling RDMA to Pmem targets."""
Rob Latham's avatar
Rob Latham committed
6 7 8

    homepage = "https://xgitlab.cels.anl.gov/sds/bake"
    url      = "https://xgitlab.cels.anl.gov/sds/bake"
9
    git      = 'https://xgitlab.cels.anl.gov/sds/bake.git'
Rob Latham's avatar
Rob Latham committed
10

11 12
    version('develop', branch='master')
    version('0.1', tag='v0.1')
Rob Latham's avatar
Rob Latham committed
13

14 15
    variant('sizecheck', default=False, description="Enable size/bound checking (may degrade performance)")

16 17 18
    depends_on('autoconf@2.65:', type=("build"))
    depends_on('automake@1.13.4:', type=("build"))
    depends_on('libtool', type=("build"))
19 20
    depends_on('margo@0.4:')
    depends_on('remi@0.1:')
Rob Latham's avatar
Rob Latham committed
21 22
    depends_on('libuuid')
    depends_on('pmem')
23 24 25 26 27 28 29 30 31 32

    def configure_args(self):
        spec = self.spec
        extra_args = []

        if '+sizecheck' in spec:
            extra_args.append('--enable-sizecheck')
        else:
            extra_args.append('--disable-sizecheck')

Matthieu Dorier's avatar
Matthieu Dorier committed
33 34 35 36 37
        if '+timers' in spec:
            extra_args.append('--enable-timers')
        else:
            extra_args.append('--disable-timers')

38
        return extra_args