Skip to content

Commit

Permalink
Merge branch 'branch-24.02' into feat-csv-grid-stride
Browse files Browse the repository at this point in the history
  • Loading branch information
DanialJavady96 authored Jan 2, 2024
2 parents f9ba06a + 2be060e commit f134513
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ repos:
^CHANGELOG.md$
)
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.7.1
rev: v1.8.0
hooks:
- id: rapids-dependency-file-generator
args: ["--clean"]
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CUDA/GPU:

* CUDA 11.5+
* NVIDIA driver 450.80.02+
* Pascal architecture or better
* Volta architecture or better (Compute Capability >=7.0)

You can obtain CUDA from
[https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ print(tips_df.groupby("size").tip_percentage.mean())

* CUDA 11.2+
* NVIDIA driver 450.80.02+
* Pascal architecture or better (Compute Capability >=6.0)
* Volta architecture or better (Compute Capability >=7.0)

### Conda

Expand Down
12 changes: 1 addition & 11 deletions cpp/src/io/comp/nvcomp_adapter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -48,11 +48,6 @@
#define NVCOMP_ZSTD_DECOMP_IS_STABLE(MAJOR, MINOR, PATCH) \
(MAJOR > 2 or (MAJOR == 2 and MINOR > 3) or (MAJOR == 2 and MINOR == 3 and PATCH >= 2))

// Issue https://github.com/NVIDIA/spark-rapids/issues/6614 impacts nvCOMP 2.4.0 ZSTD decompression
// on compute 6.x
#define NVCOMP_ZSTD_IS_DISABLED_ON_PASCAL(MAJOR, MINOR, PATCH) \
(MAJOR == 2 and MINOR == 4 and PATCH == 0)

namespace cudf::io::nvcomp {

// Dispatcher for nvcompBatched<format>DecompressGetTempSizeEx
Expand Down Expand Up @@ -551,11 +546,6 @@ std::optional<std::string> is_zstd_decomp_disabled(feature_status_parameters con
"`LIBCUDF_NVCOMP_POLICY` environment variable.";
}

if (NVCOMP_ZSTD_IS_DISABLED_ON_PASCAL(
params.lib_major_version, params.lib_minor_version, params.lib_patch_version) and
params.compute_capability_major == 6) {
return "Zstandard decompression is disabled on Pascal GPUs";
}
return std::nullopt;
}

Expand Down
4 changes: 1 addition & 3 deletions cpp/tests/io/comp/decomp_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2023, NVIDIA CORPORATION.
* Copyright (c) 2019-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -213,8 +213,6 @@ TEST_F(NvcompConfigTest, Decompression)
EXPECT_TRUE(decomp_disabled(compression_type::ZSTD, {2, 2, 0, true, true, 7}));
// stable integrations enabled required
EXPECT_TRUE(decomp_disabled(compression_type::ZSTD, {2, 4, 0, false, false, 7}));
// 2.4.0 disabled on Pascal
EXPECT_TRUE(decomp_disabled(compression_type::ZSTD, {2, 4, 0, true, true, 6}));

EXPECT_FALSE(decomp_disabled(compression_type::SNAPPY, {2, 4, 0, true, true, 7}));
EXPECT_FALSE(decomp_disabled(compression_type::SNAPPY, {2, 3, 0, false, true, 7}));
Expand Down
114 changes: 50 additions & 64 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@ dependencies:
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
cuda: "12.*"
packages:
- cuda-version=12.0
- cuda-nvcc
- matrix:
arch: x86_64
Expand All @@ -229,6 +228,14 @@ dependencies:
cuda: "11.8"
packages:
- nvcc_linux-aarch64=11.8
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
packages:
- cuda-version=12.0
- matrix: # Fallback for CUDA 11 or no matrix
packages:
build_cpp:
common:
- output_types: conda
Expand Down Expand Up @@ -289,17 +296,12 @@ dependencies:
specific:
- output_types: [requirements, pyproject]
matrices:
- matrix: {cuda: "12.2"}
- matrix: {cuda: "12.*"}
packages: &build_python_packages_cu12
- &rmm_cu12 rmm-cu12==24.2.*
- {matrix: {cuda: "12.1"}, packages: *build_python_packages_cu12}
- {matrix: {cuda: "12.0"}, packages: *build_python_packages_cu12}
- matrix: {cuda: "11.8"}
- matrix: {cuda: "11.*"}
packages: &build_python_packages_cu11
- &rmm_cu11 rmm-cu11==24.2.*
- {matrix: {cuda: "11.5"}, packages: *build_python_packages_cu11}
- {matrix: {cuda: "11.4"}, packages: *build_python_packages_cu11}
- {matrix: {cuda: "11.2"}, packages: *build_python_packages_cu11}
- {matrix: null, packages: null }
- output_types: pyproject
matrices:
Expand Down Expand Up @@ -336,18 +338,25 @@ dependencies:
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
cuda: "12.*"
packages:
- cuda-version=12.0
- cuda-cudart-dev
- cuda-nvrtc-dev
- cuda-nvtx-dev
- libcurand-dev
- matrix: # Fallback for CUDA 11 or no matrix
packages:
- cudatoolkit
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
packages:
- cuda-version=12.0
- matrix:
cuda: "11.8"
packages:
- cuda-version=11.8
- cudatoolkit
- cuda-nvtx=11.8
- libcurand-dev=10.3.0.86
- libcurand=10.3.0.86
Expand Down Expand Up @@ -383,7 +392,7 @@ dependencies:
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
cuda: "12.*"
arch: x86_64
packages:
- libcufile-dev
Expand Down Expand Up @@ -500,43 +509,30 @@ dependencies:
specific:
- output_types: [conda, requirements, pyproject]
matrices:
- matrix: {cuda: "12.2"}
packages: &run_cudf_packages_all_cu12
- matrix: {cuda: "12.*"}
packages:
- cuda-python>=12.0,<13.0a0
- {matrix: {cuda: "12.1"}, packages: *run_cudf_packages_all_cu12}
- {matrix: {cuda: "12.0"}, packages: *run_cudf_packages_all_cu12}
- matrix: {cuda: "11.8"}
- matrix: {cuda: "11.*"}
packages: &run_cudf_packages_all_cu11
- cuda-python>=11.7.1,<12.0a0
- {matrix: {cuda: "11.5"}, packages: *run_cudf_packages_all_cu11}
- {matrix: {cuda: "11.4"}, packages: *run_cudf_packages_all_cu11}
- {matrix: {cuda: "11.2"}, packages: *run_cudf_packages_all_cu11}
- {matrix: null, packages: *run_cudf_packages_all_cu11}
- output_types: conda
matrices:
- matrix: {cuda: "11.8"}
packages: &run_cudf_packages_conda_cu11
- matrix: {cuda: "11.*"}
packages:
- cubinlinker
- ptxcompiler
- {matrix: {cuda: "11.5"}, packages: *run_cudf_packages_conda_cu11}
- {matrix: {cuda: "11.4"}, packages: *run_cudf_packages_conda_cu11}
- {matrix: {cuda: "11.2"}, packages: *run_cudf_packages_conda_cu11}
- {matrix: null, packages: null}
- output_types: [requirements, pyproject]
matrices:
- matrix: {cuda: "12.2"}
packages: &run_cudf_packages_pip_cu12
- matrix: {cuda: "12.*"}
packages:
- rmm-cu12==24.2.*
- {matrix: {cuda: "12.1"}, packages: *run_cudf_packages_pip_cu12}
- {matrix: {cuda: "12.0"}, packages: *run_cudf_packages_pip_cu12}
- matrix: {cuda: "11.8"}
packages: &run_cudf_packages_pip_cu11
- matrix: {cuda: "11.*"}
packages:
- rmm-cu11==24.2.*
- cubinlinker-cu11
- ptxcompiler-cu11
- {matrix: {cuda: "11.5"}, packages: *run_cudf_packages_pip_cu11}
- {matrix: {cuda: "11.4"}, packages: *run_cudf_packages_pip_cu11}
- {matrix: {cuda: "11.2"}, packages: *run_cudf_packages_pip_cu11}
- {matrix: null, packages: null}
- output_types: pyproject
matrices:
Expand Down Expand Up @@ -566,13 +562,20 @@ dependencies:
- *gtest
- *gmock
specific:
- output_types: conda
matrices:
- matrix:
cuda: "12.*"
packages:
- cuda-sanitizer-api
- matrix: # Fallback for CUDA 11 or no matrix
packages:
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
packages:
- cuda-version=12.0
- cuda-sanitizer-api
- matrix:
cuda: "11.8"
packages:
Expand Down Expand Up @@ -654,17 +657,12 @@ dependencies:
specific:
- output_types: [requirements, pyproject]
matrices:
- matrix: {cuda: "12.2"}
packages: &cudf_packages_pip_cu12
- matrix: {cuda: "12.*"}
packages:
- cudf-cu12==24.2.*
- {matrix: {cuda: "12.1"}, packages: *cudf_packages_pip_cu12}
- {matrix: {cuda: "12.0"}, packages: *cudf_packages_pip_cu12}
- matrix: {cuda: "11.8"}
packages: &cudf_packages_pip_cu11
- matrix: {cuda: "11.*"}
packages:
- cudf-cu11==24.2.*
- {matrix: {cuda: "11.5"}, packages: *cudf_packages_pip_cu11}
- {matrix: {cuda: "11.4"}, packages: *cudf_packages_pip_cu11}
- {matrix: {cuda: "11.2"}, packages: *cudf_packages_pip_cu11}
- {matrix: null, packages: [*cudf_conda]}
depends_on_cudf_kafka:
common:
Expand All @@ -680,17 +678,12 @@ dependencies:
specific:
- output_types: [requirements, pyproject]
matrices:
- matrix: {cuda: "12.2"}
packages: &cudf_kafka_packages_pip_cu12
- matrix: {cuda: "12.*"}
packages:
- cudf_kafka-cu12==24.2.*
- {matrix: {cuda: "12.1"}, packages: *cudf_kafka_packages_pip_cu12}
- {matrix: {cuda: "12.0"}, packages: *cudf_kafka_packages_pip_cu12}
- matrix: {cuda: "11.8"}
packages: &cudf_kafka_packages_pip_cu11
- matrix: {cuda: "11.*"}
packages:
- cudf_kafka-cu11==24.2.*
- {matrix: {cuda: "11.5"}, packages: *cudf_kafka_packages_pip_cu11}
- {matrix: {cuda: "11.4"}, packages: *cudf_kafka_packages_pip_cu11}
- {matrix: {cuda: "11.2"}, packages: *cudf_kafka_packages_pip_cu11}
- {matrix: null, packages: [*cudf_kafka_conda]}
depends_on_cupy:
common:
Expand All @@ -700,19 +693,12 @@ dependencies:
specific:
- output_types: [requirements, pyproject]
matrices:
# All CUDA 12 versions
- matrix: {cuda: "12.2"}
packages: &cupy_packages_cu12
- matrix: {cuda: "12.*"}
packages:
- cupy-cuda12x>=12.0.0
- {matrix: {cuda: "12.1"}, packages: *cupy_packages_cu12}
- {matrix: {cuda: "12.0"}, packages: *cupy_packages_cu12}
# All CUDA 11 versions
- matrix: {cuda: "11.8"}
- matrix: {cuda: "11.*"}
packages: &cupy_packages_cu11
- cupy-cuda11x>=12.0.0
- {matrix: {cuda: "11.5"}, packages: *cupy_packages_cu11}
- {matrix: {cuda: "11.4"}, packages: *cupy_packages_cu11}
- {matrix: {cuda: "11.2"}, packages: *cupy_packages_cu11}
- {matrix: null, packages: *cupy_packages_cu11}
test_python_pandas_cudf:
common:
Expand Down
23 changes: 12 additions & 11 deletions python/cudf/cudf/utils/gpu_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2022, NVIDIA CORPORATION.
# Copyright (c) 2020-2024, NVIDIA CORPORATION.


def validate_setup():
Expand Down Expand Up @@ -70,23 +70,24 @@ def validate_setup():
cudaDeviceAttr.cudaDevAttrComputeCapabilityMajor, 0
)

