summaryrefslogblamecommitdiff
path: root/var/spack/repos/builtin/packages/gpcnet/package.py
blob: 098fa679067cd40e2ebb777687cf5c7e52de5dc7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                                                         












                                                                         


                         












                                                         
# Copyright 2013-2023 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.package import *


class Gpcnet(MakefilePackage):
    """Global Performance and Congestion Network Test - GPCNeT."""

    homepage = "https://github.com/netbench/GPCNET"
    git = "https://github.com/netbench/GPCNET.git"

    license("Apache-2.0")

    version("master")

    depends_on("mpi", type=("build", "run"))

    @property
    def build_targets(self):
        spec = self.spec
        return ["all", "CC={}".format(spec["mpi"].mpicc)]

    def install(self, spec, prefix):
        mkdir(prefix.bin)
        install("network_load_test", prefix.bin)
        install("network_test", prefix.bin)