summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert Pavel <rspavel@lanl.gov>2020-09-16 09:18:01 -0600
committerGitHub <noreply@github.com>2020-09-16 10:18:01 -0500
commit2f0565de64106393892cd3c8274f524d20bfa634 (patch)
tree884fd36f8ec4a7c5d5cce35f5f94551bb45c5fd8 /var
parente41c3ad1fc5cda3981348a430e46e58ec862c8bb (diff)
downloadspack-2f0565de64106393892cd3c8274f524d20bfa634.tar.gz
spack-2f0565de64106393892cd3c8274f524d20bfa634.tar.bz2
spack-2f0565de64106393892cd3c8274f524d20bfa634.tar.xz
spack-2f0565de64106393892cd3c8274f524d20bfa634.zip
Added spackage for cosmoflow-benchmark proxy app (#18685)
* Initial Draft of Cosmoflow Spackage Need to add in logic to streamline cpu/gpu builds * Added ~cuda logic to cosmoflow spackage Added logic to support a ~cuda build for cosmoflow * Requested Changes to Cosmoflow Spackage Made requested changes to cosmoflow spackage
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cosmoflow-benchmark/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cosmoflow-benchmark/package.py b/var/spack/repos/builtin/packages/cosmoflow-benchmark/package.py
new file mode 100644
index 0000000000..97f1fef1d8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/cosmoflow-benchmark/package.py
@@ -0,0 +1,38 @@
+# Copyright 2013-2020 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 CosmoflowBenchmark(Package, CudaPackage):
+ """This is a an implementation of the CosmoFlow 3D convolutional neural
+ network for benchmarking. It is written in TensorFlow with the Keras API
+ and uses Horovod for distributed training."""
+
+ homepage = "https://github.com/sparticlesteve/cosmoflow-benchmark"
+ git = "https://github.com/sparticlesteve/cosmoflow-benchmark.git"
+
+ tags = ['proxy-app']
+
+ version('master', branch='master')
+
+ depends_on('python@3:', type=('build', 'run'))
+
+ depends_on('py-h5py', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-pandas', type=('build', 'run'))
+ depends_on('py-pyyaml', type=('build', 'run'))
+ depends_on('py-horovod', type=('build', 'run'))
+ depends_on('py-mpi4py', type=('build', 'run'))
+
+ depends_on('py-tensorflow+cuda', when='+cuda', type=('build', 'run'))
+ depends_on('py-tensorflow~cuda~nccl', when='~cuda', type=('build', 'run'))
+ depends_on('py-torch+cuda', when='+cuda', type=('build', 'run'))
+ depends_on('py-torch~cuda~cudnn~nccl', when='~cuda', type=('build', 'run'))
+ depends_on('py-horovod tensor_ops=mpi', when='~cuda', type=('build', 'run'))
+
+ def install(self, spec, prefix):
+ # Mostly about providing an environment so just copy everything
+ install_tree('.', prefix)