if major_version < 6:
# A GPU with NVIDIA Pascal™ architecture or newer is required.
if major_version < 7:
# A GPU with NVIDIA Volta™ architecture or newer is required.
# Reference: https://developer.nvidia.com/cuda-gpus
# Hardware Generation Compute Capability
# Ampere 8.x
# Turing 7.5
# Volta 7.0, 7.2
# Pascal 6.x
# Hardware Generation Compute Capability
# Hopper 9.x
# Ampere 8.x
# Turing 7.5
# Volta 7.0, 7.2
# Pascal 6.x
# Maxwell 5.x
# Kepler 3.x
# Fermi 2.x
# Kepler 3.x
# Fermi 2.x
device_name = deviceGetName(0)
minor_version = getDeviceAttribute(
cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor, 0
)
warnings.warn(
"A GPU with NVIDIA Pascal™ (Compute Capability 6.0) "
"A GPU with NVIDIA Volta™ (Compute Capability 7.0) "
"or newer architecture is required.\n"
f"Detected GPU 0: {device_name}\n"
f"Detected Compute Capability: {major_version}.{minor_version}"
Expand Down
6 changes: 3 additions & 3 deletions python/custreamz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ from custreamz import kafka

# Full list of configurations can be found at: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
kafka_configs = {
"metadata.broker.list": "localhost:9092",
"group.id": "custreamz-client",
"metadata.broker.list": "localhost:9092",
"group.id": "custreamz-client",
}

# Create a reusable Kafka Consumer client; "datasource"
Expand Down Expand Up @@ -50,7 +50,7 @@ Please see the [Demo Docker Repository](https://hub.docker.com/r/rapidsai/rapids

* CUDA 11.0+
* NVIDIA driver 450.80.02+
* Pascal architecture or better (Compute Capability >=6.0)
* Volta architecture or better (Compute Capability >=7.0)

### Conda

Expand Down

0 comments on commit f134513

Please sign in to comment.