repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/cuvs/docs
rapidsai_public_repos/cuvs/docs/source/conf.py
# Copyright (c) 2018-2023, NVIDIA CORPORATION. import os import sys # If extensions (or modules to document with autodoc) are in another # directory, add these directories to sys.path here. If the directory # is relative to the documentation root, use os.path.abspath to make it # absolute, like shown here. sys.path.i...
0
rapidsai_public_repos/cuvs/docs
rapidsai_public_repos/cuvs/docs/source/build.md
# Installation RAFT currently provides libraries for C++ and Python. The C++ libraries, including the header-only and optional shared library, can be installed with Conda. Both the C++ and Python APIs require CMake to build from source. ## Table of Contents - [Install C++ and Python through Conda](#installing-c-an...
0
rapidsai_public_repos/cuvs/docs
rapidsai_public_repos/cuvs/docs/source/index.rst
RAPIDS RAFT: Reusable Accelerated Functions and Tools for Vector Search and More ================================================================================ .. image:: ../../img/raft-tech-stack-vss.png :width: 800 :alt: RAFT Tech Stack Useful Resources ################ .. _raft_reference: https://docs.rapid...
0
rapidsai_public_repos/cuvs/docs
rapidsai_public_repos/cuvs/docs/source/developer_guide.md
# Developer Guide ## General Please start by reading the [Contributor Guide](contributing.md). ## Performance 1. In performance critical sections of the code, favor `cudaDeviceGetAttribute` over `cudaDeviceGetProperties`. See corresponding CUDA devblog [here](https://devblogs.nvidia.com/cuda-pro-tip-the-fast-way-to-q...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/_static/references.css
/* Fix references to not look like parameters */ dl.citation > dt.label { display: unset !important; float: left !important; border: unset !important; background: unset !important; padding: unset !important; margin: unset !important; font-size: unset !important; line-height: unset !important; padding...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/sphinxext/github_link.py
# This contains code with copyright by the scikit-learn project, subject to the # license in /thirdparty/LICENSES/LICENSE.scikit_learn import inspect import os import re import subprocess import sys from functools import partial from operator import attrgetter orig = inspect.isfunction # See https://opendreamkit.or...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/python_api/distance.rst
Distance ======== This page provides `pylibraft` class references for the publicly-exposed elements of the `pylibraft.distance` package. RAFT's distances have been highly optimized and support a wide assortment of different distance measures. .. role:: py(code) :language: python :class: highlight .. autofunct...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/python_api/neighbors.rst
Neighbors ========= This page provides pylibraft class references for the publicly-exposed elements of the neighbors package. .. role:: py(code) :language: python :class: highlight Brute Force ########### .. autofunction:: pylibraft.neighbors.brute_force.knn CAGRA ##### .. autoclass:: pylibraft.neighbors....
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/python_api/matrix.rst
Matrix ====== This page provides `pylibraft` class references for the publicly-exposed elements of the `pylibraft.matrix` package. .. role:: py(code) :language: python :class: highlight .. autofunction:: pylibraft.matrix.select_k
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/python_api/cluster.rst
Cluster ======= This page provides pylibraft class references for the publicly-exposed elements of the `pylibraft.cluster` package. .. role:: py(code) :language: python :class: highlight KMeans ###### .. autoclass:: pylibraft.cluster.kmeans.KMeansParams :members: .. autofunction:: pylibraft.cluster.kmean...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/python_api/common.rst
Common ====== This page provides `pylibraft` class references for the publicly-exposed elements of the `pylibraft.common` package. .. role:: py(code) :language: python :class: highlight Basic Vocabulary ################ .. autoclass:: pylibraft.common.DeviceResources :members: .. autoclass:: pylibraft....
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/cluster_kmeans.rst
K-Means ======= .. role:: py(code) :language: c++ :class: highlight ``#include <raft/cluster/kmeans.cuh>`` .. doxygennamespace:: raft::cluster::kmeans :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors_epsilon_neighborhood.rst
Epsilon Neighborhood ==================== .. role:: py(code) :language: c++ :class: highlight ``#include <raft/neighbors/epsilon_neighborhood.cuh>`` namespace *raft::neighbors::epsilon_neighborhood* .. doxygengroup:: epsilon_neighbors :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/distance.rst
Distance ======== This page provides C++ class references for the publicly-exposed elements of the `raft/distance` package. RAFT's distances have been highly optimized and support a wide assortment of different distance measures. .. role:: py(code) :language: c++ :class: highlight Distance Types --------------...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors.rst
Neighbors ========= This page provides C++ class references for the publicly-exposed elements of the neighbors package. .. role:: py(code) :language: c++ :class: highlight .. toctree:: :maxdepth: 2 :caption: Contents: neighbors_brute_force.rst neighbors_ivf_flat.rst neighbors_ivf_pq.rst neig...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors_ivf_pq.rst
IVF-PQ ====== .. role:: py(code) :language: c++ :class: highlight ``#include <raft/neighbors/ivf_pq.cuh>`` namespace *raft::neighbors::ivf_pq* .. doxygengroup:: ivf_pq :project: RAFT :members: :content-only: Serializer Methods ------------------ ``#include <raft/neighbors/ivf_pq_serialize.cuh>`` ...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/stats_clustering.rst
Clustering Model Scoring ======================== .. role:: py(code) :language: c++ :class: highlight Adjusted Rand Index ------------------- ``#include <raft/stats/adjusted_rand_index.cuh>`` namespace *raft::stats* .. doxygengroup:: stats_adj_rand_index :project: RAFT :members: :content-only: ...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/sparse_types.rst
Sparse Types ============ .. role:: py(code) :language: c++ :class: highlight ``#include <raft/core/sparse_types.hpp>`` .. doxygengroup:: sparse_types :project: RAFT :members: :content-only: .. toctree:: :maxdepth: 2 :caption: Contents: sparse_types_coo_matrix.rst sparse_types_csr_m...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors_ball_cover.rst
Random Ball Cover ================= .. role:: py(code) :language: c++ :class: highlight ``#include <raft/neighbors/ball_cover.cuh>`` namespace *raft::neighbors::ball_cover* .. doxygengroup:: random_ball_cover :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/cluster.rst
Cluster ======= This page provides C++ API references for the publicly-exposed elements of the `raft/cluster` headers. RAFT provides fundamental clustering algorithms which are, themselves, considered reusable building blocks for other algorithms. .. role:: py(code) :language: c++ :class: highlight .. toctree:...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/distance_pairwise.rst
Pairwise Distance ================= .. role:: py(code) :language: c++ :class: highlight ``#include <raft/distance/distance.cuh>`` namespace *raft::distance* .. doxygengroup:: distance_mdspan :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/stats_probability.rst
Probability & Information Theory ================================ .. role:: py(code) :language: c++ :class: highlight Contingency Matrix ------------------ ``#include <raft/stats/contingency_matrix.cuh>`` namespace *raft::stats* .. doxygengroup:: contingency_matrix :project: RAFT :members: :conte...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors_cagra.rst
CAGRA ===== CAGRA is a graph-based nearest neighbors implementation with state-of-the art query performance for both small- and large-batch sized search. Please note that the CAGRA implementation is currently experimental and the API is subject to change from release to release. We are currently working on promoting ...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/sparse_neighbors.rst
Sparse Neighbors ================ .. doxygennamespace:: raft::sparse::neighbors :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/sparse_distance.rst
Sparse Distance =============== .. doxygennamespace:: raft::sparse::distance :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/cluster_spectral.rst
Spectral Clustering =================== .. role:: py(code) :language: c++ :class: highlight ``#include <raft/spectral/partition.cuh>`` .. doxygennamespace:: raft::spectral :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/distance_1nn.rst
1-Nearest Neighbors =================== .. role:: py(code) :language: c++ :class: highlight ``#include <raft/distance/fused_l2_nn.cuh>`` namespace *raft::distance* .. doxygengroup:: fused_l2_nn :project: RAFT :members: :content-only: ``#include <raft/distance/fused_l2_nn.cuh>`` namespace *raft::d...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors_brute_force.rst
Brute-Force =========== .. role:: py(code) :language: c++ :class: highlight ``#include <raft/neighbors/brute_force.cuh>`` namespace *raft::neighbors::brute_force* .. doxygengroup:: brute_force_knn :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/neighbors_ivf_flat.rst
IVF-Flat ======== .. role:: py(code) :language: c++ :class: highlight ``#include <raft/neighbors/ivf_flat.cuh>`` namespace *raft::neighbors::ivf_flat* .. doxygengroup:: ivf_flat :project: RAFT :members: :content-only: Serializer Methods ------------------ ``#include <raft/neighbors/ivf_flat_seria...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/stats_neighborhood.rst
Neighborhood Model Scoring ========================== .. role:: py(code) :language: c++ :class: highlight Trustworthiness --------------- ``#include <raft/stats/trustworthiness.cuh>`` namespace *raft::stats* .. doxygengroup:: stats_trustworthiness :project: RAFT :members: :content-only: Neighbor...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/cluster_slhc.rst
Hierarchical Clustering ======================= .. role:: py(code) :language: c++ :class: highlight ``#include <raft/cluster/single_linkage.cuh>`` .. doxygennamespace:: raft::cluster::hierarchy :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/stats.rst
Stats ===== This page provides C++ class references for the publicly-exposed elements of the stats package. .. role:: py(code) :language: c++ :class: highlight .. toctree:: :maxdepth: 2 :caption: Contents: stats_summary.rst stats_probability.rst stats_regression.rst stats_classification.rst ...
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/cluster_kmeans_balanced.rst
K-Means ======= .. role:: py(code) :language: c++ :class: highlight ``#include <raft/cluster/kmeans_balanced.cuh>`` .. doxygennamespace:: raft::cluster::kmeans_balanced :project: RAFT :members: :content-only:
0
rapidsai_public_repos/cuvs/docs/source
rapidsai_public_repos/cuvs/docs/source/cpp_api/sparse.rst
Sparse ====== Core to RAFT's computational patterns for sparse data is its vocabulary of sparse types. .. role:: py(code) :language: c++ :class: highlight .. toctree:: :maxdepth: 2 :caption: Contents: sparse_types.rst sparse_distance.rst sparse_linalg.rst sparse_matrix.rst sparse_neighbo...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/test_python.sh
#!/bin/bash # Copyright (c) 2022-2023, NVIDIA CORPORATION. set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate Python testing dependencies" rapids-dependency-file-generator \ --output conda \ --file_key test_python \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/test_cpp.sh
#!/bin/bash # Copyright (c) 2022-2023, NVIDIA CORPORATION. set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate C++ testing dependencies" rapids-dependency-file-generator \ --output conda \ --file_key test_cpp \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml rap...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/build_python.sh
#!/bin/bash # Copyright (c) 2022-2023, NVIDIA CORPORATION. set -euo pipefail source rapids-env-update export CMAKE_GENERATOR=Ninja rapids-print-env rapids-logger "Begin py build" CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) version=$(rapids-generate-version) git_commit=$(git rev-parse HEAD) export RAPIDS_PAC...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/build_wheel.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail package_name=$1 package_dir=$2 underscore_package_name=$(echo "${package_name}" | tr "-" "_") source rapids-configure-sccache source rapids-date-string version=$(rapids-generate-version) git_commit=$(git rev-parse HEAD) RAPIDS_PY_CUDA_SUFFIX="...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/check_style.sh
#!/bin/bash # Copyright (c) 2020-2023, NVIDIA CORPORATION. set -euo pipefail rapids-logger "Create checks conda environment" . /opt/conda/etc/profile.d/conda.sh rapids-dependency-file-generator \ --output conda \ --file_key checks \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}"...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/build_cpp.sh
#!/bin/bash # Copyright (c) 2022-2023, NVIDIA CORPORATION. set -euo pipefail source rapids-env-update export CMAKE_GENERATOR=Ninja rapids-print-env version=$(rapids-generate-version) rapids-logger "Begin cpp build" RAPIDS_PACKAGE_VERSION=${version} rapids-conda-retry mambabuild conda/recipes/libcuvs rapids-uplo...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/build_wheel_cuvs.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail # Set up skbuild options. Enable sccache in skbuild config options export SKBUILD_CONFIGURE_OPTIONS="-DRAFT_BUILD_WHEELS=ON -DDETECT_CONDA_ENV=OFF -DFIND_RAFT_CPP=OFF" ci/build_wheel.sh cuvs python/cuvs
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/wheel_smoke_test_cuvs.py
# Copyright (c) 2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/test_wheel_cuvs.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail mkdir -p ./dist RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" RAPIDS_PY_WHEEL_NAME="cuvs_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist # echo to expand wildcard before adding `[extra]` requires for...
0
rapidsai_public_repos/cuvs
rapidsai_public_repos/cuvs/ci/build_docs.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail rapids-logger "Create test conda environment" . /opt/conda/etc/profile.d/conda.sh rapids-dependency-file-generator \ --output conda \ --file_key docs \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee en...
0
rapidsai_public_repos/cuvs/ci
rapidsai_public_repos/cuvs/ci/release/update-version.sh
#!/bin/bash # Copyright (c) 2020-2023, NVIDIA CORPORATION. ######################## # RAFT Version Updater # ######################## ## Usage # bash update-version.sh <new_version> # Format is YY.MM.PP - no leading 'v' or trailing 'a' NEXT_FULL_TAG=$1 # Get current version CURRENT_TAG=$(git tag --merged HEAD | gre...
0
rapidsai_public_repos/cuvs/ci
rapidsai_public_repos/cuvs/ci/checks/black_lists.sh
#!/bin/bash # Copyright (c) 2020-2023, NVIDIA CORPORATION. ########################################## # RAFT black listed function call Tester # ########################################## # PR_TARGET_BRANCH is set by the CI environment git checkout --quiet $PR_TARGET_BRANCH # Switch back to tip of PR branch git chec...
0
rapidsai_public_repos/cuvs/ci
rapidsai_public_repos/cuvs/ci/checks/copyright.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
0
rapidsai_public_repos/cuvs/thirdparty
rapidsai_public_repos/cuvs/thirdparty/LICENSES/LICENSE.pytorch
From PyTorch: Copyright (c) 2016- Facebook, Inc (Adam Paszke) Copyright (c) 2014- Facebook, Inc (Soumith Chintala) Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert) Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu) Copyright (c) 2011-2012 NEC Laboratori...
0
rapidsai_public_repos/cuvs/thirdparty
rapidsai_public_repos/cuvs/thirdparty/LICENSES/LICENSE.faiss
MIT License Copyright (c) Facebook, Inc. and its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
0
rapidsai_public_repos/cuvs/thirdparty
rapidsai_public_repos/cuvs/thirdparty/LICENSES/LICENSE.ann-benchmark
MIT License Copyright (c) 2018 Erik Bernhardsson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
0
rapidsai_public_repos/cuvs/thirdparty
rapidsai_public_repos/cuvs/thirdparty/LICENSES/LICENSE_Date_Nagi
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
0
rapidsai_public_repos
rapidsai_public_repos/gpuci-mgmt/README.md
# gpuci-mgmt Mangement scripts for gpuCI ### [`/ci`](/ci) gpuCI scripts for packer builds ### [`/init`](/init) Scripts used for gpuCI node startup on AWS ### [`/templates`](/templates) Packer build templates for AWS AMI images used in gpuCI
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/aws-nvme.sh
#!/bin/bash # # Copyright (c) 2019, NVIDIA CORPORATION. # # AWS init script for gpuCI nodes with nvme drives on nodes # set -e SCRIPT_NAME="$0" function logger { TS=`date +%F_%H-%M-%S` echo "[$SCRIPT_NAME $TS] $@" } logger "Check if nvme is already mounted; if not format and mount" INSTANCE_NVME=`sudo nvme list |...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/aws-ebs-gpu.sh
#!/bin/bash # # Copyright (c) 2019, NVIDIA CORPORATION. # # AWS init script for gpuCI nodes with EBS only storage, nv-docker # set -e SCRIPT_NAME="$0" function logger { TS=`date +%F_%H-%M-%S` echo "[$SCRIPT_NAME $TS] $@" } logger "Check mounts" mount df -h logger "Ensure jenkins user has full rights on directory...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/aws-nvme-docker-gpu.sh
#!/bin/bash # # Copyright (c) 2019, NVIDIA CORPORATION. # # AWS init script for gpuCI nodes with nvme drives on nodes and GPUs # set -e SCRIPT_NAME="$0" function logger { TS=`date +%F_%H-%M-%S` echo "[$SCRIPT_NAME $TS] $@" } logger "Check if nvme is already mounted; if not format and mount" INSTANCE_NVME=`sudo nv...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/aws-ebs-nvdocker.sh
#!/bin/bash # # Copyright (c) 2019, NVIDIA CORPORATION. # # AWS init script for gpuCI nodes with EBS only storage and nv-docker # # Update/upgrade image first; before unattended-upgrades runs sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get clean # Check mounts mount df -h # Ensure ubuntu user has ful...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/aws-nvme-docker.sh
#!/bin/bash # # Copyright (c) 2019, NVIDIA CORPORATION. # # AWS init script for gpuCI nodes with nvme drives on nodes # set -e SCRIPT_NAME="$0" function logger { TS=`date +%F_%H-%M-%S` echo "[$SCRIPT_NAME $TS] $@" } logger "Check if nvme is already mounted; if not format and mount" INSTANCE_NVME=`sudo nvme list |...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/gcp-docker.sh
#!/bin/bash # # Copyright (c) 2020, NVIDIA CORPORATION. # # GCP init script for gpuCI nodes # set -e SCRIPT_NAME="$0" function logger { TS=`date +%F_%H-%M-%S` echo "[$SCRIPT_NAME $TS] $@" } logger "Update/upgrade image first; before unattended-upgrades runs" sudo apt-get update && sudo apt-get upgrade -y && sudo ...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/init/aws-ebs.sh
#!/bin/bash # # Copyright (c) 2019, NVIDIA CORPORATION. # # AWS init script for gpuCI nodes with EBS only storage # set -e SCRIPT_NAME="$0" function logger { TS=`date +%F_%H-%M-%S` echo "[$SCRIPT_NAME $TS] $@" } logger "Check mounts" mount df -h logger "Ensure ubuntu user has full rights on directory for Jenkins...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/template-gce.json
{ "variables": { "source_image_family": "ubuntu-2004-lts", "machine_type": "e2-medium", "type": "cpu", "arch": "amd64", "key_file": "gce-key.json" }, "builders": [ { "type": "googlecompute", "account_file": "{{user `key_file`}}", "project_id": "rap...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/README.md
# gpuCI AMI Templates This directory contains a [packer](https://www.packer.io/) template for building gpuCI AMIs. ## Building the images 1. [Setup AWS credentials](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) 2. [Ensure the security group](https://docs.aws.amazon.com/vpc/latest/userguid...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/docker.json
{ "variables": { "ansible_host": "default", "ansible_connection": "docker", "type": "cpu" }, "builders": [ { "type": "docker", "image": "ubuntu:20.04", "commit": true, "run_command": [ "-d", "-i",...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/template.json
{ "variables": { "aws_access_key": "", "aws_secret_key": "", "type": "cpu", "arch": "amd64", "instance": "t2.medium" }, "builders": [ { "type": "amazon-ebs", "access_key": "{{user `aws_access_key`}}", "secret_key": "{{user `...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/playbook.yml
--- - name: CPU hosts: cpu become: yes roles: - common - cpu - post_common - name: GPU hosts: gpu become: yes roles: - common - gpu - post_common
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/bootstrap.sh
#!/bin/bash set -ex if [[ "$PACKER_BUILDER_TYPE" != "docker" ]]; then sleep 30 fi df -h lsblk apt-get update apt-get -y upgrade apt-get install -y python3-dev python3-pip
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/packer-ansible.dockerfile
FROM ubuntu:20.04 ENV PATH=/root:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUN apt-get update && \ apt-get install -y software-properties-common && \ apt-add-repository --yes --update ppa:ansible/ansible && \ apt-get update && \ apt-get install -y ansible unzip wget python3-distutil...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/post_build.sh
#!/bin/bash set -ex echo "========== Disk info ==========" df -h lsblk echo echo "========== Python version ==========" python -V echo echo "========== Python3 version ==========" python3 -V echo echo "========== Pip list ==========" pip -V pip list echo echo "========== Pip3 list ==========" pip3 -V pip3 list echo ech...
0
rapidsai_public_repos/gpuci-mgmt
rapidsai_public_repos/gpuci-mgmt/templates/jenkins-update-ec2-ami.py
#!/usr/bin/python import requests import os import sys jenkins_base_url = os.environ['JENKINS_URL'] jenkins_auth_user = os.environ['JENKINS_AUTH_USER'] jenkins_auth_password = os.environ['JENKINS_AUTH_PASSWORD'] jenkins_crumb_name = "" jenkins_crumb_value = "" # shared session required to use crumbs jenkins_session =...
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/gpu
rapidsai_public_repos/gpuci-mgmt/templates/roles/gpu/tasks/main.yml
--- - include_vars: versions.yml - name: Add key for NVIDIA CUDA repos apt_key: url: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub state: present - name: Add repo for NVIDIA CUDA drivers apt_repository: repo: "deb http://developer.download.nvidia.com/compute...
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/gpu/tasks
rapidsai_public_repos/gpuci-mgmt/templates/roles/gpu/tasks/vars/versions.yml
--- # ./vars/versions.yml cuda_libraries_version: 11-5 cuda_drivers_version: 495 cuda_compiler_version: 11-5
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/post_common
rapidsai_public_repos/gpuci-mgmt/templates/roles/post_common/tasks/main.yml
--- - name: Add ubuntu to docker group user: name: ubuntu groups: - docker - wheel
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/common
rapidsai_public_repos/gpuci-mgmt/templates/roles/common/handlers/main.yaml
--- - name: restart chrony service: name: chrony state: restarted
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/common
rapidsai_public_repos/gpuci-mgmt/templates/roles/common/files/jenkins-ec2.id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCNjAPz9lETpd4yblvznDiwoaCTbZ6uEQzexQaaJRUnRGiVIEkggWXGiq7MWz2gEYIpUE5/sLPIJQK/QnNBvXSIojlyQFIIcXGFcQ3fcLTNF/GXjBEMLWO/voJt7IMXzEdlQKfdNtXB/YGRU9Yab9+4w36L/E8myXPEdHscwfJWv80k894GQIaPH3MzwlY1r+hGiE85Y3mCmc7g4n4np6jloBYspj+G6PQG8aYGfvLMuO/zRB2lifyU+7Ta/uLiltahktMZSzV8Ya85t6lNI14gzQnD...
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/common
rapidsai_public_repos/gpuci-mgmt/templates/roles/common/files/chrony.conf
# Welcome to the chrony configuration file. See chrony.conf(5) for more # information about usuable directives. # This will use (up to): # - 4 sources from ntp.ubuntu.com which some are ipv6 enabled # - 2 sources from 2.ubuntu.pool.ntp.org which is ipv6 enabled as well # - 1 source from [01].ubuntu.pool.ntp.org each (...
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/common
rapidsai_public_repos/gpuci-mgmt/templates/roles/common/files/jenkins-prod.id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcbirkJsRrR1QKLZHzHkwYcG5RxsooeRL/TI8r8f8QbDgPNm3jfF07uUSxq45pzEAKRY+Kplnx0rM/RJvYpA/S3hJfB1KaAujAWxidBXaquBVA6Q20cYLYC1TddsFJ5O5L6mgL6AbWEMBCVn9XnBMimWxF9yq7KLIRw9fSE6errC/xHtdHrzeYRLu7VRO6HrjeQ0c9c1af0lJg23ZCLP5sVQyUUG0j/ZeGJeFUInuqN33rJJjGcxaTq+ywEgdlH+eUNcxCDyrAoDNgOJQUqAJtFYKD...
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/common
rapidsai_public_repos/gpuci-mgmt/templates/roles/common/tasks/main.yml
--- - name: Install common packages apt: update_cache: yes pkg: - jq - ansible - openjdk-11-jdk-headless - git - git-lfs - nvme-cli - build-essential - wget - curl - vim - screen - apt-transport-https - ca-certificates - curl ...
0
rapidsai_public_repos/gpuci-mgmt/templates/roles/cpu
rapidsai_public_repos/gpuci-mgmt/templates/roles/cpu/tasks/main.yml
---
0
rapidsai_public_repos/gpuci-mgmt/ci
rapidsai_public_repos/gpuci-mgmt/ci/templates/run.sh
#!/bin/bash # Run script for packer AMI builds set -e cd templates echo "========== CPU-amd64 Build ==========" /root/packer build -var type=cpu -machine-readable template.json | tee cpu_amd64_build.log echo "========== GPU-amd64 Build ==========" /root/packer build -var type=gpu -machine-readable template.json | tee ...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/.pre-commit-config.yaml
repos: - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: - id: isort # Use the config file specific to each subproject so that each # project can specify its own first/third-party packages. args: ["--config-root=python/", "--res...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/fetch_rapids.cmake
# ============================================================================= # Copyright (c) 2018-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apa...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/README.md
# UCXX UCXX is an object-oriented C++ interface for UCX, with native support for Python bindings. ## Building ### Environment setup Before starting it is necessary to have the necessary dependencies installed. The simplest way to get started is to installed [Miniconda](https://docs.conda.io/en/latest/miniconda.html...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/build.sh
#!/bin/bash # SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. # SPDX-License-Identifier: BSD-3-Clause # UCXX build script # This script is used to build the component(s) in this repo from # source, and can be called with various options to customize the # build as needed (see the he...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/dependencies.yaml
# Dependency list for https://github.com/rapidsai/dependency-file-generator files: all: output: conda matrix: cuda: ["11.8", "12.0"] arch: [x86_64] includes: - build_cpp - build_python - checks - cudatoolkit - dev - py_version - run_python - test...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/LICENSE
BSD 3-Clause License Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. 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, t...
0
rapidsai_public_repos
rapidsai_public_repos/ucxx/build_and_run.sh
#!/bin/bash # SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. # SPDX-License-Identifier: BSD-3-Clause NUMARGS=$# ARGS=$* # NOTE: ensure all dir changes are relative to the location of this # script, and that this script resides in the repo dir! REPODIR=$(cd $(dirname $0); pwd) VALI...
0
rapidsai_public_repos/ucxx
rapidsai_public_repos/ucxx/python/pyproject.toml
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. # SPDX-License-Identifier: BSD-3-Clause [build-system] build-backend = "setuptools.build_meta" requires = [ "cmake>=3.26.4", "cython>=3.0.0", "ninja", "rmm==24.2.*", "scikit-build>=0.13.1", "setuptools", "tomli",...
0
rapidsai_public_repos/ucxx
rapidsai_public_repos/ucxx/python/.flake8
[flake8] ignore = E901,E225,E226,E227,E999,E203,W503 exclude = .eggs, *.egg, build, ucxx/__init__.py max-line-length = 88 # Ignore black/flake8-pyi conflicts per-file-ignores = *.pyi:E301 E302 E704
0
rapidsai_public_repos/ucxx
rapidsai_public_repos/ucxx/python/CMakeLists.txt
# ================================================================================= # SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. # SPDX-License-Identifier: BSD 3-Clause License # ================================================================================= cmake_minimum_required(V...
0
rapidsai_public_repos/ucxx
rapidsai_public_repos/ucxx/python/.flake8.cython
# # Copyright (c) 2018-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
rapidsai_public_repos/ucxx
rapidsai_public_repos/ucxx/python/setup.py
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. # SPDX-License-Identifier: BSD-3-Clause from setuptools import find_packages from skbuild import setup packages = find_packages(include=["ucxx*"]) setup( packages=packages, package_data={key: ["*.pxd"] for key in packages}, ...
0
rapidsai_public_repos/ucxx/python
rapidsai_public_repos/ucxx/python/distributed-ucxx/pyproject.toml
[build-system] build-backend = "setuptools.build_meta" requires = [ "setuptools>=64.0.0", "tomli ; python_version < '3.11'", ] [project] name = "distributed-ucxx" version = "0.36.00" description = "UCX communication module for Dask Distributed" readme = { file = "README.md", content-type = "text/markdown" } a...
0
rapidsai_public_repos/ucxx/python
rapidsai_public_repos/ucxx/python/distributed-ucxx/README.md
# UCX Communication Module for Distributed This is the UCX communication module for the Distributed framework. It is required to enable UCX communications.
0
rapidsai_public_repos/ucxx/python
rapidsai_public_repos/ucxx/python/distributed-ucxx/setup.py
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. # SPDX-License-Identifier: BSD-3-Clause from setuptools import find_packages, setup setup( include_package_data=True, packages=find_packages(exclude=["tests", "tests.*"]), entry_points={"distributed.comm.backends": ["ucxx=distr...
0
rapidsai_public_repos/ucxx/python
rapidsai_public_repos/ucxx/python/distributed-ucxx/LICENSE
BSD 3-Clause License Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. 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, ...
0
rapidsai_public_repos/ucxx/python/distributed-ucxx
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx/utils_test.py
from __future__ import annotations import asyncio import logging import sys import pytest from distributed.utils_test import ( # noqa: F401 check_thread_leak, cleanup, gen_test as distributed_gen_test, loop, loop_in_thread, ) import ucxx try: from pytest_timeout import is_debugging except ...
0
rapidsai_public_repos/ucxx/python/distributed-ucxx
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx/distributed_patches.py
from distributed import Scheduler, Worker from distributed.utils import log_errors import ucxx _scheduler_close = Scheduler.close _worker_close = Worker.close def _stop_notifier_thread_and_progress_tasks(): ucxx.stop_notifier_thread() ucxx.core._get_ctx().progress_tasks.clear() async def _scheduler_close_...
0
rapidsai_public_repos/ucxx/python/distributed-ucxx
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx/ucxx.py
""" :ref:`UCX`_ based communications for distributed. See :ref:`communications` for more. .. _UCX: https://github.com/openucx/ucx """ from __future__ import annotations import functools import logging import os import struct import weakref from collections.abc import Awaitable, Callable, Collection from typing impor...
0
rapidsai_public_repos/ucxx/python/distributed-ucxx
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx/__init__.py
from .ucxx import UCXXBackend, UCXXConnector, UCXXListener # noqa: F401 from . import distributed_patches # noqa: F401 __version__ = "0.36.00"
0
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx/tests/test_ucxx.py
from __future__ import annotations import asyncio import os from unittest.mock import patch import pytest import dask from distributed import Client, Scheduler, wait from distributed.comm import connect, listen, parse_address from distributed.comm.core import CommClosedError from distributed.comm.registry import get...
0
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx
rapidsai_public_repos/ucxx/python/distributed-ucxx/distributed_ucxx/tests/test_comms.py
import asyncio import pytest from distributed.comm import connect, listen, parse_address from distributed.comm.registry import backends from distributed_ucxx.utils_test import gen_test # # Test communications through the abstract API # async def check_client_server( addr, check_listen_addr=None, check...
0