spack/var/spack/repos/builtin/packages/rankstr/package.py
Elsa Gonsiorowski, PhD 9debb7e1b6
SCR: build with components (#14931)
* scr: add develop, legacy branches; version 2.0.0

squash! scr: add develop and legacy versions

* filo: package for SCR component

* spath: package for SCR component

* axl: update for versions 0.3 and 0.2

* scr: build with components

* spath: structure of +mpi if/else

* 👌 capitalization of ecp-veloc

* scr: branches are always greater than any version
2020-03-10 15:27:41 -05:00

29 lines
908 B
Python

# Copyright 2013-2020 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 Rankstr(CMakePackage):
"""Assign one-to-one mapping of MPI ranks to strings"""
homepage = "https://github.com/ecp-veloc/rankstr"
url = "https://github.com/ecp-veloc/rankstr/archive/v0.0.2.zip"
git = "https://github.com/ecp-veloc/rankstr.git"
tags = ['ecp']
version('master', branch='master')
version('0.0.2', sha256='c16d53aa9bb79934cbe2dcd8612e2db7d59de80be500c104e39e8623d4eacd8e')
depends_on('mpi')
def cmake_args(self):
args = []
args.append("-DMPI_C_COMPILER=%s" % self.spec['mpi'].mpicc)
if self.spec.satisfies('platform=cray'):
args.append("-DRANKSTR_LINK_STATIC=ON")
return args