Update CMake to 3.21 in LBANN-related projects (#28507)

* Update CMake to 3.21 in LBANN-related projects

* Allow CMake 3.17 for older versions of LBANN, Hydrogen, Aluminum
This commit is contained in:
Tim Moon 2022-01-27 03:21:45 -08:00 committed by GitHub
parent 8106983ddb
commit 71c8375862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -42,7 +42,8 @@ class Aluminum(CMakePackage, CudaPackage, ROCmPackage):
' Put/Get and IPC RMA functionality') ' Put/Get and IPC RMA functionality')
variant('rccl', default=False, description='Builds with support for NCCL communication lib') variant('rccl', default=False, description='Builds with support for NCCL communication lib')
depends_on('cmake@3.17.0:', type='build') depends_on('cmake@3.21.0:', type='build', when='@1.0.1:')
depends_on('cmake@3.17.0:', type='build', when='@:1.0.0')
depends_on('mpi') depends_on('mpi')
depends_on('nccl@2.7.0-0:', when='+nccl') depends_on('nccl@2.7.0-0:', when='+nccl')
depends_on('hwloc@1.11:') depends_on('hwloc@1.11:')

View File

@ -67,7 +67,8 @@ class Hydrogen(CMakePackage, CudaPackage, ROCmPackage):
conflicts('~openmp', when='+omp_taskloops') conflicts('~openmp', when='+omp_taskloops')
conflicts('+cuda', when='+rocm', msg='CUDA and ROCm support are mutually exclusive') conflicts('+cuda', when='+rocm', msg='CUDA and ROCm support are mutually exclusive')
depends_on('cmake@3.17.0:', type='build') depends_on('cmake@3.21.0:', type='build', when='@1.5.2:')
depends_on('cmake@3.17.0:', type='build', when='@:1.5.1')
depends_on('mpi') depends_on('mpi')
depends_on('hwloc@1.11:') depends_on('hwloc@1.11:')
depends_on('hwloc +cuda +nvml', when='+cuda') depends_on('hwloc +cuda +nvml', when='+cuda')

View File

@ -106,7 +106,8 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
conflicts('+gold', when='platform=darwin', msg="gold does not work on Darwin") conflicts('+gold', when='platform=darwin', msg="gold does not work on Darwin")
conflicts('+lld', when='platform=darwin', msg="lld does not work on Darwin") conflicts('+lld', when='platform=darwin', msg="lld does not work on Darwin")
depends_on('cmake@3.17.0:', type='build') depends_on('cmake@3.21.0:', type='build', when='@0.103:')
depends_on('cmake@3.17.0:', type='build', when='@:0.102')
# Specify the correct versions of Hydrogen # Specify the correct versions of Hydrogen
depends_on('hydrogen@:1.3.4', when='@0.95:0.100') depends_on('hydrogen@:1.3.4', when='@0.95:0.100')