repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholememory/memory_handle.hpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholememory/global_reference.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholememory/tensor_description.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholememory/communicator.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/append_unique_impl.h
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/csr_add_self_loop.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/csr_add_self_loop_impl.cu
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/append_unique_func.cuh
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/csr_add_self_loop_impl.h
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/append_unique.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/csr_add_self_loop_func.cuh
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/graph_ops/append_unique_impl.cu
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/unweighted_sample_without_replacement_impl_mapped.cu
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/sample_comm.cuh
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/raft_random_gen.cu
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/weighted_sample_without_replacement_impl.h
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/weighted_sample_without_replacement_impl_mapped.cu
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/unweighted_sample_without_replacement_impl.h
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/unweighted_sample_without_replacement_func.cuh
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/unweighted_sample_without_replacement.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/weighted_sample_without_replacement_func.cuh
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp/src
rapidsai_public_repos/wholegraph/cpp/src/wholegraph_ops/weighted_sample_without_replacement.cpp
/* * Copyright (c) 2019-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...
0
rapidsai_public_repos/wholegraph/cpp
rapidsai_public_repos/wholegraph/cpp/doxygen/main_page.md
# libwholegraph libwholegraph is a C++ GPU Accelerated WholeGraph library.
0
rapidsai_public_repos/wholegraph/cpp
rapidsai_public_repos/wholegraph/cpp/doxygen/header.html
<!-- HTML header for doxygen 1.8.20--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" con...
0
rapidsai_public_repos/wholegraph
rapidsai_public_repos/wholegraph/ci/test_python.sh
#!/bin/bash # Copyright (c) 2022-2023, NVIDIA CORPORATION. set -euo pipefail . /opt/conda/etc/profile.d/conda.sh ARCH=$(arch) EXITCODE=0 if [ "${ARCH}" = "aarch64" ]; then rapids-logger "Exiting aarch64 due to no pytorch-cuda" exit ${EXITCODE} fi if [ "${RAPIDS_CUDA_VERSION:0:2}" == "12" ]; then rapids-logge...
0
rapidsai_public_repos/wholegraph
rapidsai_public_repos/wholegraph/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/wholegraph
rapidsai_public_repos/wholegraph/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 PACKAGES="libwholegraph" CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) version=$(rapids-generate-version) git_commit=$(git rev-parse HEAD) export RAPIDS_PACKAGE_V...
0
rapidsai_public_repos/wholegraph
rapidsai_public_repos/wholegraph/ci/build_wheel.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail package_name="pylibwholegraph" package_dir="python/pylibwholegraph" source rapids-configure-sccache source rapids-date-string version=$(rapids-generate-version) git_commit=$(git rev-parse HEAD) RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-ge...
0
rapidsai_public_repos/wholegraph
rapidsai_public_repos/wholegraph/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/wholegraph
rapidsai_public_repos/wholegraph/ci/test_wheel.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -e # abort the script on error set -o pipefail # piped commands propagate their error set -E # ERR traps are inherited by subcommands mkdir -p ./dist RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" RAPIDS_PY_WHEEL_...
0
rapidsai_public_repos/wholegraph
rapidsai_public_repos/wholegraph/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/libwholegraph rapid...
0
rapidsai_public_repos/wholegraph
rapidsai_public_repos/wholegraph/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/wholegraph
rapidsai_public_repos/wholegraph/ci/test_clang_tidy.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail rapids-logger "Create clang-tidy conda environment" . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate clang-tidy testing dependencies" rapids-dependency-file-generator \ --output conda \ --file_key clang_tidy \ --matrix "cuda=${R...
0
rapidsai_public_repos/wholegraph/ci
rapidsai_public_repos/wholegraph/ci/release/update-version.sh
#!/bin/bash # Copyright (c) 2018-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 l...
0
rapidsai_public_repos/wholegraph/ci
rapidsai_public_repos/wholegraph/ci/checks/copyright.py
# Copyright (c) 2019-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
rapidsai_public_repos/gputreeshap/CMakeLists.txt
#============================================================================= # 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...
0
rapidsai_public_repos
rapidsai_public_repos/gputreeshap/Doxyfile.in
# Doxyfile 1.8.20 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a double hash (##) is considered a comment and is placed in # front of the TAG it is preceding. # # All text after a single hash (#) is considered a comment and will...
0
rapidsai_public_repos
rapidsai_public_repos/gputreeshap/fetch_rapids.cmake
# ============================================================================= # 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.o...
0
rapidsai_public_repos
rapidsai_public_repos/gputreeshap/README.md
# GPUTreeShap GPUTreeShap is a cuda implementation of the TreeShap algorithm by Lundberg et al. [1] for Nvidia GPUs. It is a header only module designed to be included in decision tree libraries as a fast backend for model interpretability using SHAP values. GPUTreeShap also implements variants of TreeShap based on Ta...
0
rapidsai_public_repos
rapidsai_public_repos/gputreeshap/build.sh
#!/bin/bash set -euo pipefail mkdir -p build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_GTEST=ON -DBUILD_EXAMPLES=ON -DBUILD_BENCHMARKS=ON make -j4 cmake --build . --target docs_gputreeshap
0
rapidsai_public_repos
rapidsai_public_repos/gputreeshap/dependencies.yaml
# Dependency list for https://github.com/rapidsai/dependency-file-generator files: build: output: none includes: - build - docs channels: - rapidsai - conda-forge dependencies: build: common: - output_types: [conda] packages: - binutils - cmake ...
0
rapidsai_public_repos
rapidsai_public_repos/gputreeshap/LICENSE
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/gputreeshap
rapidsai_public_repos/gputreeshap/tests/test_utils.h
/* * Copyright (c) 2020, 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 ...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/tests/test_gpu_treeshap.cu
/* * Copyright (c) 2020, 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 ...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/benchmark/benchmark.py
import xgboost as xgb import numpy as np import time from sklearn import datasets from joblib import Memory import pandas as pd import argparse memory = Memory('./cachedir', verbose=0) # Contains a dataset in numpy format as well as the relevant objective and metric class TestDataset: def __init__(self, name, Xy...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/benchmark/format_results.py
import pandas as pd import argparse def print_format(df, format): if "csv" in format: print(df.to_csv(index=False)) if "latex" in format: print(df.to_latex(index=False, float_format="%.2f")) if "text" in format: print(df) if "md" in format: from pytablewriter import Mar...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/benchmark/benchmark_gpu_treeshap.cu
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/GPUTreeShap/gpu_treeshap.h
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/example/example.cu
/* * Copyright (c) 2020, 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 ...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/cmake/doxygen.cmake
# Copyright (c) 2019-2021, 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/gputreeshap
rapidsai_public_repos/gputreeshap/ci/build_and_test.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail . /opt/conda/etc/profile.d/conda.sh rapids-logger "Generate C++ build & test dependencies" rapids-dependency-file-generator \ --output conda \ --file_key build \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" ...
0
rapidsai_public_repos/gputreeshap
rapidsai_public_repos/gputreeshap/ci/check_style.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. # Ignore errors set +e RETVAL="0" . /opt/conda/etc/profile.d/conda.sh # Check for a consistent code format pip install cpplint FORMAT=$(cpplint --recursive GPUTreeShap tests example benchmark 2>&1) FORMAT_RETVAL=$? if [ "$RETVAL" = "0" ]; then RETVAL=$FORMAT_RE...
0
rapidsai_public_repos/gputreeshap/ci
rapidsai_public_repos/gputreeshap/ci/release/update-version.sh
#!/bin/bash # Copyright (c) 2023 NVIDIA CORPORATION. ############################### # gputreeshap 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 --me...
0
rapidsai_public_repos
rapidsai_public_repos/cuDataShader/README.md
# <div align="left"><img src="https://rapids.ai/assets/images/rapids_logo.png" width="90px"/>&nbsp; cuDataShader</div> ## NOTE: This repository is for experimental features only and NOT actively maintained. Full cuDF functionality is now natively available in [Datashader](https://datashader.org/user_guide/Performance.h...
0
rapidsai_public_repos
rapidsai_public_repos/cuDataShader/CHANGELOG.md
# cuDataShader 0.1.0 (20 09 2019) ## New Features - GPU accelerated datashader ## Improvements - Faster ## Bug Fixes - None
0
rapidsai_public_repos
rapidsai_public_repos/cuDataShader/CONTRIBUTING.md
# Contributing to cuDataShader If you are interested in contributing to cuDataShader, your contributions will fall into three categories: 1. You want to report a bug, feature request, or documentation issue - File an [issue](https://github.com/rapidsai/cuDataShader/issues/new/choose) describing what you encoun...
0
rapidsai_public_repos
rapidsai_public_repos/cuDataShader/setup.py
from setuptools import setup setup(name='cudatashader', version='0.1', description='GPU accelerated visualization for Data Science', license='Apache License 2.0', packages=['cudatashader'], zip_safe=False)
0
rapidsai_public_repos
rapidsai_public_repos/cuDataShader/LICENSE
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/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-notebooks/cuDatashader Edge Bundling (US air traffic).ipynb
import math import numpy as np import pandas as pd import cudatashader as ds import cudatashader.transfer_functions as tf from cudatashader.bundling import fdeb_bundle, connect_edges import cudf import time np.set_printoptions(threshold=np.inf)from pyproj import Proj, transform sx, tx = 7.069645631678011e-07, 10.23...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-notebooks/cuDatashader.ipynb
import matplotlib.pyplot as plt import numpy as np import pandas as pd import cudf import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" # Choose GPU pdf = pd.read_csv('data/nyc_taxi.csv', usecols=['dropoff_latitude','dropoff_longitude', 'passenger_count']) # Load into Pandas DF and select rows pdf['passenger_count'] =...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-notebooks/README.md
## cuDataShader Notebook examples This folder contains some example notebooks using cuDataShader to render large amounts of UMAP data, and graph data using a GPU accelerated edge bundling.
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-notebooks/cuDatashader Edge Bundling.ipynb
from IPython.display import Image Image(filename='data/FDEB_edge_bundling.gif')Image(filename='data/compatibility.png')Image(filename='data/forces.gif')import math import numpy as np import pandas as pd import cudatashader as ds import cudatashader.transfer_functions as tf from cudatashader.bundling import fdeb_bundle...
0
rapidsai_public_repos/cuDataShader/cudatashader-notebooks
rapidsai_public_repos/cuDataShader/cudatashader-notebooks/data/flights.csv
PASSENGERS,ORIGIN_AIRPORT_ID,DEST_AIRPORT_ID 1,12264,10397 1,13541,12197 1,10599,12206 1,10792,10581 1,10792,14576 1,11066,11042 1,12339,13931 1,11588,10559 1,10868,13303 1,10006,10170 1,10056,10042 1,10056,12705 1,10056,12854 1,10056,12869 1,10278,10056 1,12705,10056 1,12721,12866 1,12771,10056 1,12782,10556 1,12854,1...
0
rapidsai_public_repos/cuDataShader/cudatashader-notebooks
rapidsai_public_repos/cuDataShader/cudatashader-notebooks/data/airports.csv
AIRPORT_ID,LATITUDE,LONGITUDE 10001,58.10944444,-152.90666667 10003,65.54805556,-161.07166667 10004,68.08333333,-163.16666667 10005,67.57,-148.18388889 10006,57.74527778,-152.88277778 10007,55.55472222,-133.10166667 10008,59.15694444,-151.82916667 10009,59.36277778,-153.43055556 10010,42.28888889,-73.71027778 10011,35....
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-3d-demo/OrbitControls.js
/** * @author qiao / https://github.com/qiao * @author mrdoob / http://mrdoob.com * @author alteredq / http://alteredqualia.com/ * @author WestLangley / http://github.com/WestLangley * @author erich666 / http://erichaines.com * @author ScieCode / http://github.com/sciecode */ import { EventDispatcher, MOUSE, ...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-3d-demo/cuDatashader 3D UMAP Demo.html
<!DOCTYPE html> <html lang="en"> <head> <title>cuDatashader 3D UMAP Demo</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <link type="text/css" rel="stylesheet" href="main.css"> <script src="https://cdnjs.cl...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-3d-demo/README.md
## cuDataShader 3D UMAP Demo The cuDatashader 3D UMAP demo makes it possible to visualize thousands+ of 3D points in real time from a web application connected to a backend server rendering with cuDatashader and a frontend utilizing three.js orbit controls. In this demo, the rendering server computes a UMAP embedding ...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader-3d-demo/render_server.py
from cuml.manifold import UMAP from sklearn.datasets import load_digits from numba import cuda from pyrr import Matrix44 import numpy as np import cudatashader as ds from cudatashader import transfer_functions as tf from cudatashader.colors import Hot from IPython.core.display import display, HTML, clear_output digits...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader/transfer_functions.py
from cudatashader.colors import build_shades from PIL.Image import fromarray from numba import cuda import numpy as np from math import ceil, log1p import pandas as pd maxThreadsPerBlock = cuda.get_current_device().MAX_THREADS_PER_BLOCK np.seterr(divide='ignore', invalid='ignore') @cuda.jit('void(float64[:], float64...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader/colors.py
from numba import cuda import numpy as np color_lookup = { 'aliceblue': (240, 248, 255), 'antiquewhite': (250, 235, 215), 'aqua': (0, 255, 255), 'aquamarine': (127, 255, 212), 'azure': (240, 255, 255), 'beige': (245, 245, 220), 'bisque': (255, 228, 196), 'black': (0, 0, 0), 'blanchedalmond': (255, 23...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader/reductions.py
from numba import cuda import numpy as np import cudf from numba.cuda.cudadrv.devicearray import DeviceNDArrayBase import cupy from math import ceil, isnan def maxThreadsPerBlock(): return cuda.get_current_device().MAX_THREADS_PER_BLOCK @cuda.jit('void(float64[:,:])') def memset_k(input): # Memset aggregation ar...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader/core.py
from numba import cuda import numpy as np from cudatashader.reductions import count, any import cudf from numba.cuda.cudadrv.devicearray import DeviceNDArrayBase from math import ceil, log maxThreadsPerBlock = cuda.get_current_device().MAX_THREADS_PER_BLOCK # Mask value (-1.79e+308 minimal float) mask_value = np.fin...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader/bundling.py
from numba import cuda import numpy as np import cudf from math import ceil, sqrt maxThreadsPerBlock = cuda.get_current_device().MAX_THREADS_PER_BLOCK @cuda.jit('void(float64[:,:], int64[:,:], float64[:,:])') def connect_edges_k(nodes, edges, connected_nodes): # Connect edges kernel i = cuda.grid(1) if i < ...
0
rapidsai_public_repos/cuDataShader
rapidsai_public_repos/cuDataShader/cudatashader/__init__.py
from cudatashader.core import Canvas from cudatashader.reductions import count, any, sum, max, mean
0
rapidsai_public_repos
rapidsai_public_repos/gha-tools/README.md
# gha-tools User tools for RAPIDS GitHub Actions workflows. ### Install gha-tools This tools repo can be installed from GitHub directly with git clone or wget commands. Examples: ```yml - name: Download gha-tools with git clone run: | git clone https://github.com/rapidsai/gha-tools.git -b main /tmp/gha-tools ...
0
rapidsai_public_repos
rapidsai_public_repos/gha-tools/.shellcheckrc
source-path=tools external-sources=true
0
rapidsai_public_repos
rapidsai_public_repos/gha-tools/CONTRIBUTING.md
# Contributing ## Testing Scripts Locally Before opening a pull-request, it is recommended to test all changes locally. The command below is a quick way to set up a disposable test environment for the `gha-tools` repository: ```sh docker run \ --pull=always \ --rm -it \ --network=host \ --gpus all \ -v $H...
0
rapidsai_public_repos
rapidsai_public_repos/gha-tools/LICENSE
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/gha-tools
rapidsai_public_repos/gha-tools/tests/test_rapids-find-anaconda-uploads.py
import sys from os import environ, path import importlib import pytest from unittest import mock tools_dir = path.join(path.dirname(path.realpath(__file__)), "..", "tools") sys.path.insert(0, tools_dir) # import module w/ invalid characters (hyphens) mod = importlib.import_module("rapids-find-anaconda-uploads") @py...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-wheels-anaconda
#!/bin/bash # A utility script to upload Python wheel packages to Anaconda repository using anaconda-client. # Positional Arguments: # 1) wheel name set -exou pipefail source rapids-constants export RAPIDS_SCRIPT_NAME="rapids-wheels-anaconda" if [ -z "$1" ]; then rapids-echo-stderr "Must specify input arguments:...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-date-string
#!/bin/bash # A utility script produces a date string RAPIDS_DATE_STRING="$(date +%y%m%d)" if [ "${GITHUB_ACTIONS:-false}" = "true" ]; then WORKFLOW_DATE=$(rapids-retry gh run view "${GITHUB_RUN_ID}" --json createdAt | jq -r '.createdAt') RAPIDS_DATE_STRING=$(date -d "${WORKFLOW_DATE}" +%y%m%d) fi export RAPIDS_DA...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-pip-wheel-version
#!/bin/bash # A utility script that generates a pip wheel version # Positional Arguments: # 1) epoch timestamp set -exo pipefail export RAPIDS_SCRIPT_NAME="rapids-pip-wheel-version" if [ -z "$1" ]; then rapids-echo-stderr "Must specify input arguments: EPOCH_TIMESTAMP" exit 1 fi epoch_timestamp="$1" function di...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-mamba-retry
#!/bin/bash # # rapids-mamba-retry # # Same as rapids-conda-retry, but sets RAPIDS_CONDA_EXE="mamba" to combine both scripts # # Configurable options are set using the following env vars: # # RAPIDS_MAMBA_BIN - override the mamba binary # Default is "mamba" # # RAPIDS_MAMBA_RE...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/_rapids-download-from-s3
#!/bin/bash # A utility script that downloads an artifact archive from S3, untars it, # and prints the location where it was untarred. # The script can be used locally and in CI. # Positional Arguments: # 1) path to s3 artifact # 2) location to untar it to set -euo pipefail source rapids-constants s3_dl_path="$1" ...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-generate-version
#!/bin/bash # A utility script that generates a package version set -euo pipefail export RAPIDS_SCRIPT_NAME="rapids-generate-version" dunamai_format="{base}" if ! rapids-is-release-build; then # Nightlies include the distance from the last tag as the alpha version. dunamai_format="{base}{stage}{distance}" fi ...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-constants
#!/bin/bash export RAPIDS_DOWNLOADS_BUCKET="rapids-downloads" export RAPIDS_DOWNLOADS_DOMAIN="downloads.rapids.ai"
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-prompt-local-repo-config
#!/bin/bash # A utility script that prompts user to setup repository information in # local environments if [ "${CI:-false}" = "false" ]; then rapids-echo-stderr "Local run detected." rapids-echo-stderr "NVIDIA VPN connectivity is required to download workflow artifacts." if [ -z "${RAPIDS_BUILD_TYPE:-}" ]; the...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-s3-path
#!/bin/bash # A utility script that examines environment variables provided # by GitHub Actions to print out an S3 path where the expected artifact # should be. # # The output format should be one of the following: # ## For PR builds: ## s3://rapids-downloads/ci/<REPO_NAME>/pull-request/<PR_NUMBER>/<SHORT_HASH>/ ## Fo...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/gpuci_logger
#!/bin/bash # # gpuci_logger # # Compatibility wrapper that calls to the new rapids-logger script rapids-echo-stderr "'gpuci_logger' is deprecated, please use 'rapids-logger' instead" rapids-logger "$@"
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/gpuci_retry
#!/bin/bash # # gpuci_retry # # Compatibility wrapper that calls to the new rapids-retry script # Configurable env vars GPUCI_* are re-exported as RAPIDS_* rapids-echo-stderr "'gpuci_retry' is deprecated, please use 'rapids-retry' instead" # alias old GPUCI_ env vars to new RAPIDS_ equivalents if they are set if [[...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-upload-to-s3
#!/bin/bash # A utility script that tars up a specified directory and uploads it to S3 # Positional Arguments: # 1) package name # 2) path to tar up set -eo pipefail source rapids-constants export RAPIDS_SCRIPT_NAME="rapids-upload-to-s3" if [ -z "$1" ] || [ -z "$2" ]; then rapids-echo-stderr "Must specify both i...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/gpuci_mamba_retry
#!/bin/bash # # gpuci_mamba_retry # # Compatibility wrapper that calls to the new rapids-mamba-retry script # Configurable env vars GPUCI_* are re-exported as RAPIDS_* rapids-echo-stderr "'gpuci_mamba_retry' is deprecated, please use 'rapids-mamba-retry' instead" # alias old GPUCI_ env vars to new RAPIDS_ equivalent...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-is-release-build
#!/bin/bash # A utility script that examines environment variables provided by # GitHub Actions to determine whether the current build is a "release" build. # A "release" build occurs when the GITHUB_REF environment variable matches # the pattern "refs/tags/vYY.MM.PP". # Example: # if rapids-is-release-build; then e...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-logger
#!/bin/bash # # rapids-logger # # provides a logging mechanism for scripts to report progress # function rapids-logger { ts=$(date '+%x %T') # shellcheck disable=SC2000 msg_cnt=$(echo "$@" | wc -c) width=$((msg_cnt+6)) bar="" for ((i = 0 ; i <= width ; i++)); do bar="${bar}─" done echo -e "\n\033[3...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-download-conda-from-s3
#!/bin/bash # A utility script that downloads a conda artifact archive from S3, untars it, # and prints the location where it was untarred. # Positional Arguments: # 1) a string of "cpp" or "python" which determines which conda artifact # should be downloaded set -euo pipefail export RAPIDS_SCRIPT_NAME="rapids-d...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-print-env
#!/bin/bash # # rapids-print-env # # Prints summary of environment rapids-logger "Print env" env | sort rapids-logger "Print arch" arch rapids-logger "Check python version" python --version rapids-logger "Check conda environment" conda info conda config --show-sources conda list --show-channel-urls
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-upload-docker-to-s3
#!/bin/bash # A utility script that uploads a docker image tag to S3 # Positional Arguments: # 1) image tag set -eo pipefail export RAPIDS_SCRIPT_NAME="rapids-upload-docker-to-s3" tmp_dir="$(mktemp -d)" if [ -z "$1" ]; then rapids-echo-stderr "Must specify input argument: IMAGE_TAG" exit 1 fi docker_image="$1"...
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-download-wheels-from-s3
#!/bin/bash # A utility script that downloads wheel artifacts from S3 to /wheelhouse # Positional Arguments: # 1) dest dir to download and extract wheels to set -eo pipefail source rapids-prompt-local-repo-config pkg_name="$(rapids-package-name wheel_python)" rapids-download-from-s3 "${pkg_name}" "$@"
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-echo-stderr
#!/usr/bin/env bash # Echo to stderr helper function STR="" if [[ -n "${RAPIDS_SCRIPT_NAME}" ]]; then STR+="[${RAPIDS_SCRIPT_NAME}] " fi STR+="$*" echo "${STR}" >&2
0
rapidsai_public_repos/gha-tools
rapidsai_public_repos/gha-tools/tools/rapids-upload-wheels-to-s3
#!/bin/bash # A utility script that tars up a wheel directory and uploads it to S3 # Positional Arguments: # 1) wheel path to tar up set -e if [ "${CI:-false}" = "false" ]; then rapids-echo-stderr "Packages from local builds cannot be uploaded to S3." rapids-echo-stderr "Open a PR to have successful builds uploa...
0