repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos/ucxx/cpp/include | rapidsai_public_repos/ucxx/cpp/include/ucxx/constructors.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <memory>
#include <string>
#include <vector>
#include <ucxx/typedefs.h>
namespace ucxx {
class Address;
class Context;
class Endpoint;
class Future;
class Liste... | 0 |
rapidsai_public_repos/ucxx/cpp/include | rapidsai_public_repos/ucxx/cpp/include/ucxx/delayed_submission.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <functional>
#include <memory>
#include <mutex>
#include <string>
#include <utility>
#include <vector>
#include <ucp/api/ucp.h>
#include <ucxx/log.h>
namespace ... | 0 |
rapidsai_public_repos/ucxx/cpp/include | rapidsai_public_repos/ucxx/cpp/include/ucxx/typedefs.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <functional>
#include <memory>
#include <string>
#include <unordered_map>
namespace ucxx {
class Buffer;
class Request;
// Logging levels
typedef enum {
UCXX_... | 0 |
rapidsai_public_repos/ucxx/cpp/include | rapidsai_public_repos/ucxx/cpp/include/ucxx/log.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <string>
#include <unordered_map>
#include <ucs/debug/log_def.h>
#include <ucxx/typedefs.h>
namespace ucxx {
extern ucs_log_component_config_t ucxx_log_compone... | 0 |
rapidsai_public_repos/ucxx/cpp/include | rapidsai_public_repos/ucxx/cpp/include/ucxx/request_helper.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <memory>
#include <vector>
#include <ucxx/request.h>
#include <ucxx/worker.h>
namespace ucxx {
void waitSingleRequest(std::shared_ptr<Worker> worker, std::share... | 0 |
rapidsai_public_repos/ucxx/cpp/include | rapidsai_public_repos/ucxx/cpp/include/ucxx/buffer.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <memory>
#include <utility>
#include <ucxx/log.h>
#if UCXX_ENABLE_RMM
#include <rmm/device_buffer.hpp>
#endif
namespace ucxx {
enum class BufferType {
Host =... | 0 |
rapidsai_public_repos/ucxx/cpp/include/ucxx | rapidsai_public_repos/ucxx/cpp/include/ucxx/utils/ucx.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <string>
#include <ucp/api/ucp.h>
namespace ucxx {
namespace utils {
/**
* @brief Throw appropriate exception on UCS error.
*
* Throw an exception appropria... | 0 |
rapidsai_public_repos/ucxx/cpp/include/ucxx | rapidsai_public_repos/ucxx/cpp/include/ucxx/utils/file_descriptor.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <cstdio>
#include <string>
namespace ucxx {
namespace utils {
/**
* @brief Create a file descriptor from a temporary file.
*
* Create a file descriptor from ... | 0 |
rapidsai_public_repos/ucxx/cpp/include/ucxx | rapidsai_public_repos/ucxx/cpp/include/ucxx/utils/callback_notifier.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <atomic>
#include <condition_variable>
#include <mutex>
namespace ucxx {
namespace utils {
class CallbackNotifier {
private:
std::atomic_bool _flag{}; //< f... | 0 |
rapidsai_public_repos/ucxx/cpp/include/ucxx | rapidsai_public_repos/ucxx/cpp/include/ucxx/utils/python.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <memory>
namespace ucxx {
namespace utils {
/*
* @brief Check whether Python support is available.
*
* Check that binary was built with Python support and `libucx... | 0 |
rapidsai_public_repos/ucxx/cpp/include/ucxx | rapidsai_public_repos/ucxx/cpp/include/ucxx/utils/sockaddr.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <memory>
#include <netdb.h>
namespace ucxx {
namespace utils {
/**
* @brief Get an addrinfo struct corresponding to an address and port.
*
* This information... | 0 |
rapidsai_public_repos/ucxx/cpp/include/ucxx | rapidsai_public_repos/ucxx/cpp/include/ucxx/internal/request_am.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <functional>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <unordered_map>
#include <ucp/api/ucp.h>
#include <ucxx/typedefs.h>
namespace ucxx... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/python/CMakeLists.txt | # ======================================================================================================
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD 3-Clause License
# =================================================================... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/notifier.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <condition_variable>
#include <memory>
#include <mutex>
#include <utility>
#include <vector>
#include <ucxx/future.h>
#include <ucxx/notifier.h>
namespace ucxx {... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/api.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <ucxx/python/constructors.h>
#include <ucxx/python/exception.h>
#include <ucxx/python/notifier.h>
#include <ucxx/python/python_future.h>
#include <ucxx/python/worker.h>... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/future.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <Python.h>
namespace ucxx {
namespace python {
/**
* @brief Create a Python asyncio future.
*
* Create Python asyncio future, effectively equal to calling `a... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/worker.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <functional>
#include <memory>
#include <mutex>
#include <queue>
#include <thread>
#include <ucp/api/ucp.h>
#include <ucxx/python/future.h>
#include <ucxx/python/noti... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/python_future.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <functional>
#include <memory>
#include <Python.h>
#include <ucp/api/ucp.h>
#include <ucxx/future.h>
#include <ucxx/notifier.h>
#include <ucxx/python/future.h>
... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/exception.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <Python.h>
#include <ucp/api/ucp.h>
namespace ucxx {
namespace python {
extern PyObject* UCXXError;
extern PyObject* UCXXNoMessageError;
extern PyObject* UCXX... | 0 |
rapidsai_public_repos/ucxx/cpp/python/include/ucxx | rapidsai_public_repos/ucxx/cpp/python/include/ucxx/python/constructors.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <memory>
#include <ucxx/buffer.h>
namespace ucxx {
class Context;
class Future;
class Notifier;
class Worker;
namespace python {
std::shared_ptr<::ucxx::Future> cr... | 0 |
rapidsai_public_repos/ucxx/cpp/python | rapidsai_public_repos/ucxx/cpp/python/src/exception.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <ios>
#include <stdexcept>
#include <ucxx/exception.h>
#include <ucxx/python/exception.h>
namespace ucxx {
namespace python {
PyObject* UCXXError;
PyObject* UCXXNoMessageEr... | 0 |
rapidsai_public_repos/ucxx/cpp/python | rapidsai_public_repos/ucxx/cpp/python/src/python_future.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <stdexcept>
#include <Python.h>
#include <ucp/api/ucp.h>
#include <ucxx/log.h>
#include <ucxx/python/exception.h>
#include <ucxx/python/python_future.h>
na... | 0 |
rapidsai_public_repos/ucxx/cpp/python | rapidsai_public_repos/ucxx/cpp/python/src/future.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <ucxx/log.h>
#include <Python.h>
namespace ucxx {
namespace python {
PyObject* asyncio_str = NULL;
PyObject* future_str = NULL;
PyObject* asyncio_future... | 0 |
rapidsai_public_repos/ucxx/cpp/python | rapidsai_public_repos/ucxx/cpp/python/src/worker.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <functional>
#include <ios>
#include <memory>
#include <mutex>
#include <sstream>
#include <Python.h>
#include <ucxx/internal/request_am.h>
#include <ucxx/python/constructors.h>
#i... | 0 |
rapidsai_public_repos/ucxx/cpp/python | rapidsai_public_repos/ucxx/cpp/python/src/notifier.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <mutex>
#include <utility>
#include <ucxx/log.h>
#include <ucxx/python/notifier.h>
#include <ucxx/python/python_future.h>
namespace ucxx {
namespace python ... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/endpoint.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <vector>
#include <gtest/gtest.h>
#include <ucxx/api.h>
namespace {
class EndpointTest : public ::testing::Test {
protected:
std::shared_ptr<ucxx::Conte... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/CMakeLists.txt | # ======================================================================================================
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD 3-Clause License
# ============================================================... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/buffer.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <algorithm>
#include <numeric>
#include <utility>
#include <gtest/gtest.h>
#include <ucxx/api.h>
namespace {
class BufferAllocator : public ::testing::Test,
... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/listener.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <vector>
#include <gtest/gtest.h>
#include <ucxx/api.h>
#include "include/utils.h"
namespace {
constexpr size_t MaxProgressAttempts = 50;
constexpr size_t... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/utils.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <vector>
#include "include/utils.h"
void createCudaContextCallback(void* callbackArg)
{
// Force CUDA context creation
cudaFree(0);
}
std::function<void... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/request.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <algorithm>
#include <memory>
#include <numeric>
#include <tuple>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <ucxx/api.h>
#include "include/... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/header.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <algorithm>
#include <numeric>
#include <utility>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <ucxx/api.h>
using ::testing::ContainerEq;
nam... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/config.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <ucxx/api.h>
namespace {
TEST(ConfigTest, HandleIsValid)
{
ucxx::ConfigMap configMap{};
ucxx::Config config{configMap};
ASSERT_TRUE(config.getH... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/context.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cstdlib>
#include <string>
#include <gtest/gtest.h>
#include <ucxx/api.h>
namespace {
static std::vector<std::string> TlsConfig{"^tcp", "^tcp,sm", "tcp", "tcp,sm", "all"};
... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/tests/worker.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <tuple>
#include <vector>
#include <gtest/gtest.h>
#include <ucxx/api.h>
#include "include/utils.h"
namespace {
using ::testing::Combine;
using ::testing:... | 0 |
rapidsai_public_repos/ucxx/cpp/tests | rapidsai_public_repos/ucxx/cpp/tests/include/utils.h | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <functional>
#include <memory>
#include <vector>
#include <cuda_runtime_api.h>
#include <ucxx/api.h>
enum class ProgressMode {
Polling,
Blocking,
Wait,
... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/benchmarks/perftest.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <unistd.h> // for getopt, optarg
#include <atomic>
#include <cassert>
#include <chrono>
#include <iostream>
#include <memory>
#include <numeric>
#include <string>
#include <th... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/benchmarks/CMakeLists.txt | # ======================================================================================================
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD 3-Clause License
# =================================================================... | 0 |
rapidsai_public_repos/ucxx/cpp/cmake | rapidsai_public_repos/ucxx/cpp/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.apache.o... | 0 |
rapidsai_public_repos/ucxx/cpp/cmake | rapidsai_public_repos/ucxx/cpp/cmake/thirdparty/get_rmm.cmake | # =============================================================================
# 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://www.apa... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/endpoint.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <sstream>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <ucp/api/ucp.h>
#include <ucxx/component.h>
#include <ucxx/endpoi... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/address.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <string>
#include <ucxx/address.h>
#include <ucxx/utils/ucx.h>
namespace ucxx {
Address::Address(std::shared_ptr<Worker> worker, ucp_address_t* address, siz... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/inflight_requests.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <ucxx/inflight_requests.h>
#include <ucxx/log.h>
#include <ucxx/request.h>
namespace ucxx {
InflightRequests::~InflightRequests() { cancelAll(); }
size_t I... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/component.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <ucxx/component.h>
namespace ucxx {
Component::~Component() {}
// Called from child's constructor
void Component::setParent(std::shared_ptr<Component> pare... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/buffer.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <iterator>
#include <memory>
#include <utility>
#include <ucxx/buffer.h>
#if UCXX_ENABLE_RMM
#include <rmm/device_buffer.hpp>
#endif
namespace ucxx {
Buffer::Buffer(const Bu... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/request_tag.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cstdio>
#include <memory>
#include <string>
#include <ucp/api/ucp.h>
#include <ucxx/delayed_submission.h>
#include <ucxx/request_tag.h>
namespace ucxx {
std::shared_ptr<Req... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/request_helper.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <vector>
#include <ucxx/request.h>
namespace ucxx {
void waitSingleRequest(std::shared_ptr<Worker> worker, std::shared_ptr<Request> request)
{
while (!req... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/request_am.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cstdio>
#include <memory>
#include <sstream>
#include <string>
#include <ucp/api/ucp.h>
#include <ucxx/buffer.h>
#include <ucxx/delayed_submission.h>
#include <ucxx/internal/... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/listener.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <netinet/in.h>
#include <string>
#include <ucp/api/ucp.h>
#include <ucxx/exception.h>
#include <ucxx/listener.h>
#include <ucxx/utils/callback_notifier.h>
#in... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/request.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <chrono>
#include <memory>
#include <sstream>
#include <string>
#include <ucp/api/ucp.h>
#include <ucxx/component.h>
#include <ucxx/endpoint.h>
#include <ucxx/typedefs.h>
#inc... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/worker_progress_thread.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <ucxx/log.h>
#include <ucxx/utils/callback_notifier.h>
#include <ucxx/worker_progress_thread.h>
namespace ucxx {
void WorkerProgressThread::progressUntilSyn... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/request_stream.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <string>
#include <ucp/api/ucp.h>
#include <ucxx/delayed_submission.h>
#include <ucxx/request_stream.h>
namespace ucxx {
RequestStream::RequestStream(std::... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/header.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <algorithm>
#include <iostream>
#include <iterator>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <ucxx/header.h>
namespace ucxx {
Header:... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/request_tag_multi.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <functional>
#include <memory>
#include <mutex>
#include <string>
#include <vector>
#include <ucxx/buffer.h>
#include <ucxx/endpoint.h>
#include <ucxx/header.h>
#include <ucxx/... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/log.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <algorithm>
#include <cstdlib>
#include <string>
#include <ucxx/log.h>
#include <ucxx/typedefs.h>
namespace ucxx {
ucs_log_component_config_t ucxx_log_component_config = {log... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/config.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <sstream>
#include <string>
#include <ucxx/config.h>
#include <ucxx/exception.h>
#include <ucxx/utils/file_descriptor.h>
#include <ucxx/utils/ucx.h>
namespace ucxx {
ucp_conf... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/context.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cstring>
#include <iostream>
#include <memory>
#include <string>
#include <ucxx/context.h>
#include <ucxx/log.h>
#include <ucxx/utils/file_descriptor.h>
#include <ucxx/utils/u... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/worker.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <functional>
#include <ios>
#include <memory>
#include <mutex>
#include <queue>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <sys/epoll.h>... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/src/delayed_submission.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory>
#include <mutex>
#include <utility>
#include <ucp/api/ucp.h>
#include <ucxx/delayed_submission.h>
#include <ucxx/log.h>
namespace ucxx {
DelayedSubmission::DelayedS... | 0 |
rapidsai_public_repos/ucxx/cpp/src | rapidsai_public_repos/ucxx/cpp/src/utils/sockaddr.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <arpa/inet.h>
#include <memory>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <ucxx/exception.h>
#include <ucxx/utils/sockaddr.h>
... | 0 |
rapidsai_public_repos/ucxx/cpp/src | rapidsai_public_repos/ucxx/cpp/src/utils/ucx.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <string>
#include <ucs/type/status.h>
#include <ucxx/exception.h>
#include <ucxx/utils/ucx.h>
namespace ucxx {
namespace utils {
void ucsErrorThrow(const ucs_status_t status... | 0 |
rapidsai_public_repos/ucxx/cpp/src | rapidsai_public_repos/ucxx/cpp/src/utils/file_descriptor.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cstdio>
#include <exception>
#include <ios>
#include <string>
#include <ucxx/utils/file_descriptor.h>
namespace ucxx {
namespace utils {
FILE* createTextFileDescriptor()
{
... | 0 |
rapidsai_public_repos/ucxx/cpp/src | rapidsai_public_repos/ucxx/cpp/src/utils/callback_notifier.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <atomic>
#include <features.h>
#ifdef __GLIBC__
#include <gnu/libc-version.h>
#include <string>
#endif
#include <ucxx/log.h>
#include <ucxx/utils/callback_notifier.h>
namespace uc... | 0 |
rapidsai_public_repos/ucxx/cpp/src | rapidsai_public_repos/ucxx/cpp/src/utils/python.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <dlfcn.h>
#include <ucxx/log.h>
#include <ucxx/utils/python.h>
namespace ucxx {
namespace utils {
static bool _ucxxPythonLoadChecked = false;
static void* _ucxxPythonLib =... | 0 |
rapidsai_public_repos/ucxx/cpp/src | rapidsai_public_repos/ucxx/cpp/src/internal/request_am.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <ucxx/buffer.h>
#include <ucxx/delayed_submission.h>
#include <ucxx/internal/request_am.h>
#include <ucxx/request_am.h>
namespace ucxx {
namespace internal {
RecvAmMessage::R... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/examples/CMakeLists.txt | # =================================================================================
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: BSD 3-Clause License
# =================================================================================
find_package(Threads REQ... | 0 |
rapidsai_public_repos/ucxx/cpp | rapidsai_public_repos/ucxx/cpp/examples/basic.cpp | /**
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cassert>
#include <chrono>
#include <iostream>
#include <memory>
#include <numeric>
#include <thread>
#include <unistd.h>
#include <vector>
#include <ucxx/api.h>
#include <ucx... | 0 |
rapidsai_public_repos/ucxx | rapidsai_public_repos/ucxx/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/ucxx/docs | rapidsai_public_repos/ucxx/docs/source/optimizations.rst | Optimizations
=============
This is a list of built-in optimizations in UCXX. Most of them target Python usage, but may be useful in C++ applications depending on their design and needs.
Delayed Submission
------------------
Move transfer submissions (``ucp_{tag,stream}_{send,recv}_nb)``) to the worker progress task... | 0 |
rapidsai_public_repos/ucxx/docs | rapidsai_public_repos/ucxx/docs/source/optimizations.md | # Optimizations
This is a list of built-in optimizations in UCXX. Most of them target Python usage, but may be useful in C++ applications depending on their design and needs.
## Delayed Submission
Move transfer submissions (``ucp_{tag,stream}_{send,recv}_nb)``) to the worker progress task.
Most times UCX applicatio... | 0 |
rapidsai_public_repos/ucxx | rapidsai_public_repos/ucxx/ci/test_python.sh | #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: BSD-3-Clause
set -euo pipefail
source "$(dirname "$0")/test_utils.sh"
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--o... | 0 |
rapidsai_public_repos/ucxx | rapidsai_public_repos/ucxx/ci/test_cpp.sh | #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: BSD-3-Clause
set -euo pipefail
source "$(dirname "$0")/test_utils.sh"
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--o... | 0 |
rapidsai_public_repos/ucxx | rapidsai_public_repos/ucxx/ci/check_style.sh | #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: BSD-3-Clause
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 \
... | 0 |
rapidsai_public_repos/ucxx | rapidsai_public_repos/ucxx/ci/build_cpp.sh | #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: BSD-3-Clause
set -euo pipefail
source rapids-env-update
export CMAKE_GENERATOR=Ninja
rapids-print-env
rapids-logger "Begin C++ and Python builds"
rapids-conda-retry mambabuild \
conda/reci... | 0 |
rapidsai_public_repos/ucxx | rapidsai_public_repos/ucxx/ci/test_utils.sh | #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: BSD-3-Clause
log_command() {
CMD_LINE=$1
echo -e "\e[1mRunning: \n ${CMD_LINE}\e[0m"
}
print_system_stats() {
rapids-logger "Check GPU usage"
nvidia-smi
rapids-logger "Check NICs"
... | 0 |
rapidsai_public_repos/ucxx/ci | rapidsai_public_repos/ucxx/ci/release/update-version.sh | #!/bin/bash
########################
# UCXX 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 <major>.<minor> for next version
NEXT_MAJOR=$(echo $NEXT_FULL_TAG | awk '{spl... | 0 |
rapidsai_public_repos | rapidsai_public_repos/benchmark/README.md | # RAPIDS Benchmark
This repo contains tools for benchmarking RAPIDS projects, consisting currently of a plugin to [pytest](https://docs.pytest.org/en/latest) that allows it to run benchmarks to measure execution time and GPU memory usage.
## Contributing Guide
Review [CONTRIBUTING.md](CONTRIBUTING.md) for details ab... | 0 |
rapidsai_public_repos | rapidsai_public_repos/benchmark/CHANGELOG.md | # benchmark 0.0.0 (DD Mon YYYY)
## New Features
- PR #62 - Utilize `rmm` log analysis
- PR #45 - Add capability to parse `requirements` metadata field
## Improvements
- ...
## Bug Fixes
- ...
| 0 |
rapidsai_public_repos | rapidsai_public_repos/benchmark/MAINTAINERS.md | # Maintainer's guide
In no particular order, this covers implementation details and common maintenance tasks for the benchmarking tools. To request more information about a topic, please update this document with text that includes a `FIXME` label and a description of the the topic/information to be added, and a PR wi... | 0 |
rapidsai_public_repos | rapidsai_public_repos/benchmark/CONTRIBUTING.md | # Contributing to benchmark
If you are interested in contributing to benchmark, 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/benchmark/issues/new/choose)
describing what you encountered or ... | 0 |
rapidsai_public_repos | rapidsai_public_repos/benchmark/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/benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/README.md | # rapids-pytest-benchmark
`rapids-pytest-benchmark` is a plugin to [`pytest`](https://docs.pytest.org/en/latest/contents.html) that extends the functionality of the [`pytest-benchmark`](https://pytest-benchmark.readthedocs.io/en/latest) plugin by taking advantage of the [hooks exposed by `pytest-benchmark`](https://py... | 0 |
rapidsai_public_repos/benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/buildconda.sh | #!/bin/bash
set -e
CHANNELS="-c file:///opt/conda/envs/rapids/conda-bld -c rlratzel -c conda-forge"
UPLOAD_FILE=`conda build ${CHANNELS} ./conda --output`
UPLOAD_FILES=$(echo ${UPLOAD_FILE}|sed -e 's/\-py[0-9][0-9]/\-py36/')
UPLOAD_FILES="${UPLOAD_FILES} $(echo ${UPLOAD_FILE}|sed -e 's/\-py[0-9][0-9]/\-py37/')"
cond... | 0 |
rapidsai_public_repos/benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/setup.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 agreed... | 0 |
rapidsai_public_repos/benchmark/rapids_pytest_benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/rapids_pytest_benchmark/reporting.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 agreed... | 0 |
rapidsai_public_repos/benchmark/rapids_pytest_benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/rapids_pytest_benchmark/rmm_resource_analyzer.py | # Copyright (c) 2021-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... | 0 |
rapidsai_public_repos/benchmark/rapids_pytest_benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/rapids_pytest_benchmark/__init__.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 agreed... | 0 |
rapidsai_public_repos/benchmark/rapids_pytest_benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/rapids_pytest_benchmark/plugin.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 agreed... | 0 |
rapidsai_public_repos/benchmark/rapids_pytest_benchmark/rapids_pytest_benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/rapids_pytest_benchmark/tests/test_rmm_analyzer.py | import cudf
from ..rmm_resource_analyzer import RMMResourceAnalyzer
def test_rmm_analyzer():
inst = RMMResourceAnalyzer()
inst.enable_logging()
s = cudf.Series([1])
del s
inst.disable_logging()
assert inst.max_gpu_mem_usage == 8
| 0 |
rapidsai_public_repos/benchmark/rapids_pytest_benchmark | rapidsai_public_repos/benchmark/rapids_pytest_benchmark/conda/meta.yaml | {% set version = load_setup_py_data().get('version') %}
package:
name: rapids-pytest-benchmark
version: {{ version }}
source:
path: ..
build:
script: {{ PYTHON }} -m pip install . --no-deps
noarch: python
requirements:
host:
- python
run:
- asvdb>=0.3.0
- psutil
... | 0 |
rapidsai_public_repos/benchmark | rapidsai_public_repos/benchmark/parser/GBenchToASV.py | import os
import sys
import json
import subprocess
import argparse
import re
import platform
import psutil
from asvdb import ASVDb, BenchmarkInfo, BenchmarkResult
from pynvml import smi
# USAGE:
#
# -d : JSON Result Directory
# -n : Repository Name
# -t : Target Directory for ASV JSON
# -b : Branch Name
def ... | 0 |
rapidsai_public_repos | rapidsai_public_repos/plotly-dash-rapids-census-demo/entrypoint.sh | #activating the conda environment
source activate rapids
cd /rapids/plotly_census_demo/plotly_demo
if [ "$@" = "dask_app" ]; then
python dask_app.py
else
python app.py
fi
| 0 |
rapidsai_public_repos | rapidsai_public_repos/plotly-dash-rapids-census-demo/README.md | # Plotly-Dash + RAPIDS | Census 2020 Visualization
<a href="https://colab.research.google.com/github/rapidsai/plotly-dash-rapids-census-demo/blob/main/plotly_demo/colab_plotly_rapids_app.ipynb" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg"></a>
 in both, single GPU and multi-GPU versions respectively.
Recommended GPU memory:
1. Single GPU version: 32GB+
2. Multi-GPU version: 2+ GPUs of 16GB+ each
```bash
# run and access s... | 0 |
rapidsai_public_repos/plotly-dash-rapids-census-demo | rapidsai_public_repos/plotly-dash-rapids-census-demo/plotly_demo/app.py | import os
import time
import cudf
import dash_bootstrap_components as dbc
import dash_daq as daq
import numpy as np
import pandas as pd
from dash import Dash, ctx, dcc, html
from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate
from distributed import Client
from utils import *
i... | 0 |
rapidsai_public_repos/plotly-dash-rapids-census-demo | rapidsai_public_repos/plotly-dash-rapids-census-demo/plotly_demo/colab_plotly_rapids_app.ipynb | # Download state-wise datasets
import os
if not os.path.exists("state-wise-population"):
!wget https://data.rapids.ai/viz-data/state-wise-population.tar.xz
!tar -xJf state-wise-population.tar.xz
!rm state-wise-population.tar.xz
# Optional: Download all US states combined dataset, uncomment the following l... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.