<commit_before># Copyright 2013-2021 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 Gloo(CMakePackage):
    """Gloo is a collective communications library."""

    homepage = "https://github.com/facebookincubator/gloo"
    git      = "https://github.com/facebookincubator/gloo.git"

    version('master', branch='master')
    version('2021-05-04', commit='<PASSWORD>')  # py-torch@1.9
    version('2020-09-18', commit='<PASSWORD>a<PASSWORD>6ca<PASSWORD>')  # py-torch@1.7:1.8
    version('2020-03-17', commit='<PASSWORD>cafdca<PASSWORD>')  # py-torch@1.5:1.6
    version('2019-11-05', commit='7c541247a6fa49e5938e3<PASSWORD>da<PASSWORD>')  # py-torch@1.4
    version('2019-09-29', commit='ca528e32fea9ca8f2b16053cff17160290fc84ce')  # py-torch@1.3
    version('2019-06-19', commit='<PASSWORD>')  # py-torch@1.2
    version('2019-02-01', commit='<KEY>')  # py-torch@1.0.1:1.1
    version('2018-11-20', commit='<PASSWORD>')  # py-torch@1.0.0
    version('2018-05-29', commit='<PASSWORD>')  # py-torch@0.4.1
    version('2018-04-06', commit='<PASSWORD>')  # py-torch@:0.4.0

    depends_on('cmake@2.8.12:', type='build')
    depends_on('ninja', type='build')

    generator = 'Ninja'<commit_msg>gloo: add +cuda variant (#24390)<commit_after># Copyright 2013-2021 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 Gloo(CMakePackage, CudaPackage):
    """Gloo is a collective communications library."""

    homepage = "https://github.com/facebookincubator/gloo"
    git      = "https://github.com/facebookincubator/gloo.git"

    version('master', branch='master')
    version('2021-05-04', commit='<PASSWORD>')  # py-torch@1.9
    version('2020-09-18', commit='3dc0328fe6a9d47bd47c0c6ca145a0d8a21845c6')  # py-torch@1.7:1.8
    version('2020-03-17', commit='113bde13035594cafdca247be953610b53026553')  # py-torch@1.5:1.6
    version('2019-11-05', commit='7c541247a6fa49e5938e304ab93b6da661823d0f')  # py-torch@1.4
    version('2019-09-29', commit='ca<PASSWORD>')  # py-torch@1.3
    version('2019-06-19', commit='4<PASSWORD>')  # py-torch@1.2
    version('2019-02-01', commit='<KEY>')  # py-torch@1.0.1:1.1
    version('2018-11-20', commit='<PASSWORD>')  # py-torch@1.0.0
    version('2018-05-29', commit='69eef748cc1dfbe0fefed69b34e6545495f67ac5')  # py-torch@0.4.1
    version('2018-04-06', commit='aad<PASSWORD>2fb40612e991390d8e807f247ed23f13c5')  # py-torch@:0.4.0

    depends_on('cmake@2.8.12:', type='build')
    depends_on('ninja', type='build')

    generator = 'Ninja'

    def cmake_args(self):
        return [self.define_from_variant('USE_CUDA', 'cuda')]
{'fraction_non_alphanumeric': 0.18045897079276774, 'fraction_numerical': 0.1449930458970793, 'mean_word_length': 4.438563327032136, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5706628', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1156, 'n_words': 163}