diff options
Diffstat (limited to 'var')
3 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/depends-on-openmpi/package.py b/var/spack/repos/builtin.mock/packages/depends-on-openmpi/package.py new file mode 100644 index 0000000000..ff3ee9057c --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/depends-on-openmpi/package.py @@ -0,0 +1,16 @@ +# Copyright 2013-2021 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 DependsOnOpenmpi(Package): + """For testing concretization of packages that use + `spack external read-cray-manifest`""" + + depends_on('openmpi') + + version('1.0') + version('0.9') diff --git a/var/spack/repos/builtin.mock/packages/hwloc/package.py b/var/spack/repos/builtin.mock/packages/hwloc/package.py new file mode 100644 index 0000000000..2cd984f438 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/hwloc/package.py @@ -0,0 +1,10 @@ +# Copyright 2013-2021 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 Hwloc(Package): + version('2.0.3') diff --git a/var/spack/repos/builtin.mock/packages/openmpi/package.py b/var/spack/repos/builtin.mock/packages/openmpi/package.py new file mode 100644 index 0000000000..0d02c314a6 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/openmpi/package.py @@ -0,0 +1,15 @@ +# Copyright 2013-2021 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 Openmpi(Package): + version('4.1.1') + + variant('internal-hwloc', default=False) + variant('fabrics', values=any_combination_of('psm', 'mxm')) + + depends_on('hwloc', when="~internal-hwloc") |