repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/ucx-py/ucp
rapidsai_public_repos/ucx-py/ucp/_libs/__init__.py
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. # See file LICENSE for terms. from .utils import nvtx_annotate # noqa
0
rapidsai_public_repos/ucx-py/ucp
rapidsai_public_repos/ucx-py/ucp/_libs/ucx_request.pyx
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. # See file LICENSE for terms. # cython: language_level=3 from cpython.ref cimport Py_DECREF, Py_INCREF, PyObject from libc.stdint cimport uintptr_t from .exceptions import UCXError, UCXMsgTruncated from .ucx_api_dep cimport * # Counter used as UCX...
0
rapidsai_public_repos/ucx-py/ucp
rapidsai_public_repos/ucx-py/ucp/_libs/ucx_address.pyx
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. # Copyright (c) 2020-2021, UT-Battelle, LLC. All rights reserved. # See file LICENSE for terms. # cython: language_level=3 from libc.stdint cimport uintptr_t from libc.stdlib cimport free from libc.string cimport memcpy from .arr cimport Array from ...
0
rapidsai_public_repos/ucx-py/ucp
rapidsai_public_repos/ucx-py/ucp/_libs/transfer_stream.pyx
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. # Copyright (c) 2020 UT-Battelle, LLC. All rights reserved. # See file LICENSE for terms. # cython: language_level=3 from libc.stdint cimport uintptr_t from .arr cimport Array from .exceptions import ( UCXCanceled, UCXError, UCXMsg...
0
rapidsai_public_repos/ucx-py/ucp
rapidsai_public_repos/ucx-py/ucp/_libs/utils.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # See file LICENSE for terms. import fcntl import glob import os import socket import struct try: from nvtx import annotate as nvtx_annotate except ImportError: # If nvtx module is not installed, `annotate` yields only. from contextlib import ...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_peer_send_recv.py
import multiprocessing as mp import os from itertools import repeat import pytest from ucp._libs import ucx_api from ucp._libs.utils_test import blocking_flush, blocking_recv, blocking_send mp = mp.get_context("spawn") def _rma_setup(worker, address, prkey, base, msg_size): ep = ucx_api.UCXEndpoint.create_from...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_cancel.py
import multiprocessing as mp import re import pytest from ucp._libs import ucx_api from ucp._libs.arr import Array from ucp._libs.utils import get_address from ucp.exceptions import UCXCanceled mp = mp.get_context("spawn") WireupMessage = bytearray(b"wireup") DataMessage = bytearray(b"0" * 10) def _handler(reques...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_arr.py
import array import functools import io import mmap import operator import pytest from ucp._libs.arr import Array builtin_buffers = [ b"", b"abcd", array.array("i", []), array.array("i", [0, 1, 2, 3]), array.array("I", [0, 1, 2, 3]), array.array("f", []), array.array("f", [0, 1, 2, 3]), ...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_probe.py
import multiprocessing as mp import pytest from ucp._libs import ucx_api from ucp._libs.utils import get_address from ucp._libs.utils_test import ( blocking_am_recv, blocking_am_send, blocking_recv, blocking_send, ) mp = mp.get_context("spawn") WireupMessage = bytearray(b"wireup") DataMessage = byte...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_rma.py
import array import io import mmap import os import pytest from ucp._libs import ucx_api from ucp._libs.utils_test import blocking_flush builtin_buffers = [ b"", b"abcd", array.array("i", []), array.array("i", [0, 1, 2, 3]), array.array("I", [0, 1, 2, 3]), array.array("f", []), array.arra...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_address_object.py
import multiprocessing as mp import pickle from ucp._libs import ucx_api mp = mp.get_context("spawn") def test_pickle_ucx_address(): ctx = ucx_api.UCXContext() worker = ucx_api.UCXWorker(ctx) org_address = worker.get_address() dumped_address = pickle.dumps(org_address) org_address_hash = hash(or...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_config.py
import os import pytest from ucp._libs import ucx_api from ucp._libs.arr import Array from ucp._libs.exceptions import UCXConfigError def test_get_config(): # Cache user-defined UCX_TLS and unset it to test default value tls = os.environ.get("UCX_TLS", None) if tls is not None: del os.environ["U...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_mem.py
import array import io import mmap import pytest from ucp._libs import ucx_api builtin_buffers = [ b"", b"abcd", array.array("i", []), array.array("i", [0, 1, 2, 3]), array.array("I", [0, 1, 2, 3]), array.array("f", []), array.array("f", [0, 1, 2, 3]), array.array("d", [0, 1, 2, 3]), ...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_endpoint.py
import functools import multiprocessing as mp import pytest from ucp._libs import ucx_api from ucp._libs.utils import get_address mp = mp.get_context("spawn") def _close_callback(closed): closed[0] = True def _server(queue, server_close_callback): """Server that send received message back to the client ...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_listener.py
from ucp._libs import ucx_api def test_listener_ip_port(): ctx = ucx_api.UCXContext() worker = ucx_api.UCXWorker(ctx) def _listener_handler(conn_request): pass listener = ucx_api.UCXListener(worker=worker, port=0, cb_func=_listener_handler) assert isinstance(listener.ip, str) and listen...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_server_client.py
import multiprocessing as mp import os from queue import Empty as QueueIsEmpty import pytest from ucp._libs import ucx_api from ucp._libs.arr import Array from ucp._libs.utils import get_address from ucp._libs.utils_test import blocking_recv, blocking_send mp = mp.get_context("spawn") def _echo_server(get_queue, p...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/tests/test_server_client_am.py
import multiprocessing as mp import os from functools import partial from queue import Empty as QueueIsEmpty import numpy as np import pytest from ucp._libs import ucx_api from ucp._libs.arr import Array from ucp._libs.utils import get_address from ucp._libs.utils_test import blocking_am_recv, blocking_am_send mp = ...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/src/c_util.c
/** * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. * See file LICENSE for terms. */ #include "c_util.h" #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int c_util_set_sockaddr(ucs_sock_addr_t *sockaddr, const char *ip_address, uin...
0
rapidsai_public_repos/ucx-py/ucp/_libs
rapidsai_public_repos/ucx-py/ucp/_libs/src/c_util.h
/** * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. * See file LICENSE for terms. */ #include <stdint.h> #include <sys/socket.h> #include <ucp/api/ucp.h> int c_util_set_sockaddr(ucs_sock_addr_t *sockaddr, const char *ip_address, uint16_t port); void c_util_sockaddr_free(ucs_sock_addr_t *sockad...
0
rapidsai_public_repos/ucx-py/conda
rapidsai_public_repos/ucx-py/conda/environments/builddocs.yml
name: ucx_dev channels: - rapidsai - nvidia - conda-forge dependencies: # required for building docs - sphinx - sphinx-markdown-tables - sphinx_rtd_theme - sphinxcontrib-websupport - nbsphinx - numpydoc - recommonmark - pandoc=<2.0.0 - pip - ucx - cython - tomli
0
rapidsai_public_repos/ucx-py/conda/recipes
rapidsai_public_repos/ucx-py/conda/recipes/ucx-py/conda_build_config.yaml
c_compiler_version: - 11 cxx_compiler_version: - 11 ucx: - "==1.14.*"
0
rapidsai_public_repos/ucx-py/conda/recipes
rapidsai_public_repos/ucx-py/conda/recipes/ucx-py/meta.yaml
# Copyright (c) 2019-2023, NVIDIA CORPORATION. {% set data = load_file_data("pyproject.toml") %} {% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') %} {% set py_version = environ['CONDA_PY'] %} {% set cuda_version = '.'.join(environ['RAPIDS_CUDA_VERSION'].split('.')[:2]) %} {% set date_string = environ['R...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/bench-all.sh
#!/bin/bash # Copyright (c) 2022, NVIDIA CORPORATION. set -e function logger { echo -e "\n$@\n" } # Requires conda installed at /opt/conda and the ucx environment setup # See UCXPy-CUDA.dockerfile source /opt/conda/etc/profile.d/conda.sh conda activate ucx cd ucx-py/ # Benchmark using command-line provided tran...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/README.md
# Docker container ## Summary Contains reference dockerfile and build script to run UCX-Py tests and benchmarks. This is a minimal setup, without support for CUDA, MOFED, or rdma-core. ## Building Docker image To begin, it's necessary to build the image, this is done as follows: ```bash cd docker docker build -t u...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/ucx-py-cuda11.5.yml
channels: - rapidsai - nvidia - conda-forge dependencies: - python=3.9 - cudatoolkit=11.5 - setuptools - cython>=0.29.14,<3.0.0a0 - pytest - pytest-asyncio - dask - distributed - cupy - numba>=0.57 - rmm
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/build-ucx.sh
#!/bin/bash set -ex UCX_VERSION_TAG=${1:-"v1.13.0"} CONDA_HOME=${2:-"/opt/conda"} CONDA_ENV=${3:-"ucx"} CUDA_HOME=${4:-"/usr/local/cuda"} # Send any remaining arguments to configure CONFIGURE_ARGS=${@:5} source ${CONDA_HOME}/etc/profile.d/conda.sh source ${CONDA_HOME}/etc/profile.d/mamba.sh mamba activate ${CONDA_ENV...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/run.sh
#!/bin/bash # Copyright (c) 2021, NVIDIA CORPORATION. set -e function logger { echo -e "\n$@\n" } PYTHON_PREFIX=$(python -c "import distutils.sysconfig; print(distutils.sysconfig.PREFIX)") ################################################################################ # SETUP - Install python packages and check...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/UCXPy-rdma-core.dockerfile
ARG CUDA_VERSION=11.5.2 ARG DISTRIBUTION_VERSION=ubuntu20.04 FROM nvidia/cuda:${CUDA_VERSION}-devel-${DISTRIBUTION_VERSION} # Tag to checkout from UCX repository ARG UCX_VERSION_TAG=v1.13.0 # Where to install conda, and what to name the created environment ARG CONDA_HOME=/opt/conda ARG CONDA_ENV=ucx # Name of conda sp...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/Dockerfile
FROM python:3 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata && \ apt-get install -y \ automake \ dh-make \ g++ \ git \ libcap2 \ libnuma-dev \ libtool \ make \ udev \ wget ...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/build-ucx-py.sh
#!/bin/bash set -ex CONDA_HOME=${1:-"/opt/conda"} CONDA_ENV=${2:-"ucx"} source ${CONDA_HOME}/etc/profile.d/conda.sh source ${CONDA_HOME}/etc/profile.d/mamba.sh mamba activate ${CONDA_ENV} git clone https://github.com/rapidsai/ucx-py.git pip install -v ucx-py/
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docker/UCXPy-MOFED.dockerfile
ARG CUDA_VERSION=11.5.2 ARG DISTRIBUTION_VERSION=ubuntu20.04 FROM nvidia/cuda:${CUDA_VERSION}-devel-${DISTRIBUTION_VERSION} # Make available to later build stages ARG DISTRIBUTION_VERSION # Should match host OS OFED version (as reported by ofed_info -s) ARG MOFED_VERSION=5.3-1.0.5.0 # Tag to checkout from UCX reposito...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/docs/Makefile
# Minimal makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build SOURCEDIR = source BUILDDIR = build # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/quickstart.rst
Quickstart ========== Setup ----- Create a new conda environment with UCX-Py: :: conda create -n ucx -c conda-forge -c rapidsai \ cudatoolkit=<CUDA version> ucx-py For a more detailed guide on installation options please refer to the :doc:`install` page. Send/Recv NumPy Arrays ---------------------- P...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/os-limits.rst
Operating System Limits ======================= UCX can be affected by a variety of limits, not just defined by UCX itself but also by the operating system. In this section we describe some of the limits that may be encountered by the user when running UCX-Py or just UCX alone. File Descriptors ---------------- In ...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/install.rst
Install ======= Prerequisites ------------- UCX depends on the following system libraries being present: * For system topology identification: ``libnuma`` (``numactl`` on Enterprise Linux) * For MOFED 4.x support: ``libibcm``, ``libibverbs`` and ``librdmacm``. Ideally installed from `Mellanox OFED Drivers <https://w...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/deployment.rst
NVLink and Docker/Kubernetes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order to use NVLink when running in containers using Docker and/or Kubernetes the processes must share an IPC namespace for NVLink to work correctly. Many GPUs in one container ^^^^^^^^^^^^^^^^^^^^^^^^^^ The simplest way to ensure that processing accessing...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/glossary.rst
Glossary -------- - ACK Acknowledge - am Active Message - AMO Atomic Memory Operation - ANL Argonne National Laboratory - AZP AZure Pipeline - bcopy Byte copy - Bistro Binary Instrumentation - BTL Byte Transfer Layer - cm Connection Manager - CMA Cross Memory Attach - CQ Completion Queue(Infiniband) - CQE Completion Q...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/send-recv.rst
Send/Recv Internals =================== Generally UCX creates connections between endpoints with the following steps: 1. Create a ``Listener`` with defined IP address and port a. ``Listener`` defines a callback function to process communications from endpoints 2. Connect an ``Endpoint`` to the ``Listener`` 3. ``End...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/configuration.rst
Configuration ============= UCX/UCX-Py can be configured with a wide variety of options and optimizations including: transport, caching, etc. Users can configure UCX/UCX-Py either with environment variables or programmatically during initialization. Below we demonstrate setting ``UCX_MEMTYPE_CACHE`` to ``n`` and che...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/ucx-debug.rst
UCX Debugging ============= InfiniBand ---------- System Configuration ~~~~~~~~~~~~~~~~~~~~ ``ibdev2netdev`` -- check to ensure at least one IB controller is configured for IPoIB :: user@mlnx:~$ ibdev2netdev mlx5_0 port 1 ==> ib0 (Up) mlx5_1 port 1 ==> ib1 (Up) mlx5_2 port 1 ==> ib2 (Up) mlx5_...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/conf.py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/transport-monitoring.rst
Monitoring Transports ===================== Below is a list of commonly used tools and commands to monitor InfiniBand and CUDA IPC messages: Infiniband ---------- Monitor InfiniBand packet counters -- this number should dramatically increase when there's InfiniBand traffic: :: watch -n 0.1 'cat /sys/class/inf...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/api.rst
API === .. currentmodule:: ucp **ucp** .. autosummary:: ucp ucp.create_listener ucp.create_endpoint ucp.get_address ucp.get_config ucp.get_ucp_worker ucp.get_ucx_version ucp.init ucp.progress ucp.reset **Endpoint** .. autosummary:: Endpoint Endpoint.abort Endpoint.close En...
0
rapidsai_public_repos/ucx-py/docs
rapidsai_public_repos/ucx-py/docs/source/index.rst
UCX-Py ====== UCX-Py is the Python interface for `UCX <https://github.com/openucx/ucx>`_, a low-level high-performance networking library. UCX and UCX-Py supports several transport methods including InfiniBand and NVLink while still using traditional networking protocols like TCP. .. image:: _static/Architecture.pn...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/ci/test_python.sh
#!/bin/bash set -euo pipefail rapids-logger "Create test conda environment" . /opt/conda/etc/profile.d/conda.sh rapids-dependency-file-generator \ --output conda \ --file_key test_python \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml rapids-mamba-retry env crea...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/ci/build_python.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail source rapids-env-update rapids-print-env version=$(rapids-generate-version) commit=$(git rev-parse HEAD) echo "${version}" > VERSION sed -i "/^__git_commit__/ s/= .*/= \"${commit}\"/g" ucp/_version.py rapids-logger "Begin py build" RAPIDS_P...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/ci/build_wheel.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -euo pipefail package_name="ucx-py" underscore_package_name=$(echo "${package_name}" | tr "-" "_") source rapids-configure-sccache source rapids-date-string version=$(rapids-generate-version) commit=$(git rev-parse HEAD) RAPIDS_PY_CUDA_SUFFIX="$(rapids-whee...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/ci/check_style.sh
#!/bin/bash # Copyright (c) 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}" | te...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/ci/test_wheel.sh
#!/bin/bash # Copyright (c) 2023, NVIDIA CORPORATION. set -eoxu pipefail mkdir -p ./dist RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" RAPIDS_PY_WHEEL_NAME="ucx_py_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist # echo to expand wildcard before adding `[extra]` requires ...
0
rapidsai_public_repos/ucx-py/ci
rapidsai_public_repos/ucx-py/ci/release/update-version.sh
#!/bin/bash ######################## # ucx-py Version Updater # ######################## ## Usage # bash update-version.sh <new_version> # Format is Major.Minor.Patch - no leading 'v' or trailing 'a' # Example: 0.30.00 NEXT_FULL_TAG=$1 # Get current version CURRENT_TAG=$(git tag | grep -xE 'v[0-9\.]+' | sort --vers...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/test_send_recv_many_workers.py
import asyncio import multiprocessing import os import random import threading import cloudpickle import numpy as np import pytest from debug_utils import get_cuda_devices, set_rmm from utils import recv, send from distributed.comm.utils import to_frames from distributed.protocol import to_serialize import ucp from ...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/README.md
## Debug Tests Files in this directory are useful for debugging purposes and often require being executed in two separate sessions (tmux/ssh/etc). NOTE: This was moved outside of the tests directory to prevent users running potentially unstable tests by accident. ## Send/Recv `send.py` and `recv.py` are used to de...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/server.py
import asyncio import os import cloudpickle import pytest from debug_utils import ITERATIONS, parse_args, set_rmm, start_process from utils import recv, send from distributed.comm.utils import to_frames from distributed.protocol import to_serialize import ucp from ucp.utils import get_event_loop cmd = "nvidia-smi n...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/debug_utils.py
import argparse import os import cloudpickle import cupy from utils import get_num_gpus from dask.utils import parse_bytes import rmm from rmm.allocators.cupy import rmm_cupy_allocator ITERATIONS = 100 def set_rmm(): rmm.reinitialize( pool_allocator=True, managed_memory=False, initial_pool_size=parse_...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/scheduler.sh
#!/bin/bash set -e #export UCX_LOG_LEVEL=TRACE # export UCXPY_LOG_LEVEL=DEBUG export UCX_MEMTYPE_CACHE=n export UCX_TLS=tcp,cuda_copy,rc,cuda_ipc UCX_NET_DEVICES=mlx5_0:1 CUDA_VISIBLE_DEVICES=0 python send.py 2>&1 | tee /tmp/send-log.txt &
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/utils.py
import io import logging import os from contextlib import contextmanager import numpy as np import pytest import ucp normal_env = { "UCX_RNDV_SCHEME": "put_zcopy", "UCX_MEMTYPE_CACHE": "n", "UCX_TLS": "rc,cuda_copy,cuda_ipc", "CUDA_VISIBLE_DEVICES": "0", } def set_env(): os.environ.update(norma...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/test_endpoint_error_callback.py
# This test requires InfiniBand, to run: # UCXPY_IFNAME=ib0 UCX_NET_DEVICES=mlx5_0:1 \ # UCX_TLS=rc,tcp,cuda_copy \ # py.test --cache-clear tests/debug-tests/test_endpoint_error_callback.py import asyncio import multiprocessing import os import random import signal import sys import cloudpickle import pytest from util...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/client.py
import asyncio import os import time import pynvml import pytest from debug_utils import ( ITERATIONS, parse_args, set_rmm, start_process, total_nvlink_transfer, ) from utils import recv, send import ucp from ucp.utils import get_event_loop pynvml.nvmlInit() cmd = "nvidia-smi nvlink --setcontro...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/debug-tests/multi-node-workers.sh
#!/bin/bash set -e #export UCX_LOG_LEVEL=DEBUG #export UCXPY_LOG_LEVEL=DEBUG export UCX_MEMTYPE_CACHE=n export UCX_TLS=tcp,cuda_copy,rc UCX_NET_DEVICES=mlx5_0:1 CUDA_VISIBLE_DEVICES=0 python recv.py 2>&1 | tee /tmp/recv-log-0.txt & UCX_NET_DEVICES=mlx5_0:1 CUDA_VISIBLE_DEVICES=1 python recv.py 2>&1 | tee /tmp/recv-log...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/examples/cupy-example.py
import asyncio import time import cupy from dask import array as da from dask_cuda import LocalCUDACluster from dask_cuda.initialize import initialize from distributed import Client enable_tcp_over_ucx = True enable_infiniband = False enable_nvlink = False async def run(): initialize( create_cuda_conte...
0
rapidsai_public_repos/ucx-py
rapidsai_public_repos/ucx-py/examples/cudf-example.py
import asyncio import time from dask_cuda import LocalCUDACluster from dask_cuda.initialize import initialize from distributed import Client import cudf import dask_cudf enable_tcp_over_ucx = True enable_infiniband = False enable_nvlink = False async def run(): initialize( create_cuda_context=True, ...
0
rapidsai_public_repos
rapidsai_public_repos/test-installer/README.md
This repo contains simple scripts to test the install of RAPIDS in a conda environment.
0
rapidsai_public_repos/test-installer/ci
rapidsai_public_repos/test-installer/ci/axis/axis.yml
INSTALLER: - conda - mamba RAPIDS_VER: - '22.02' - '22.04' RAPIDS_CONDA_CHANNEL: - rapidsai - rapidsai-nightly excludes: - RAPIDS_VER: '22.02' RAPIDS_CONDA_CHANNEL: rapidsai-nightly - RAPIDS_VER: '22.04' RAPIDS_CONDA_CHANNEL: rapidsai
0
rapidsai_public_repos/test-installer/ci
rapidsai_public_repos/test-installer/ci/cpu/build.sh
#!/bin/bash set -e export PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH export HOME="$WORKSPACE" . /opt/conda/etc/profile.d/conda.sh conda config --set ssl_verify False conda install -y -c gpuci gpuci-tools || conda install -y -c gpuci gpuci-tools if [[ "$INSTALLER" == "mamba" ]]; then gpuci_logger "Install ma...
0
rapidsai_public_repos
rapidsai_public_repos/rapids-triton-template/CMakeLists.txt
#============================================================================= # Copyright (c) 2020-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://ww...
0
rapidsai_public_repos
rapidsai_public_repos/rapids-triton-template/README.md
<!-- # Copyright (c) 2021, NVIDIA CORPORATION. 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 conditi...
0
rapidsai_public_repos
rapidsai_public_repos/rapids-triton-template/Dockerfile
########################################################################################### # Arguments for controlling build details ########################################################################################### # Version of Triton to use ARG TRITON_VERSION=21.08 # Base container image ARG BASE_IMAGE=nvcr...
0
rapidsai_public_repos/rapids-triton-template/conda
rapidsai_public_repos/rapids-triton-template/conda/environments/rapids_triton_dev_cuda11.4.yml
--- name: rapids_triton_dev channels: - nvidia - conda-forge dependencies: - cmake>=3.21 - cudatoolkit=11.4 - ninja - rapidjson # TODO(template): Add any build dependencies for your backend
0
rapidsai_public_repos/rapids-triton-template/conda
rapidsai_public_repos/rapids-triton-template/conda/environments/rapids_triton_test.yml
--- name: rapids_triton_test channels: - conda-forge dependencies: - flake8 - pip - python - pytest - numpy - pip: - nvidia-pyindex # TODO(template): Add any test dependencies for your tests here
0
rapidsai_public_repos/rapids-triton-template/cmake
rapidsai_public_repos/rapids-triton-template/cmake/modules/ConfigureCUDA.cmake
#============================================================================= # Copyright (c) 2018-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://ww...
0
rapidsai_public_repos/rapids-triton-template/cmake
rapidsai_public_repos/rapids-triton-template/cmake/thirdparty/get_gtest.cmake
#============================================================================= # Copyright (c) 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.apa...
0
rapidsai_public_repos/rapids-triton-template/cmake
rapidsai_public_repos/rapids-triton-template/cmake/thirdparty/get_rapids-triton.cmake
#============================================================================= # Copyright (c) 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.apa...
0
rapidsai_public_repos/rapids-triton-template
rapidsai_public_repos/rapids-triton-template/src/api.cc
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/rapids-triton-template
rapidsai_public_repos/rapids-triton-template/src/shared_state.h
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/rapids-triton-template
rapidsai_public_repos/rapids-triton-template/src/model.h
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/rapids-triton-template
rapidsai_public_repos/rapids-triton-template/src/names.h
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/rapids-triton-template/qa
rapidsai_public_repos/rapids-triton-template/qa/L0_e2e/test_model.py
# Copyright (c) 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 agreed to...
0
rapidsai_public_repos/rapids-triton-template/qa/L0_e2e/model_repository
rapidsai_public_repos/rapids-triton-template/qa/L0_e2e/model_repository/example/config.pbtxt
# TODO(template): Replace backend name backend: "REPLACE_ME" max_batch_size: 32768 # TODO(template): Replace input specifications input [ { name: "input__0" data_type: TYPE_FP32 dims: [ 4 ] }, { name: "input__1" data_type: TYPE_FP32 dims: [ 4 ] } ] # TODO(template): Replace output specif...
0
rapidsai_public_repos/rapids-triton-template/qa/L0_e2e/model_repository/example
rapidsai_public_repos/rapids-triton-template/qa/L0_e2e/model_repository/example/1/serialized_model.txt
TODO(template): Replace this with serialized model for your backend
0
rapidsai_public_repos
rapidsai_public_repos/ptxcompiler/setup.cfg
# COPYRIGHT (c) 2021, NVIDIA CORPORATION. [versioneer] VCS = git style = pep440 versionfile_source = ptxcompiler/_version.py versionfile_build = ptxcompiler/_version.py tag_prefix = parentdir_prefix = ptxcompiler-
0
rapidsai_public_repos
rapidsai_public_repos/ptxcompiler/README.md
# Static PTX Compiler Python binding and Numba patch This package provides a Python binding for the `libptxcompiler_static.a` library and a Numba patch that fixes it to use the static library for compiling PTX instead of the linker. This enables Numba to support CUDA enhanced compatibility for scenarios where a single...
0
rapidsai_public_repos
rapidsai_public_repos/ptxcompiler/versioneer.py
# Version: 0.21 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/python-versioneer/python-versioneer * Brian Warner * License: Public Domain * Compatible with: Python 3.6, 3.7, 3.8, 3.9 and pypy3 * [![Latest Version][pyp...
0
rapidsai_public_repos
rapidsai_public_repos/ptxcompiler/MANIFEST.in
include versioneer.py include ptxcompiler/_version.py
0
rapidsai_public_repos
rapidsai_public_repos/ptxcompiler/setup.py
# Copyright (c) 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 agreed to...
0
rapidsai_public_repos
rapidsai_public_repos/ptxcompiler/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/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/patch.py
# Copyright (c) 2021-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 agre...
0
rapidsai_public_repos/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/_version.py
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
0
rapidsai_public_repos/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/api.py
# Copyright (c) 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 agreed to...
0
rapidsai_public_repos/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/__init__.py
# Copyright (c) 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 agreed to...
0
rapidsai_public_repos/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/_ptxcompilerlib.cpp
/* * Copyright (c) 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 ...
0
rapidsai_public_repos/ptxcompiler/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/tests/test_lib.py
# Copyright (c) 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 agreed to...
0
rapidsai_public_repos/ptxcompiler/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/tests/test_patch.py
# 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 or agreed to...
0
rapidsai_public_repos/ptxcompiler/ptxcompiler
rapidsai_public_repos/ptxcompiler/ptxcompiler/tests/__init__.py
# Copyright (c) 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 agreed to...
0
rapidsai_public_repos/ptxcompiler/conda/recipes
rapidsai_public_repos/ptxcompiler/conda/recipes/ptxcompiler/conda_build_config.yaml
c_compiler_version: # [linux] - 9 # [linux] cxx_compiler_version: # [linux] - 9 # [linux] fortran_compiler_version: # [linux] - 9 # [linux] cuda_compiler: - nvcc
0
rapidsai_public_repos/ptxcompiler/conda/recipes
rapidsai_public_repos/ptxcompiler/conda/recipes/ptxcompiler/meta.yaml
# Copyright (c) 2021-2023, NVIDIA CORPORATION. {% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') + environ.get('VERSION_SUFFIX', '') %} {% set py_version=environ.get('CONDA_PY', 38) %} {% set cuda_major_minor = ".".join(environ['CUDA_VER'].split(".")[:2]) %} {% set cuda_major = cuda_major_minor...
0
rapidsai_public_repos
rapidsai_public_repos/jenkins-shared-library/README.md
# jenkins-shared-library
0
rapidsai_public_repos/jenkins-shared-library
rapidsai_public_repos/jenkins-shared-library/vars/generateStage.groovy
import groovy.transform.Field @Field final PR_TEST_STAGE = "pr_test" @Field final NIGHTLY_TEST_STAGE = "nightly_test" @Field final CUDA_BUILD_STAGE = "cuda_build" @Field final PYTHON_BUILD_STAGE = "python_build" def call(stage, Closure steps) { parallels_config = [ pr_test: [ [label: "driver-495-arm", cu...
0
rapidsai_public_repos
rapidsai_public_repos/cudf/.pre-commit-config.yaml
# Copyright (c) 2019-2022, NVIDIA CORPORATION. repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: trailing-whitespace exclude: | (?x)^( ^python/cudf/cudf/tests/data/subword_tokenizer_data/.* ...
0
rapidsai_public_repos
rapidsai_public_repos/cudf/pyproject.toml
[tool.black] line-length = 79 target-version = ["py39"] include = '\.py?$' force-exclude = ''' /( thirdparty | \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist )/ ''' [tool.pydocstyle] # Due to https://github.com/PyCQA/pydocstyle/issue...
0
rapidsai_public_repos
rapidsai_public_repos/cudf/fetch_rapids.cmake
# ============================================================================= # 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.apa...
0