1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Chill(AutotoolsPackage):
"""A polyheadral compiler for autotuning"""
homepage = "https://github.com/CtopCsUtahEdu/chill"
url = "https://github.com/CtopCsUtahEdu/chill/archive/v0.3.tar.gz"
git = "https://github.com/CtopCsUtahEdu/chill.git"
maintainers = ['dhuth']
version('master', branch='master', deprecated=True)
version('0.3', sha256='574b622368a6bfaadbe9c1fa02fabefdc6c006069246f67d299f943b7e1d8aa3', deprecated=True)
depends_on('boost@1.66.0 cxxstd=11', type='build')
depends_on('rose@0.9.13.0: +cxx11', type=('build', 'run'))
depends_on('autoconf', type='build')
depends_on('automake@1.14:', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('iegenlib', type=('build', 'run'))
depends_on('bison@3.4.2:', type='build')
depends_on('flex', type='build')
# Does not currrently work with Python3
depends_on('python@2.7:2.8')
depends_on('isl', type='build')
depends_on('gmp', type='build')
patch('Add-ISLHOME-option.patch')
patch('Add-GMPHOME-option.patch')
patch('Add-GCC-libquadmath-for-rose.patch')
build_directory = 'spack-build'
def autoreconf(self, spec, prefix):
bash = which('bash')
bash('./bootstrap')
def setup_build_environment(self, env):
rose_home = self.spec['rose'].prefix
boost_home = self.spec['boost'].prefix
iegen_home = self.spec['iegenlib'].prefix
isl_home = self.spec['isl'].prefix
gmp_home = self.spec['gmp'].prefix
env.set('ROSEHOME', rose_home)
env.set('BOOSTHOME', boost_home)
env.set('IEGENHOME', iegen_home)
env.set('ISLHOME', isl_home)
env.set('GMPHOME', gmp_home)
env.append_path('LD_LIBRARY_PATH', rose_home.lib)
env.append_path('LD_LIBRARY_PATH', boost_home.lib)
env.append_path('LD_LIBRARY_PATH', iegen_home.lib)
env.append_path('LD_LIBRARY_PATH', isl_home.lib)
env.append_path('LD_LIBRARY_PATH', gmp_home.lib)
def setup_run_environment(self, env):
rose_home = self.spec['rose'].prefix
boost_home = self.spec['boost'].prefix
iegen_home = self.spec['iegenlib'].prefix
isl_home = self.spec['isl'].prefix
gmp_home = self.spec['gmp'].prefix
env.append_path('LD_LIBRARY_PATH', rose_home.lib)
env.append_path('LD_LIBRARY_PATH', boost_home.lib)
env.append_path('LD_LIBRARY_PATH', iegen_home.lib)
env.append_path('LD_LIBRARY_PATH', isl_home.lib)
env.append_path('LD_LIBRARY_PATH', gmp_home.lib)
def configure_args(self):
args = ['--with-rose={0}'.format(self.spec['rose'].prefix),
'--with-boost={0}'.format(self.spec['boost'].prefix),
'--with-iegen={0}'.format(self.spec['iegenlib'].prefix),
'--with-isl={0}'.format(self.spec['isl'].prefix),
'--with-gmp={0}'.format(self.spec['gmp'].prefix)]
return args
|