Skip to main content

CUDA accelerated correlation and sum reduction functions

Project description

CUDA Kernels

A Python package containing CUDA-accelerated functions for autocorrelation and sum reduction operations.

Installation

Requirements

  • NVIDIA GPU with CUDA support
  • CUDA Toolkit installed (version 11.0 or higher recommended)
  • Python 3.6+
  • NumPy

Installing from PyPI

pip install cuda-kernels

Installing from source

git clone https://github.com/AstuteFern/cuda-toolkit.git
cd cuda-toolkit
pip install .

Usage

Autocorrelation

import numpy as np
from cuda_kernels.autocorrelation import autocorrelation

# Create some test data
data = np.random.randn(10000).astype(np.float32)

# Compute autocorrelation for lags 0 to 100
result = autocorrelation(data, max_lag=100)

Sum Reduction

import numpy as np
from cuda_kernels.reduction import reduction_sum

# Create some test data
data = np.random.randn(10000).astype(np.float32)

# Compute sum
result = reduction_sum(data)
print(f"Sum: {result}")

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cuda_kernels-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cuda_kernels-0.1.0-cp310-cp310-win_amd64.whl (118.9 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file cuda_kernels-0.1.0.tar.gz.

File metadata

  • Download URL: cuda_kernels-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.0

File hashes

Hashes for cuda_kernels-0.1.0.tar.gz
Algorithm Hash digest
SHA256 846a8a63b0de7c7d57fa5ae2ad708519e6187a85cbd959f55f9d60123e12ebba
MD5 2c3e11d536f29e25b4633a582f89e21a
BLAKE2b-256 a14baa0510e6a77819e183baf7d2c081a5db029b2f56583d900c1d8a40d674e8

See more details on using hashes here.

File details

Details for the file cuda_kernels-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for cuda_kernels-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bffdfadbc6584010890056f8313815a25c96ae83042b1d06e76c1c462c626589
MD5 968e23af8603828a8644b5669f9bf3e1
BLAKE2b-256 2ef412df0b449c0e1e631e87cd908cb2572012ce57f5e8b461faf253e6057fdd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page