blob: c72c46b54a839064350f4e24fdf4dd74654ec9e1 (
plain) (
blame)
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
|
# Copyright 2013-2019 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.1.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
|