diff options
author | 健美猫 <weijianwen@gmail.com> | 2017-04-10 20:27:15 +0800 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-10 07:27:15 -0500 |
commit | 77673f4c420a374e313a94d41e53bc23f311f139 (patch) | |
tree | 775e0910d04a1ca0fe920acf4943afd79d252251 /var | |
parent | 8e4ada5e99a7e00324fcfd3f70d5a7d80909e85e (diff) | |
download | spack-77673f4c420a374e313a94d41e53bc23f311f139.tar.gz spack-77673f4c420a374e313a94d41e53bc23f311f139.tar.bz2 spack-77673f4c420a374e313a94d41e53bc23f311f139.tar.xz spack-77673f4c420a374e313a94d41e53bc23f311f139.zip |
A new package: cudnn. (#3770)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cudnn/package.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cudnn/package.py b/var/spack/repos/builtin/packages/cudnn/package.py new file mode 100644 index 0000000000..b780bc0d30 --- /dev/null +++ b/var/spack/repos/builtin/packages/cudnn/package.py @@ -0,0 +1,43 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * +from distutils.dir_util import copy_tree + + +class Cudnn(Package): + """NVIDIA cuDNN is a GPU-accelerated library of primitives for deep + neural networks""" + + homepage = "https://developer.nvidia.com/cudnn" + + version('6.0', '4aacb7acb93c5e4dfa9db814df496219', + url='http://developer.download.nvidia.com/compute/redist/cudnn/v6.0/cudnn-8.0-linux-x64-v6.0.tgz') + version('5.1', '406f4ac7f7ee8aa9e41304c143461a69', + url='http://developer.download.nvidia.com/compute/redist/cudnn/v5.1/cudnn-8.0-linux-x64-v5.1.tgz') + + depends_on('cuda@8:') + + def install(self, spec, prefix): + copy_tree('.', prefix) |