<commit_before>##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by <NAME>, <EMAIL>, 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 glob import glob
import os


class Cuda(Package):
    """CUDA is a parallel computing platform and programming model invented
    by NVIDIA. It enables dramatic increases in computing performance by
    harnessing the power of the graphics processing unit (GPU).

    Note: NVIDIA does not provide a download URL for CUDA so you will
    need to download it yourself. Go to
    https://developer.nvidia.com/cuda-downloads and select your Operating
    System, Architecture, Distribution, and Version.  For the Installer
    Type, select runfile and click Download. Spack will search your
    current directory for this file. Alternatively, add this file to a
    mirror so that Spack can find it. For instructions on how to set up a
    mirror, see http://spack.readthedocs.io/en/latest/mirrors.html.

    Note: This package does not currently install the drivers necessary
    to run CUDA. These will need to be installed manually. See:
    http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux for
    details.

    """

    homepage = "http://www.nvidia.com/object/cuda_home_new.html"
<commit_msg>Packages: Add CUDA8 (#2823)<commit_after>##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by <NAME>, <EMAIL>, 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 glob import glob
import os


class Cuda(Package):
    """CUDA is a parallel computing platform and programming model invented
    by NVIDIA. It enables dramatic increases in computing performance by
    harnessing the power of the graphics processing unit (GPU).

    Note: NVIDIA does not provide a download URL for CUDA so you will
    need to download it yourself. Go to
    https://developer.nvidia.com/cuda-downloads and select your Operating
    System, Architecture, Distribution, and Version.  For the Installer
    Type, select runfile and click Download. Spack will search your
    current directory for this file. Alternatively, add this file to a
    mirror so that Spack can find it. For instructions on how to set up a
    mirror, see http://spack.readthedocs.io/en/latest/mirrors.html.

    Note: This package does not currently install the drivers necessary
    to run CUDA. These will need to be installed manually. See:
    http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux for
    details.

    """

    homepage = "http://www.nvidia.com/object/cuda_home_new.html"

    version('8.0.44', '6dca912f9b7e2b7569b0074a41713640', expand=False,
            url="file://%s/cuda_8.0.44_linux.run"    % os.getcwd())
{'fraction_non_alphanumeric': 0.12838948233360722, 'fraction_numerical': 0.021364009860312245, 'mean_word_length': 4.082463465553236, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4325812', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1234, 'n_words': 600}