All Projects → cupy → Cupy

cupy / Cupy

Licence: mit
NumPy & SciPy for GPU

Programming Languages

python
139335 projects - #7 most used programming language
cython
566 projects
C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
Cuda
1817 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to Cupy

Chainer
A flexible framework of neural networks for deep learning
Stars: ✭ 5,656 (+0.55%)
Mutual labels:  gpu, cupy, cudnn, numpy, cuda
Pynvvl
A Python wrapper of NVIDIA Video Loader (NVVL) with CuPy for fast video loading with Python
Stars: ✭ 95 (-98.31%)
Mutual labels:  gpu, cupy, numpy, cuda
Einops
Deep learning operations reinvented (for pytorch, tensorflow, jax and others)
Stars: ✭ 4,022 (-28.5%)
Mutual labels:  tensor, cupy, numpy
Speedtorch
Library for faster pinned CPU <-> GPU transfer in Pytorch
Stars: ✭ 615 (-89.07%)
Mutual labels:  gpu, cupy, cuda
Drlkit
A High Level Python Deep Reinforcement Learning library. Great for beginners, prototyping and quickly comparing algorithms
Stars: ✭ 29 (-99.48%)
Mutual labels:  gpu, tensor, numpy
Tensorly
TensorLy: Tensor Learning in Python.
Stars: ✭ 977 (-82.63%)
Mutual labels:  tensor, cupy, numpy
Mtensor
A C++ Cuda Tensor Lazy Computing Library
Stars: ✭ 115 (-97.96%)
Mutual labels:  tensor, numpy, cuda
Tvm
Open deep learning compiler stack for cpu, gpu and specialized accelerators
Stars: ✭ 7,494 (+33.23%)
Mutual labels:  gpu, tensor, rocm
Deepnet
Deep.Net machine learning framework for F#
Stars: ✭ 99 (-98.24%)
Mutual labels:  gpu, tensor, cuda
Pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
Stars: ✭ 52,811 (+838.86%)
Mutual labels:  gpu, tensor, numpy
Imagenet Classifier Tensorflow
Image recognition and classification using Convolutional Neural Networks with TensorFlow
Stars: ✭ 13 (-99.77%)
Mutual labels:  tensor, cudnn, cuda
Bohrium
Automatic parallelization of Python/NumPy, C, and C++ codes on Linux and MacOSX
Stars: ✭ 209 (-96.28%)
Mutual labels:  gpu, numpy, cuda
Arraymancer
A fast, ergonomic and portable tensor library in Nim with a deep learning focus for CPU, GPU and embedded devices via OpenMP, Cuda and OpenCL backends
Stars: ✭ 793 (-85.9%)
Mutual labels:  tensor, cudnn, cuda
Megengine
MegEngine 是一个快速、可拓展、易于使用且支持自动求导的深度学习框架
Stars: ✭ 4,081 (-27.45%)
Mutual labels:  gpu, numpy, tensor
Numba
NumPy aware dynamic Python compiler using LLVM
Stars: ✭ 7,090 (+26.04%)
Mutual labels:  numpy, cuda, rocm
Nvidia libs test
Tests and benchmarks for cudnn (and in the future, other nvidia libraries)
Stars: ✭ 36 (-99.36%)
Mutual labels:  gpu, cudnn, cuda
Tensorflow Object Detection Tutorial
The purpose of this tutorial is to learn how to install and prepare TensorFlow framework to train your own convolutional neural network object detection classifier for multiple objects, starting from scratch
Stars: ✭ 113 (-97.99%)
Mutual labels:  gpu, cudnn, cuda
gpu-monitor
Script to remotely check GPU servers for free GPUs
Stars: ✭ 85 (-98.49%)
Mutual labels:  gpu, cuda, cudnn
Stats Maths With Python
General statistics, mathematical programming, and numerical/scientific computing scripts and notebooks in Python
Stars: ✭ 381 (-93.23%)
Mutual labels:  numpy, scipy
Hipsycl
Implementation of SYCL for CPUs, AMD GPUs, NVIDIA GPUs
Stars: ✭ 377 (-93.3%)
Mutual labels:  gpu, cuda

CuPy : NumPy & SciPy for GPU

pypi Conda Version GitHub license coveralls Gitter Twitter

Website | Install | Tutorial | Examples | Documentation | API Reference | Forum

CuPy is a NumPy/SciPy-compatible array library for GPU-accelerated computing with Python. CuPy acts as a drop-in replacement to run existing NumPy/SciPy code on NVIDIA CUDA or AMD ROCm platforms.

>>> import cupy as cp
>>> x = cp.arange(6).reshape(2, 3).astype('f')
>>> x
array([[ 0.,  1.,  2.],
       [ 3.,  4.,  5.]], dtype=float32)
>>> x.sum(axis=1)
array([  3.,  12.], dtype=float32)

CuPy also provides access to low-level CUDA features. You can pass ndarray to existing CUDA C/C++ programs via RawKernels, use Streams for performance, or even call CUDA Runtime APIs directly.

Installation

Wheels (precompiled binary packages) are available for Linux (x86_64) and Windows (amd64). Choose the right package for your platform.

Platform Command
CUDA 10.2 pip install cupy-cuda102
CUDA 11.0 pip install cupy-cuda110
CUDA 11.1 pip install cupy-cuda111
CUDA 11.2 pip install cupy-cuda112
CUDA 11.3 pip install cupy-cuda113
CUDA 11.4 pip install cupy-cuda114
CUDA 11.5 pip install cupy-cuda115
ROCm 4.0 (*) pip install cupy-rocm-4-0
ROCm 4.2 (*) pip install cupy-rocm-4-2
ROCm 4.3 (*) pip install cupy-rocm-4-3

(*) ROCm support is an experimental feature. Refer to the docs for details.

Use -f https://pip.cupy.dev/pre option to install pre-releases (e.g., pip install cupy-cuda114 -f https://pip.cupy.dev/pre). See the Installation Guide if you are using Conda/Anaconda or building from source.

Run on Docker

Use NVIDIA Container Toolkit to run CuPy image with GPU.

$ docker run --gpus all -it cupy/cupy

More information

License

MIT License (see LICENSE file).

CuPy is designed based on NumPy's API and SciPy's API (see docs/LICENSE_THIRD_PARTY file).

CuPy is being maintained and developed by Preferred Networks Inc. and community contributors.

Reference

Ryosuke Okuta, Yuya Unno, Daisuke Nishino, Shohei Hido and Crissman Loomis. CuPy: A NumPy-Compatible Library for NVIDIA GPU Calculations. Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Thirty-first Annual Conference on Neural Information Processing Systems (NIPS), (2017). [PDF]

@inproceedings{cupy_learningsys2017,
  author       = "Okuta, Ryosuke and Unno, Yuya and Nishino, Daisuke and Hido, Shohei and Loomis, Crissman",
  title        = "CuPy: A NumPy-Compatible Library for NVIDIA GPU Calculations",
  booktitle    = "Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Thirty-first Annual Conference on Neural Information Processing Systems (NIPS)",
  year         = "2017",
  url          = "http://learningsys.org/nips17/assets/papers/paper_16.pdf"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].