blob: 8939db446a41edb4127d58dbb175c528d0608ea5 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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 RcclTests(MakefilePackage):
"""These tests check both the performance and the correctness of RCCL
operations. They can be compiled against RCCL."""
homepage = "https://github.com/ROCmSoftwarePlatform/rccl-tests"
git = "https://github.com/ROCmSoftwarePlatform/rccl-tests.git"
url = "https://github.com/ROCmSoftwarePlatform/rccl-tests.git"
tags = ["rocm"]
maintainers("bvanessen")
version("develop", branch="develop", preferred=True)
version("master", branch="master")
variant("mpi", default=True, description="with MPI support")
depends_on("hip")
depends_on("rccl")
depends_on("mpi", when="+mpi")
def build_targets(self):
targets = []
targets.append("HIP_HOME={0}".format(self.spec["hip"].prefix))
targets.append("RCCL_HOME={0}".format(self.spec["rccl"].prefix))
if "+mpi" in self.spec:
targets.append("MPI_HOME={0}".format(self.spec["mpi"].prefix))
targets.append("MPI=1")
return targets
def install(self, spec, prefix):
mkdirp(prefix.bin)
install_tree("./build", prefix.bin)
|