-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from nv-legate/branch-22.05
Release v22.05.00
- Loading branch information
Showing
579 changed files
with
20,257 additions
and
13,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
The cuNumeric repository and source distributions bundle several libraries that are | ||
compatibly licensed. We list these here. | ||
|
||
|
||
Name: Cephes | ||
Files: src/cunumeric/cephes/* | ||
License: 3-clause BSD | ||
Distributed under 3-clause BSD license with permission from the author, | ||
see https://lists.debian.org/debian-legal/2004/12/msg00295.html | ||
|
||
Cephes Math Library Release 2.8: June, 2000 | ||
Copyright 1984, 1995, 2000 by Stephen L. Moshier | ||
|
||
This software is derived from the Cephes Math Library and is | ||
incorporated herein by permission of the author. | ||
|
||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of the <organization> nor the | ||
names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY | ||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
install_args=() | ||
|
||
# We rely on an environment variable to determine if we need to build cpu-only bits | ||
if [ -z "$CPU_ONLY" ]; then | ||
# cutensor, relying on the conda cutensor package | ||
install_args+=("--with-cutensor" "$PREFIX") | ||
fi | ||
|
||
# location of legate-core | ||
install_args+=("--with-core" "$PREFIX") | ||
|
||
# location of openblas, relying on the conda openblas package | ||
install_args+=("--with-openblas" "$PREFIX") | ||
|
||
# Verbose mode | ||
install_args+=("-v") | ||
|
||
# Move the stub library into the lib package to make the install think it's pointing at a live installation | ||
if [ -z "$CPU_ONLY" ]; then | ||
cp $PREFIX/lib/stubs/libcuda.so $PREFIX/lib/libcuda.so | ||
ln -s $PREFIX/lib $PREFIX/lib64 | ||
fi | ||
|
||
echo "Install command: $PYTHON install.py ${install_args[@]}" | ||
$PYTHON install.py "${install_args[@]}" | ||
|
||
# Remove the stub library and linking | ||
if [ -z "$CPU_ONLY" ]; then | ||
rm $PREFIX/lib/libcuda.so | ||
rm $PREFIX/lib64 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
gpu_enabled: | ||
- true | ||
- false | ||
python: | ||
- 3.8 | ||
- 3.9 | ||
- 3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{% set name = "cunumeric" %} | ||
{% if gpu_enabled == "true" %} | ||
{% set gpu_enabled_bool = true %} | ||
{% elif gpu_enabled == "false" %} | ||
{% set gpu_enabled_bool = false %} | ||
{% else %} | ||
{# We need to have a default value for the initial pass over the recipe #} | ||
{% set gpu_enabled_bool = false %} | ||
{% endif %} | ||
## The placeholder version is strictly for making two-pass conda build process. | ||
## It should not be used for any other purpose, and this is not a default version. | ||
{% set placeholder_version = '0.0.0.dev' %} | ||
{% set default_cuda_version = '11.5' %} | ||
{% set cuda_version='.'.join(environ.get('CUDA', default_cuda_version).split('.')[:2]) %} | ||
{% set cuda_major=cuda_version.split('.')[0] %} | ||
{% set py_version=environ.get('CONDA_PY', '') %} | ||
{% if build_number is defined %} | ||
{# do nothing if defined #} | ||
{% else %} | ||
{% set build_number = environ.get('GIT_DESCRIBE_NUMBER', '0') %} | ||
{% endif %} | ||
{% if package_version is defined %} | ||
{% set version = package_version %} | ||
{% set core_version = version %} | ||
## The tag must be in one of the two formats (where N is a digit): | ||
## vNN.NN.NN | ||
## vNN.NN.NN.dev | ||
|
||
## Note: default values are only given to make conda build work. They should not be necessary in principle. | ||
{% elif 'dev' in environ.get('GIT_DESCRIBE_TAG', placeholder_version) %} | ||
{% set version = (environ.get('GIT_DESCRIBE_TAG', placeholder_version) ~ environ.get('GIT_DESCRIBE_NUMBER', '')).lstrip('v') %} | ||
{% set core_version = (version.rsplit('.',1)[0] ~ ".dev" ~ "|>=" ~ version.rsplit('.',1)[0]) %} | ||
{% else %} | ||
{% set version = environ.get('GIT_DESCRIBE_TAG', placeholder_version).lstrip('v') %} | ||
{% set core_version = version %} | ||
{% endif %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
{% if package_tar is defined %} | ||
url: {{ package_tar }} | ||
{% else %} | ||
git_url: ../../ | ||
{% endif %} | ||
|
||
build: | ||
skip: true # [not linux] | ||
number: {{ build_number }} | ||
missing_dso_whitelist: | ||
- '*libcuda.so*' | ||
{% if not gpu_enabled_bool %} | ||
string: "cuda{{ cuda_major }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ PKG_BUILDNUM }}_cpu" | ||
{% else %} | ||
string: "cuda{{ cuda_major }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ PKG_BUILDNUM }}" | ||
{% endif %} | ||
{% if not gpu_enabled_bool %} | ||
track_features: | ||
- cpu_only | ||
script_env: | ||
- CPU_ONLY=1 | ||
{% endif %} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- make | ||
{% if gpu_enabled_bool %} | ||
- cuda-nvcc ={{ cuda_version }} | ||
{% endif %} | ||
host: | ||
- python | ||
- openblas =* =*openmp* | ||
{% if not gpu_enabled_bool %} | ||
- legate-core >={{ core_version }} =*_cpu | ||
{% else %} | ||
- legate-core >={{ core_version }} | ||
- cuda-driver-dev ={{ cuda_version }} | ||
- cuda-cudart-dev ={{ cuda_version }} | ||
# - libcutensor-dev >=1.3 | ||
- cutensor >=1.3 | ||
- cuda-nvtx | ||
- libcublas-dev | ||
- libcusolver-dev | ||
- libcufft-dev | ||
- nccl | ||
{% endif %} | ||
|
||
run: | ||
- numpy | ||
- libopenblas =* =*openmp* | ||
{% if gpu_enabled_bool %} | ||
# - libcutensor >=1.3 | ||
- cutensor >=1.3 | ||
- libcublas | ||
- libcusolver | ||
- libcufft | ||
{% endif %} | ||
- opt_einsum >=3.3 | ||
- scipy | ||
- typing_extensions | ||
|
||
run_constrained: | ||
{% if gpu_enabled_bool %} | ||
- __cuda >=11.4 | ||
{% endif %} | ||
- __glibc >=2.17 # [linux] | ||
|
||
about: | ||
home: https://github.com/nv-legate/cunumeric | ||
license: Apache-2.0 | ||
license_file: LICENSE | ||
summary: 'Drop-in Replacment for NumPy' | ||
description: | | ||
cuNumeric is a Legate library that aims to provide | ||
a distributed and accelerated drop-in replacement | ||
for the NumPy API on top of the Legion runtime. | ||
doc_url: https://github.com/nv-legate/cunumeric | ||
dev_url: https://github.com/nv-legate/cunumeric | ||
|
||
extra: | ||
recipe-maintainers: | ||
- m3vaz |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: cunumeric-test | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.10 | ||
|
||
# build | ||
- cutensor>=1.3.3 | ||
- nccl | ||
- setuptools>=60 | ||
|
||
# runtime | ||
- cffi | ||
- numpy>=1.22 | ||
- opt_einsum | ||
- pyarrow>=5 | ||
- scipy | ||
- typing_extensions | ||
|
||
# tests | ||
- clang>=8 | ||
- clang-tools>=8 | ||
- coverage | ||
- mock | ||
- mypy>=0.942 | ||
- pre-commit | ||
- pynvml | ||
- pytest | ||
- pytest-cov | ||
|
||
# pip dependencies | ||
- pip | ||
- pip: | ||
# docs | ||
- jinja2 | ||
- pydata-sphinx-theme | ||
- recommonmark | ||
- sphinx>=4.4.0 | ||
- sphinx-copybutton | ||
- sphinx-markdown-tables | ||
|
||
# examples | ||
- tifffile |
Oops, something went wrong.