spack/var/spack/repos/builtin/packages/cub/package.py
Adam J. Stewart 2264e30d99
Update URL parsing regexes and tests (#13411)
* Update URL parsing regexes and tests

* Get rid of no longer used README

* Merge py-udunits and py-cf-units

* netcdf -> netcdf-c

* setup_environment -> setup_*_environment

* Fix doc tests

* Few last minute fixes

* Simplify prefix removal copypasta
2019-10-28 20:27:54 -05:00

21 lines
710 B
Python

# Copyright 2013-2019 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 Cub(Package):
"""CUB is a C++ header library of cooperative threadblock primitives
and other utilities for CUDA kernel programming."""
homepage = "https://nvlabs.github.com/cub"
url = "https://github.com/NVlabs/cub/archive/1.7.1.zip"
version('1.7.1', sha256='50b8777b83093fdfdab429a61fccdbfbbb991b3bbc08385118e5ad58e8f62e1d')
def install(self, spec, prefix):
mkdirp(prefix.include)
install_tree('cub', join_path(prefix.include, 'cub'))