CRADL Machine Learning Proxy Spackage (#18668)
* Initial CRADL Spackage Work Currently resolving ```--single-version-externally-managed``` error * Fixed GPUtil Issues Thanks to Vinay Ramakrishnaiah for overwriting install * Finished CRADL Install Function Finished CRADL install function which is basically copying the scripts to the install directory. Also resolved flake8 issues for PR purposes
This commit is contained in:
parent
49512e21ab
commit
a2673aeddd
30
var/spack/repos/builtin/packages/cradl/package.py
Normal file
30
var/spack/repos/builtin/packages/cradl/package.py
Normal file
@ -0,0 +1,30 @@
|
||||
# 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 Cradl(Package):
|
||||
"""The CRADL proxy application captured performance metrics during
|
||||
inference on data from multiphysics codes, specifically ALE
|
||||
hydrodynamics codes."""
|
||||
|
||||
homepage = "https://github.com/LLNL/CRADL"
|
||||
url = "https://github.com/LLNL/CRADL/archive/master.zip"
|
||||
git = "https://github.com/LLNL/CRADL.git"
|
||||
|
||||
version('master', branch='master')
|
||||
|
||||
depends_on('py-pandas')
|
||||
depends_on('py-torch')
|
||||
depends_on('py-torchvision')
|
||||
depends_on('py-apex')
|
||||
depends_on('py-gputil')
|
||||
depends_on('py-matplotlib')
|
||||
depends_on('py-mpi4py')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# Mostly about providing an environment so just copy everything
|
||||
install_tree('.', prefix)
|
18
var/spack/repos/builtin/packages/py-apex/package.py
Normal file
18
var/spack/repos/builtin/packages/py-apex/package.py
Normal file
@ -0,0 +1,18 @@
|
||||
# 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 PyApex(PythonPackage):
|
||||
"""apex: Pyramid toolkit to add Velruse, Flash Messages,CSRF,
|
||||
ReCaptcha and Sessions."""
|
||||
|
||||
homepage = "https://pypi.org/project/apex/"
|
||||
url = "https://pypi.io/packages/source/a/apex/apex-0.9.10dev.tar.gz"
|
||||
|
||||
version('0.9.10dev', sha256='48aa6d9e805e661e609161bd52e0d02d89a9a32f32dc29cde6c950df58129119')
|
||||
|
||||
depends_on('py-setuptools', type='build')
|
24
var/spack/repos/builtin/packages/py-gputil/package.py
Normal file
24
var/spack/repos/builtin/packages/py-gputil/package.py
Normal file
@ -0,0 +1,24 @@
|
||||
# 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 PyGputil(PythonPackage):
|
||||
"""GPUtil is a Python module for getting the GPU status from NVIDA GPUs
|
||||
using nvidia-smi."""
|
||||
|
||||
homepage = "https://github.com/anderskm/gputil"
|
||||
url = "https://pypi.io/packages/source/G/GPUtil/GPUtil-1.4.0.tar.gz"
|
||||
|
||||
version('1.4.0', sha256='099e52c65e512cdfa8c8763fca67f5a5c2afb63469602d5dcb4d296b3661efb9')
|
||||
|
||||
depends_on('py-setuptools', type='build')
|
||||
depends_on('py-wheel', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# Override install to avoid
|
||||
# error: option --single-version-externally-managed not recognized
|
||||
setup_py('install', '--root=/', '--prefix={0}'.format(prefix))
|
Loading…
Reference in New Issue
Block a user