Skip to content

Commit 2ac1181

Browse files
authored
lbann, dihydrogen: removing nice to have Python packages (spack#29302)
Recipes that are not actually required for LBANN or DiHydrogen to build. These should be concretized within the same environment or installed via PIP using the same Python that installed LBANN. Removing these will help eliminate build time failures that are actually associated with Python tools, not LBANN.
1 parent f6ea562 commit 2ac1181

File tree

2 files changed

+5
-34
lines changed

2 files changed

+5
-34
lines changed

var/spack/repos/builtin/packages/dihydrogen/package.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class Dihydrogen(CMakePackage, CudaPackage, ROCmPackage):
4545
description='Enable ROCm/HIP language features.')
4646
variant('shared', default=True,
4747
description='Enables the build of shared libraries')
48-
variant('docs', default=False,
49-
description='Builds with support for building documentation')
5048

5149
# Variants related to BLAS
5250
variant('openmp_blas', default=False,
@@ -117,9 +115,6 @@ class Dihydrogen(CMakePackage, CudaPackage, ROCmPackage):
117115
depends_on('ninja', type='build')
118116
depends_on('cmake@3.17.0:', type='build')
119117

120-
depends_on('py-breathe', type='build', when='+docs')
121-
depends_on('doxygen', type='build', when='+docs')
122-
123118
depends_on('llvm-openmp', when='%apple-clang +openmp')
124119

125120
# TODO: Debug linker errors when NVSHMEM is built with UCX

var/spack/repos/builtin/packages/lbann/package.py

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
5252
variant('distconv', default=False,
5353
description='Builds with support for spatial, filter, or channel '
5454
'distributed convolutions')
55-
variant('docs', default=False, description='Builds with support for building documentation')
5655
variant('dtype', default='float',
5756
description='Type for floating point representation of weights',
5857
values=('float', 'double'))
59-
variant('extras', default=False, description='Add python modules for LBANN related tools')
6058
variant('fft', default=False, description='Support for FFT operations')
6159
variant('half', default=False,
6260
description='Builds with support for FP16 precision data types')
@@ -74,7 +72,6 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
7472
variant('pfe', default=True, description='Python Frontend for generating and launching models')
7573
variant('boost', default=False, description='Enable callbacks that use Boost libraries')
7674
variant('asan', default=False, description='Build with support for address-sanitizer')
77-
variant('apps', default=True, description='Add python modules for standard LBANN applications')
7875

7976
# LBANN benefits from high performance linkers, but passing these in as command
8077
# line options forces the linker flags to unnecessarily propagate to all
@@ -92,7 +89,6 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
9289
conflicts('~hwloc', when='+al')
9390
conflicts('~cuda', when='+nvshmem')
9491
conflicts('+cuda', when='+rocm', msg='CUDA and ROCm support are mutually exclusive')
95-
conflicts('+extras', when='~pfe', msg='Python extras require the Python front end support')
9692

9793
conflicts('~vision', when='@0.91:0.101')
9894
conflicts('~numpy', when='@0.91:0.101')
@@ -107,8 +103,8 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
107103
conflicts('+gold', when='platform=darwin', msg="gold does not work on Darwin")
108104
conflicts('+lld', when='platform=darwin', msg="lld does not work on Darwin")
109105

110-
depends_on('cmake@3.21.0:', type='build', when='@0.103:')
111-
depends_on('cmake@3.17.0:', type='build', when='@:0.102')
106+
depends_on('cmake@3.21.0: ~doc', type='build', when='@0.103:')
107+
depends_on('cmake@3.17.0: ~doc', type='build', when='@:0.102')
112108

113109
# Specify the correct versions of Hydrogen
114110
depends_on('hydrogen@:1.3.4', when='@0.95:0.100')
@@ -201,9 +197,9 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
201197
depends_on('cnpy', when='+numpy')
202198
depends_on('nccl', when='@0.94:0.98.2 +cuda')
203199

204-
depends_on('conduit@0.4.0: +hdf5~hdf5_compat', when='@0.94:0 +conduit')
205-
depends_on('conduit@0.5.0:0.6 +hdf5~hdf5_compat', when='@0.100:0.101 +conduit')
206-
depends_on('conduit@0.6.0: +hdf5~hdf5_compat~fortran~parmetis', when='@:0.90,0.99:')
200+
depends_on('conduit@0.4.0: +hdf5~hdf5_compat ~python', when='@0.94:0 +conduit')
201+
depends_on('conduit@0.5.0:0.6 +hdf5~hdf5_compat ~python', when='@0.100:0.101 +conduit')
202+
depends_on('conduit@0.6.0: +hdf5~hdf5_compat~fortran~parmetis ~python', when='@:0.90,0.99:')
207203

208204
# LBANN can use Python in two modes 1) as part of an extensible framework
209205
# and 2) to drive the front end model creation and launch
@@ -219,28 +215,8 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage):
219215
depends_on('py-argparse', type='run', when='@:0.90,0.99: +pfe ^python@:2.6,3.0:3.1')
220216
depends_on('py-protobuf+cpp@3.10.0', type=('build', 'run'), when='@:0.90,0.99: +pfe')
221217

222-
# Add Python package dependencies to support applications in the LBANN repo
223-
depends_on('py-numpy@1.16.0:', type=('build', 'run'), when='@:0.90,0.99: +pfe +apps')
224-
depends_on('py-pytest', type=('test', 'run'), when='@:0.90,0.99: +pfe +apps')
225-
depends_on('py-scipy', type=('test', 'run'), when='@:0.90,0.99: +pfe +apps')
226-
depends_on('py-tqdm', type='run', when='@:0.90,0.99: +pfe +apps')
227-
228-
# Add common Python packages that are used for LBANN auxiliary tools
229-
depends_on('py-configparser', type='run', when='@:0.90,0.99: +pfe +extras')
230-
depends_on('py-graphviz@0.10.1:', type='run', when='@:0.90,0.99: +pfe +extras')
231-
depends_on('py-matplotlib@3.0.0:', type='run', when='@:0.90,0.99: +pfe +extras')
232-
depends_on('py-numpy@1.16.0:', type=('build', 'run'), when='@:0.90,0.99: +pfe +extras')
233-
depends_on('py-onnx@1.3.0:', type='run', when='@:0.90,0.99: +pfe +extras')
234-
depends_on('py-pandas@0.24.1:', type='run', when='@:0.90,0.99: +pfe +extras')
235-
depends_on('py-texttable@1.4.0:', type='run', when='@:0.90,0.99: +pfe +extras')
236-
237218
depends_on('protobuf+shared@3.10.0', when='@:0.90,0.99:')
238219

239-
depends_on('py-breathe', type='build', when='+docs')
240-
depends_on('py-sphinx-rtd-theme', type='build', when='+docs')
241-
depends_on('doxygen', type='build', when='+docs')
242-
depends_on('py-m2r', type='build', when='+docs')
243-
244220
depends_on('cereal')
245221
depends_on('catch2', type=('build', 'test'))
246222
depends_on('clara')

0 commit comments

Comments
 (0)