CLAW Compiler: Add Spack Package (#9405)
This commit is contained in:
parent
fe60b2f6de
commit
a97e9cb282
28
var/spack/repos/builtin/packages/claw/package.py
Normal file
28
var/spack/repos/builtin/packages/claw/package.py
Normal file
@ -0,0 +1,28 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Claw(CMakePackage):
|
||||
"""CLAW Compiler targets performance portability problem in climate and
|
||||
weather application written in Fortran. From a single source code, it
|
||||
generates architecture specific code decorated with OpenMP or OpenACC"""
|
||||
|
||||
homepage = 'https://claw-project.github.io/'
|
||||
git = 'https://github.com/claw-project/claw-compiler.git'
|
||||
maintainers = ['clementval']
|
||||
|
||||
version('1.1.0', commit='16b165a443b11b025a77cad830b1280b8c9bcf01', submodules=True)
|
||||
|
||||
depends_on('cmake@3.0:', type='build')
|
||||
depends_on('java@7:')
|
||||
depends_on('ant@1.9:')
|
||||
depends_on('libxml2')
|
||||
depends_on('bison')
|
||||
|
||||
def cmake_args(self):
|
||||
args = []
|
||||
spec = self.spec
|
||||
|
||||
args.append('-DOMNI_CONF_OPTION=--with-libxml2={0}'.
|
||||
format(spec['libxml2'].prefix))
|
||||
|
||||
return args
|
Loading…
Reference in New Issue
Block a user