2021-01-02 15:10:28 +08:00
|
|
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-05-12 12:22:25 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2015-10-22 10:35:31 +08:00
|
|
|
from spack import *
|
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2017-08-05 23:15:18 +08:00
|
|
|
class Apex(CMakePackage):
|
2019-03-15 09:49:07 +08:00
|
|
|
"""Autonomic Performance Environment for eXascale (APEX)."""
|
|
|
|
|
2015-10-22 10:35:31 +08:00
|
|
|
homepage = "http://github.com/khuck/xpress-apex"
|
2015-11-24 08:16:52 +08:00
|
|
|
url = "http://github.com/khuck/xpress-apex/archive/v0.1.tar.gz"
|
2015-10-22 10:35:31 +08:00
|
|
|
|
2020-08-11 09:36:58 +08:00
|
|
|
version('0.1', sha256='efd10f38a61ebdb9f8adee9dc84acaee22d065b2e6eea1888872a7bfca0f4495')
|
2015-10-22 10:35:31 +08:00
|
|
|
|
2020-08-11 09:36:58 +08:00
|
|
|
depends_on("binutils+libiberty@:2.33.1")
|
2015-10-22 10:35:31 +08:00
|
|
|
depends_on("boost@1.54:")
|
2016-03-09 23:46:56 +08:00
|
|
|
depends_on('cmake@2.8.12:', type='build')
|
2015-10-22 10:35:31 +08:00
|
|
|
depends_on("activeharmony@4.5:")
|
2015-10-22 23:06:31 +08:00
|
|
|
depends_on("ompt-openmp")
|
2015-10-22 10:35:31 +08:00
|
|
|
|
2017-08-05 23:15:18 +08:00
|
|
|
def cmake_args(self):
|
2017-08-16 06:17:02 +08:00
|
|
|
spec = self.spec
|
2017-08-05 23:15:18 +08:00
|
|
|
return [
|
|
|
|
'-DBOOST_ROOT=%s' % spec['boost'].prefix,
|
|
|
|
'-DUSE_BFD=TRUE',
|
|
|
|
'-DBFD_ROOT=%s' % spec['binutils'].prefix,
|
|
|
|
'-DUSE_ACTIVEHARMONY=TRUE',
|
|
|
|
'-DACTIVEHARMONY_ROOT=%s' % spec['activeharmony'].prefix,
|
|
|
|
'-DUSE_OMPT=TRUE',
|
|
|
|
'-DOMPT_ROOT=%s' % spec['ompt-openmp'].prefix,
|
|
|
|
]
|