repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos | rapidsai_public_repos/kvikio/build.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
# kvikio build script
# This script is used to build the component(s) in this repo from
# source, and can be called with various options to customize the
# build as needed (see the help output for details)
# Abort script on first error
set -e
NUMARGS=$#
ARGS=$*... | 0 |
rapidsai_public_repos | rapidsai_public_repos/kvikio/.clang-tidy | ---
Checks: 'clang-diagnostic-*,
clang-analyzer-*,
cppcoreguidelines-*,
modernize-*,
bugprone-*,
performance-*,
readability-*,
llvm-*,
-cppcoreguidelines-macro-usage,
... | 0 |
rapidsai_public_repos | rapidsai_public_repos/kvikio/.codespellrc | # Copyright (c) 2017-2022, NVIDIA CORPORATION.
[codespell]
# note: pre-commit passes explicit lists of files here, which this skip file list doesn't override -
# this is only to allow you to run codespell interactively
skip = ./.git,./.github,./cpp/build,.*egg-info.*,./python/tests
# ignore short words, and typename p... | 0 |
rapidsai_public_repos | rapidsai_public_repos/kvikio/dependencies.yaml | # Dependency list for https://github.com/rapidsai/dependency-file-generator
files:
all:
output: conda
matrix:
cuda: ["11.8", "12.0"]
arch: [x86_64]
includes:
- build
- checks
- cudatoolkit
- docs
- notebooks
- py_version
- run
- test_python
... | 0 |
rapidsai_public_repos | rapidsai_public_repos/kvikio/CONTRIBUTING.md | # Contributing to KvikIO
Contributions to KvikIO fall into the following three categories.
1. To report a bug, request a new feature, or report a problem with
documentation, please file an [issue](https://github.com/rapidsai/kvikio/issues/new/choose)
describing in detail the problem or new feature. The RAPIDS... | 0 |
rapidsai_public_repos | rapidsai_public_repos/kvikio/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 | rapidsai_public_repos/kvikio/.clang-format | ---
# Refer to the following link for the explanation of each params:
# http://releases.llvm.org/8.0.0/tools/clang/docs/ClangFormatStyleOptions.html
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
#AlignConsecutiveBitFields: true
AlignConsec... | 0 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/python/pyproject.toml | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"cmake>=3.26.4",
"cython>=3.0.0",
"ninja",
"scikit-build>=0.13.1",
"setuptools",
"wheel",
] # This list was generated by `rapids-... | 0 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/python/CMakeLists.txt | # =============================================================================
# Copyright (c) 2022-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 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/python/setup.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from setuptools import find_packages
from skbuild import setup
setup(
packages=find_packages(exclude=["tests*"]),
package_data={
# Note: A dict comprehension with an explicit copy is necessary (rather
... | 0 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/python/.coveragerc | # Configuration file for Python coverage tests
[run]
source = kvikio
| 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/cufile.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import pathlib
from typing import Optional, Union
from ._lib import libkvikio # type: ignore
class IOFuture:
"""Future for CuFile IO
This class shouldn't be used directly, instead non-blocking IO operations s... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/nvcomp_codec.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from typing import Any, Mapping, Optional, Sequence
import cupy as cp
import cupy.typing
from numcodecs.compat import ensure_contiguous_ndarray_like
from kvikio._lib.libnvcomp_ll import SUPPORTED_ALGORITHMS
from kvikio.numco... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/nvcomp.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from enum import Enum
import cupy as cp
import numpy as np
import kvikio._lib.libnvcomp as _lib
from kvikio._lib.arr import asarray
_dtype_map = {
cp.dtype("int8"): _lib.pyNvcompType_t.pyNVCOMP_TYPE_CHAR,
cp.dt... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/zarr.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from __future__ import annotations
import contextlib
import os
import os.path
from abc import abstractmethod
from typing import Any, Literal, Mapping, Optional, Sequence, Union
import cupy
import cupy.typing
import numco... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/numpy.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import io
import os
import os.path
from typing import Protocol, Union, runtime_checkable
import numpy as np
from numpy.typing import ArrayLike, DTypeLike
import kvikio
@runtime_checkable
class FileLike(Protocol):
... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/__init__.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from ._lib import libkvikio # type: ignore
from .cufile import CuFile # noqa: F401
__version__ = "23.12.00"
def memory_register(buf) -> None:
return libkvikio.memory_register(buf)
def memory_deregister(buf) -> ... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/numcodecs.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
"""
This module implements CUDA compression and transformation codecs for Numcodecs.
See <https://numcodecs.readthedocs.io/en/stable/>
"""
from __future__ import annotations
from abc import abstractmethod
from typing import ... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/kvikio/defaults.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import contextlib
from ._lib import libkvikio # type: ignore
def compat_mode() -> bool:
"""Check if KvikIO is running in compatibility mode.
Notice, this is not the same as the compatibility mode in cuFile. ... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/nvcomp_ll_cxx_api.pxd | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
# distutils: language = c++
# cython: language_level=3
cdef extern from "cuda_runtime.h":
ctypedef void* cudaStream_t
ctypedef enum cudaMemcpyKind:
cudaMemcpyHostToHost = 0,
cudaMemcpyHostToDevice = 1... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/CMakeLists.txt | # =============================================================================
# Copyright (c) 2022-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 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/libnvcomp.pyx | # Copyright (c) 2022 Carson Swope
# Use, modification, and distribution is subject to the MIT License
# https://github.com/carsonswope/py-nvcomp/blob/main/LICENSE)
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: MIT
# Permission is he... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/nvcomp_cxx_api.pxd | # Copyright (c) 2022 Carson Swope
# Use, modification, and distribution is subject to the MIT License
# https://github.com/carsonswope/py-nvcomp/blob/main/LICENSE)
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: MIT
# Permission is he... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/arr.pxd | # Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
# distutils: language = c++
# cython: language_level=3
from libc.stdint cimport uintptr_t
cdef class Array:
cdef readonly uintptr_t ptr
cdef readonly bint readonly
cdef readonly object obj
cdef readon... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/arr.pyi | # Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from typing import Generic, Tuple, TypeVar
T = TypeVar("T")
class Array(Generic[T]):
def __init__(self, obj: T): ...
@property
def c_contiguous(self) -> bool: ...
@property
def f_contiguous(self) -> ... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/__init__.pxd | # Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
# cython: language_level=3
| 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/libkvikio.pyx | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
# distutils: language = c++
# cython: language_level=3
import pathlib
from typing import Optional
from libc.stdint cimport uintptr_t
from libcpp.utility cimport move, pair
from . cimport kvikio_cxx_api
from .arr cimpor... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/kvikio_cxx_api.pxd | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
# distutils: language = c++
# cython: language_level=3
from posix cimport fcntl
from libcpp cimport bool
from libcpp.string cimport string
from libcpp.utility cimport pair
from libcpp.vector cimport vector
cdef extern... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/arr.pyx | # Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
# cython: language_level=3
from cpython.array cimport array, newarrayobject
from cpython.buffer cimport PyBuffer_IsContiguous
from cpython.memoryview cimport PyMemoryView_FromObject, PyMemoryView_GET_BUFFER
from cpython... | 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/__init__.py | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
| 0 |
rapidsai_public_repos/kvikio/python/kvikio | rapidsai_public_repos/kvikio/python/kvikio/_lib/libnvcomp_ll.pyx | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
from __future__ import annotations
from abc import ABC, abstractmethod
from enum import IntEnum
from libc.stdint cimport uint32_t, uintptr_t
from kvikio._lib.nvcomp_ll_cxx_api cimport cudaStream_t, nvcompStatus_t, nvcompTyp... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_examples.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import os
from importlib import import_module
from pathlib import Path
import pytest
examples_path = Path(os.path.realpath(__file__)).parent / ".." / "examples"
def test_hello_world(tmp_path, monkeypatch):
"""Test... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_numpy.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import pytest
from kvikio.numpy import LikeWrapper, tofile
@pytest.mark.parametrize("dtype", ["u1", "int64", "float32", "float64"])
def test_tofile(tmp_path, xp, dtype):
"""Test tofile()"""
filepath = str(tmp... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_basic_io.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import os
import random
from contextlib import contextmanager
import pytest
import kvikio
import kvikio.defaults
cupy = pytest.importorskip("cupy")
numpy = pytest.importorskip("numpy")
def check_bit_flags(x: int, y: ... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/conftest.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import contextlib
import multiprocessing as mp
import subprocess
from typing import Iterable
import pytest
import kvikio.defaults
mp = mp.get_context("spawn") # type: ignore
def command_server(conn):
"""Server t... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_zarr.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import math
import numpy
import pytest
cupy = pytest.importorskip("cupy")
zarr = pytest.importorskip("zarr")
kvikio_zarr = pytest.importorskip("kvikio.zarr")
kvikio_nvcomp_codec = pytest.importorskip("kvikio.nvcomp_cod... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_nvcomp.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import pytest
np = pytest.importorskip("numpy")
cupy = pytest.importorskip("cupy")
kvikio = pytest.importorskip("kvikio")
libnvcomp = pytest.importorskip("kvikio.nvcomp")
# TODO: don't hardcode the following expected v... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_benchmarks.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import os
import os.path
import sys
from pathlib import Path
import pytest
benchmarks_path = Path(os.path.realpath(__file__)).parent / ".." / "benchmarks"
pytest.importorskip("cupy")
pytest.importorskip("dask")
@pyte... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_nvcomp_codec.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import itertools as it
import json
import cupy as cp
import numcodecs
import numpy as np
import pytest
import zarr
from numpy.testing import assert_equal
from kvikio.nvcomp_codec import NvCompBatchCodec
NVCOMP_CODEC_ID = "n... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/tests/test_defaults.py | # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import pytest
import kvikio.defaults
@pytest.mark.skipif(
kvikio.defaults.compat_mode(),
reason="cannot test `compat_mode` when already running in compatibility mode",
)
def test_compat_mode():
"""Test changing... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/cli/gpu_compressor.py | # NVIDIA 2022
import argparse
import os
import sys
import time
import cupy
import kvikio
import kvikio.nvcomp as nvcomp
def get_parser():
class NvcompParser(argparse.ArgumentParser):
"""
Handle special case and show help on invalid argument
"""
def error(self, message):
... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/benchmarks/zarr-io.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import argparse
import contextlib
import os
import os.path
import pathlib
import shutil
import statistics
import subprocess
import tempfile
from time import perf_counter as clock
from typing import ContextManager, Union
impor... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/benchmarks/single-node-io.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import argparse
import contextlib
import os
import os.path
import pathlib
import shutil
import statistics
import tempfile
from time import perf_counter as clock
from typing import Any, ContextManager, Dict, Union
import ... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/cmake/CMakeLists.txt | # =============================================================================
# Copyright (c) 2022-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 |
rapidsai_public_repos/kvikio/python/cmake | rapidsai_public_repos/kvikio/python/cmake/thirdparty/get_nvcomp.cmake | # =============================================================================
# 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.apa... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/examples/hello_world.py | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import cupy
import kvikio
def main(path):
a = cupy.arange(100)
f = kvikio.CuFile(path, "w")
# Write whole array to file
f.write(a)
f.close()
b = cupy.empty_like(a)
f = kvikio.CuFile(path, "... | 0 |
rapidsai_public_repos/kvikio/python | rapidsai_public_repos/kvikio/python/examples/zarr_cupy_nvcomp.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import cupy
import numpy
import zarr
import kvikio
import kvikio.zarr
def main(path):
a = cupy.arange(20)
# Let's use KvikIO's convenience function `open_cupy_array()` to create
# a new Zarr file on disk. Its s... | 0 |
rapidsai_public_repos/kvikio/conda | rapidsai_public_repos/kvikio/conda/environments/all_cuda-120_arch-x86_64.yaml | # This file is generated by `rapids-dependency-file-generator`.
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
channels:
- rapidsai
- rapidsai-nightly
- conda-forge
- nvidia
dependencies:
- c-compiler
- cmake>=3.26.4
- cuda-nvcc
- cuda-python>=12.0,<13.0a0
- cuda-version=12.... | 0 |
rapidsai_public_repos/kvikio/conda | rapidsai_public_repos/kvikio/conda/environments/all_cuda-118_arch-x86_64.yaml | # This file is generated by `rapids-dependency-file-generator`.
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
channels:
- rapidsai
- rapidsai-nightly
- conda-forge
- nvidia
dependencies:
- c-compiler
- cmake>=3.26.4
- cuda-python>=11.7.1,<12.0a0
- cuda-version=11.8
- cudato... | 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/kvikio/conda_build_config.yaml | c_compiler_version:
- 11
cxx_compiler_version:
- 11
cuda_compiler:
- cuda-nvcc
cuda11_compiler:
- nvcc
sysroot_version:
- "2.17"
cmake_version:
- ">=3.26.4"
nvcomp_version:
- "=3.0.4"
| 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/kvikio/meta.yaml | # Copyright (c) 2023, NVIDIA CORPORATION.
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') %}
{% set py_version = environ['CONDA_PY'] %}
{% set cuda_version = '.'.join(environ['RAPIDS_CUDA_VERSION'].split('.')[:2]) %}
{% set cuda_major = cuda_version.split('.')[0] %}
{% set date_string = envir... | 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/libkvikio/conda_build_config.yaml | c_compiler_version:
- 11
cxx_compiler_version:
- 11
cmake_version:
- ">=3.26.4"
cuda_compiler:
- cuda-nvcc
cuda11_compiler:
- nvcc
sysroot_version:
- "2.17"
# The CTK libraries below are missing from the conda-forge::cudatoolkit package
# for CUDA 11. The "*_host_*" version specifiers correspond to `1... | 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/libkvikio/build.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
./build.sh -n libkvikio
| 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/libkvikio/meta.yaml | # Copyright (c) 2023, NVIDIA CORPORATION.
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') %}
{% set cuda_version = '.'.join(environ['RAPIDS_CUDA_VERSION'].split('.')[:2]) %}
{% set cuda_major = cuda_version.split('.')[0] %}
{% set cuda_spec = ">=" + cuda_major ~ ",<" + (cuda_major | int + 1) ... | 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/libkvikio/install_libkvikio.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
cmake --install cpp/build
| 0 |
rapidsai_public_repos/kvikio/conda/recipes | rapidsai_public_repos/kvikio/conda/recipes/libkvikio/install_libkvikio_tests.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
cmake --install cpp/build --component testing
| 0 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/cpp/CMakeLists.txt | # =============================================================================
# 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.apa... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/stream.hpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/posix_io.hpp | /*
* Copyright (c) 2022-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/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/driver.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/parallel_operation.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/thread_pool.hpp | #pragma once
/**
* @file thread_pool.hpp
* @author Barak Shoshany (baraksh@gmail.com) (http://baraksh.com)
* @version 2.0.0
* @date 2021-08-14
* @copyright Copyright (c) 2021 Barak Shoshany. Licensed under the MIT license. If you use this
* library in published research, please cite it as follows:
* - Barak Sh... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/error.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/defaults.hpp | /*
* Copyright (c) 2022-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/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/utils.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/batch.hpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/buffer.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include | rapidsai_public_repos/kvikio/cpp/include/kvikio/file_handle.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include/kvikio | rapidsai_public_repos/kvikio/cpp/include/kvikio/shim/cuda.hpp | /*
* Copyright (c) 2022-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/kvikio/cpp/include/kvikio | rapidsai_public_repos/kvikio/cpp/include/kvikio/shim/utils.hpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/include/kvikio | rapidsai_public_repos/kvikio/cpp/include/kvikio/shim/cufile.hpp | /*
* Copyright (c) 2022-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/kvikio/cpp/include/kvikio | rapidsai_public_repos/kvikio/cpp/include/kvikio/shim/cufile_h_wrapper.hpp | /*
* Copyright (c) 2022-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/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/scripts/run-cmake-format.sh | #!/bin/bash
# Copyright (c) 2021-2023, NVIDIA CORPORATION.
# This script is a wrapper for cmakelang that may be used with pre-commit. The
# wrapping is necessary because RAPIDS libraries split configuration for
# cmakelang linters between a local config file and a second config file that's
# shared across all of RAPI... | 0 |
rapidsai_public_repos/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/cmake/config.json | {
"parse": {
"additional_commands": {
"CPMFindPackage": {
"kwargs": {
"NAME": 1,
"GITHUB_REPOSITORY": "?",
"GIT_TAG": "?",
"VERSION": "?",
"GIT_SHALLOW": "?",
"OPTIONS": "*",
"FIND_PACKAGE_ARGUMENTS": "*"
}
},
... | 0 |
rapidsai_public_repos/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/cmake/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 |
rapidsai_public_repos/kvikio/cpp/cmake | rapidsai_public_repos/kvikio/cpp/cmake/Modules/FindcuFile.cmake | # =============================================================================
# Copyright (c) 2020-2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apa... | 0 |
rapidsai_public_repos/kvikio/cpp/cmake | rapidsai_public_repos/kvikio/cpp/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://www.apa... | 0 |
rapidsai_public_repos/kvikio/cpp/cmake | rapidsai_public_repos/kvikio/cpp/cmake/thirdparty/get_gtest.cmake | # =============================================================================
# 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.apa... | 0 |
rapidsai_public_repos/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/doxygen/main_page.md | # Welcome to KvikIO's C++ documentation!
KvikIO is a Python and C++ library for high performance file IO. It provides C++ and Python
bindings to [cuFile](https://docs.nvidia.com/gpudirect-storage/api-reference-guide/index.html)
which enables [GPUDirect Storage (GDS)](https://developer.nvidia.com/blog/gpudirect-storage... | 0 |
rapidsai_public_repos/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/doxygen/Doxyfile | # Doxyfile 1.8.18
# 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/kvikio/cpp | rapidsai_public_repos/kvikio/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/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/examples/CMakeLists.txt | # =============================================================================
# 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.apa... | 0 |
rapidsai_public_repos/kvikio/cpp | rapidsai_public_repos/kvikio/cpp/examples/basic_io.cpp | /*
* 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... | 0 |
rapidsai_public_repos/kvikio/cpp/examples | rapidsai_public_repos/kvikio/cpp/examples/downstream/downstream_example.cpp | #include <iostream>
#include <kvikio/defaults.hpp>
#include <kvikio/driver.hpp>
using namespace std;
void check(bool condition)
{
if (!condition) {
std::cout << "Error" << std::endl;
exit(-1);
}
}
int main()
{
cout << "KvikIO defaults: " << endl;
if (kvikio::defaults::compat_mode()) {
cout << " ... | 0 |
rapidsai_public_repos/kvikio/cpp/examples | rapidsai_public_repos/kvikio/cpp/examples/downstream/CMakeLists.txt | # =============================================================================
# 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.apa... | 0 |
rapidsai_public_repos/kvikio/cpp/examples/downstream | rapidsai_public_repos/kvikio/cpp/examples/downstream/cmake/get_cpm.cmake | set(CPM_DOWNLOAD_VERSION 0.35.5)
if(CPM_SOURCE_CACHE)
# Expand relative path. This is important if the provided path contains a tilde (~)
get_filename_component(CPM_SOURCE_CACHE ${CPM_SOURCE_CACHE} ABSOLUTE)
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
elseif(DEFINED ENV... | 0 |
rapidsai_public_repos/kvikio/cpp/examples/downstream | rapidsai_public_repos/kvikio/cpp/examples/downstream/cmake/get_kvikio.cmake | # =============================================================================
# Copyright (c) 2022-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 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/legate/pyproject.toml | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"cmake>=3.26.4",
"cython>=3.0.0",
"ninja",
"scikit-build>=0.13.1",
"setuptools",
"wheel",
] # This list was generated by `rapids-... | 0 |
rapidsai_public_repos/kvikio | rapidsai_public_repos/kvikio/legate/CMakeLists.txt | # =============================================================================
# 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/kvikio | rapidsai_public_repos/kvikio/legate/setup.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import os
from pathlib import Path
from setuptools import find_packages
from skbuild import setup
import legate.install_info as lg_install_info
legate_dir = Path(lg_install_info.libpath).parent.as_posix()
cmake_flags... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/tests/test_kerchunk.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import math
import numpy as np
import pytest
from numpy.testing import assert_array_equal
hdf5_read = pytest.importorskip("legate_kvikio.kerchunk").hdf5_read
num = pytest.importorskip("cunumeric")
shape_chunks = (
"sh... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/tests/test_basic_io.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import math
import pytest
from legate.core import get_legate_runtime
from legate_kvikio import CuFile
read_tiles = pytest.importorskip("legate_kvikio.tile").read_tiles
write_tiles = pytest.importorskip("legate_kvikio.tile"... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/tests/test_zarr.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import math
import numpy as np
import pytest
from numpy.testing import assert_array_equal
from legate.core import get_legate_runtime
read_array = pytest.importorskip("legate_kvikio.zarr").read_array
write_array = pytest.im... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/benchmarks/hdf5_read.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import argparse
import contextlib
import pathlib
import tempfile
from time import perf_counter as clock
from typing import ContextManager
import h5py
import numpy as np
DATASET = "dataset-hdf5-read"
def try_open_hdf5_array... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/benchmarks/single-node-io.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import argparse
import contextlib
import os
import os.path
import pathlib
import statistics
import tempfile
from time import perf_counter as clock
from typing import ContextManager, Union
import cunumeric as num
from dask.uti... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/benchmarks/zarr_read.py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.
import argparse
import contextlib
import functools
import pathlib
import tempfile
from time import perf_counter as clock
from typing import ContextManager
import numpy as np
import zarr
from zarr.errors import ArrayNotFoundEr... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/cpp/task_opcodes.hpp |
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/cpp/CMakeLists.txt | # =============================================================================
# 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/kvikio/legate | rapidsai_public_repos/kvikio/legate/cpp/legate_mapping.hpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/kvikio/legate | rapidsai_public_repos/kvikio/legate/cpp/legate_mapping.cpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.