Cupy

Latest version: v13.4.0

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 26

7.0.0b4

Not secure
This is the release note of v7.0.0b4. See [here](https://github.com/cupy/cupy/milestone/57?closed=1) for the complete list of solved issues and merged PRs.

New Features

- Add `cupy.cross` (2366, thanks UmashankarTriforce!)
- Add `cupy.may_share_memory` (2417)
- Add occupancy driver APIs (2424, thanks leofang!)
- Add `scatter_max` and `scatter_min` (2427)
- Support texture memory in `RawKernel` (2432, thanks leofang!)

Enhancements

- Extend `CuDNNError` to have more debugging information (2404)
- Add complex dtype support to `cupy.std` and `cupy.var` (2411, thanks grlee77!)
- Support complex dtypes in `cupy.linalg.inv()` (2468, thanks leofang!)

Performance Improvements

- Use CUB to speed up `sum`/`min`/`max` (2090)
- Avoid creating empty numpy ndarray in `common_type` (2307)
- `cupy.linalg.norm`: update docstring and improve performance for `ord=2` cases (2479, thanks grlee77!)

Bug Fixes

- Fix bug in `coosort` (2410, thanks econtal!)
- Fix multithreading issue in `cupy.cuda.cufft.get_current_plan()` (2435, thanks leofang!)
- Normalize hidden layer strides in cuDNN RNN (2442)
- Copy inputs in ufunc if they share the same memory with outputs (2460)

Code Fixes

- Fix cuSOLVER `devInfo` dtype in `inv` and unify how those are specified (2454)
- Fix code convention of statistics routines (2459)
- Remove unnecessary `ndarray` private methods (2465)

Documentation

- Document `CUTENSOR_PATH` environment variable (2386)
- Add appropriate pointer types in Cython to the contribute guide (2455, thanks leofang!)
- Fix invalid escape sequence (2470)

Installation

- Fix NumPy version in Dockerfile (2430)

Examples

- Broadcast `ValueError` for `n-clusters > 2` in k-means example (2453, thanks casheera!)

Tests

- Simplify `cupy.fuse` tests (2339)
- Revert "Skip some ndarray-elementwise-op tests as temporary fix" (2383)
- Drop Python 2 Travis CI configuration (2428)
- Drop Python 2 PFN CI configuration (2429)
- Change URL to place test assets (2434)
- Add NumPy 1.17.1 to skip list of 0-length `ifft` test (2441)
- Remove unnecessary skip in 0-length `ifft` test (2443)
- Fix `TestDLTensorMemory.test_delete` (2451)
- Fix data race in advanced indexing test (2472)
- Fix `pytest` 5.x version errors (2473)
- Remove global state from tests (2475, thanks leofang!)

7.0.0b3

Not secure
This is the release note of v7.0.0b3. See [here](https://github.com/cupy/cupy/milestone/55?closed=1) for the complete list of solved issues and merged PRs.

Highlights

`cupy.RawModule` has been introduced to allow users access low-level features (CUDA modules).

Dropping Support of Python 2

Due to the end-of-life (EOL) of Python 2 in January 2020, Python 2 support has been dropped in this release. CuPy v6.x continues to support Python 2. See the [blog post](https://chainer.org/announcement/2019/08/21/python2.html) for details.

New Features

- Add `cupy.nanargmin` and `cupy.nanargmax` (2222, thanks harshalchaudhari35!)
- Support cuDNN Fused Ops API (2246)
- Add `fallback_mode.ndarray` (2272, thanks Piyush-555!)
- Add NCCL broadcast (2303)
- Add `take_along_axis` (2314)
- Add `cupy.nanmean` (2319, thanks Piyush-555!)
- Add more cuSolver APIs for dense linear solver (2320)
- Provide full coverage for NCCL APIs in CuPy (2325, thanks leofang!)
- Add `cupy.nanvar` and `cupy.nanstd` (2344, thanks Piyush-555!)
- Allow getting and setting CUDA kernel attributes (2369, thanks leofang, grlee77 and andravin!)
- Add `cupy.RawModule()` (2389, thanks leofang!)
- Add `diagonal` method for `cupyx.scipy.sparse.dia_matrix` (2398, thanks grlee77!)

Enhancements

- Support for shape argument in `*_like` functions (2171, thanks pentschev!)
- Support batched matrix inverse (2300)
- Add wrapper for `numpy.vectorize` in `fallback_mode` (2350, thanks Piyush-555!)
- Allow cuFFT plans to be used as a context manager; Set stream before executing cuFFT plans (2362, thanks leofang!)
- Raise `DeprecationWarning` on 0-dim arrays in `numpy.nonzero` to match NumPy 1.17 behavior (2394)
- Change check condition of `accept_error` (2396)

Bug Fixes

- Make exceptions picklable (2318)
- Make `cupy.tensordot` use Tensor Core also in case of compute-capability > 70 (2328)

Code Fixes

- Fix unused imports and import orders (2312)
- Fix variable names in `tri` kernel (2326)
- Some simplifications using `isnan` (2364)
- Small fix of `fusion.pyx` and docs (2393, thanks xuzijian629!)

Documentation

- Add new functions to API reference (2308)
- Fix for `linalg.svd` documentation (2321, thanks IvanYashchuk!)
- Fix markup in `linalg.svd` docs (2323)
- Fix doctest failure related to `__array_function__` support (2352)
- Add 1.17 to supported NumPy versions (2368)

Tests

- Make wheel of master for CI (2144)
- Add ChainerCV's tests to pfnCI (2186)
- Fix tests of `linalg.svd` (2338)
- Check return type in `test_type_routines.py` (2358)
- Skip some FFT tests on NumPy 1.17.0 due to a NumPy bug (2363, thanks grlee77!)
- Remove `random.power` test with forbidden value (2375)
- Skip some tests in `TestArrayElementwiseOp` as temporary fix (2376)
- Avoid using `numpy.nonzero` in `_make_decorator` (2385)
- Increase numbers of retries for K-S tests (2397)

Others

- Drop support for Python 2.7 and 3.4 (2343)

7.0.0b2

Not secure
This is the release note of v7.0.0b2. See [here](https://github.com/cupy/cupy/milestone/54?closed=1) for the complete list of solved issues and merged PRs.

Highlights

- `cupy.cutensor` has been introduced that wraps [cuTENSOR](https://developer.nvidia.com/gtc/2019/video/S9593), allowing high-performance tensor operations. Examples are available [here](https://github.com/cupy/cupy/tree/master/examples/cutensor).

Changes without compatibility

- `cupy.load` now specifies `allow_pickle=False` by default to follow the security fix made in NumPy 1.16.3 (see [numpy/numpy 13359](https://github.com/numpy/numpy/pull/13359) and [cupy/cupy #2290](2290) for details). Most users should not be affected by this change; users loading `ndarray` serialized using pickle may need to explicitly specify `allow_pickle=True`.

New Features

- Support cuTENSOR (2210)
- Add `nansum` and `nanprod` support (2252, thanks pentschev!)

Enhancements

- Raise error when no available algorithm found by `cudnnFindConvolution*` (2234)
- Add NHWC layout support to batch normalization (2235)
- Remove unused code (2255)
- Support non-square matrices in `lu_factor` (2286, thanks econtal!)
- Remove `cupy.ndarray.{nansum/nanprod}` (2292)
- Remove warning about nvcc absence (2299)

Performance Improvements

- Add support for merge path algorithm (`csrmvEx`) when `csr_matrix` multiply with a dense vector (2287, thanks wonghang!)

Bug Fixes

- Add wrappers for `can_cast`, `common_type` and `result_type` functions (2249, thanks pentschev!)
- Make `__cuda_array_interface__()['strides']` be `tuple` (2260, thanks leofang!)
- Avoid `CUDNN_STATUS_BAD_PARAMS` (2261, thanks himkt!)
- Support `allow_pickle` in `cupy.load` and `cupy.save` (2290)

Documentation

- Update installation guide (2184)
- Document interoperability with `mpi4py` (2270, thanks leofang!)

Installation

- Make nvcc code generation target configure by env var (2293)

Tests

- Fix test failure when cuDNN is unavailable (2284)
- Enhance tests for type routines (2306)

7.0.0b1

Not secure
This is the release note of v7.0.0b1. See [here](https://github.com/cupy/cupy/milestone/52?closed=1) for the complete list of solved issues and merged PRs.

Highlights

Host to device copy from NumPy ndarrays is now allowed as an experimental feature with the syntax `cupy_array[:] = numpy_array`. Set the environment variable `CUPY_EXPERIMENTAL_SLICE_COPY` to try it out.

Notes

- Tensor Core in cuDNN convolution is tentatively disabled for Turing GPUs due to some test failures. The issue is under investigation and hopefully fixed in a future version.

New Features

- Allow copying in the format `cupy_array[:] = numpy_array` (2079, thanks pentschev!)
- Add `linalg.lstsq` (2165, thanks cjekel!)
- Add `fallback_mode` (2229, thanks Piyush-555!)
- Add `CUDNN_POOLING_MAX_DETERMINISTIC` (2239)
- Add API to retrieve installation info (2245)

Enhancements

- Improve `atomicAdd` in histogram and sample (1345)
- Set current device in `cupy.ndarray.get()`/`set()` (2169, thanks hyabe!)
- Improve out-of-memory error message (2242)
- Simplify `_prepare_multiple_array_indexing` (2254)
- Fix `_preprocess_args` to avoid calling `hasattr` (2256)
- Add `constant` modification to `vector_equal` (2257)

Performance Improvements

- Optimize the initialization of `List[ndarray]` in `cupy.array` (2081)

Bug Fixes

- Revert "Fix usage check of Tensor Core" (2197)
- Fix `power` for large integrals (2204)
- Avoid division by zero in `tensordot`, allowing 0-length arrays (2209, thanks pentschev!)
- Make `RandomState.permutation` compatible with `random.permutation` (2250)

Code Fixes

- Coding style fix (2211)

Documentation

- Add `cupy-cuda101` to README (2196)
- Fix: duplicate object description of cupy (2233)

Installation

- Add setup option to copy include files in wheel (2208)
- Bump version to v7.0.0b1 (2266)

Tests

- Ignore invalid axis type test in NumPy 1.12.x or earlier (2192)

Others

- Fix `array_split` with non-equally dividing sections (2207)

7.0.0a1

Not secure
This is the release note of v7.0.0a1. See [here](https://github.com/cupy/cupy/milestone/50?closed=1) for the complete list of solved issues and merged PRs.

Highlights

* CuPy memory pool now supports setting hard-limit quota for the amount of GPU memory allocated. Refer to the [reference](https://docs-cupy.chainer.org/en/latest/reference/memory.html#limiting-gpu-memory-usage) for the details.

New Features

- Support cuDNN CTC functions (1769, thanks aonotas!)
- Support NHWC format in convolution (1885)
- Add `hostRegister` and `hostUnregister` (2102)
- Implement limit to memory pool (2113)
- Add `strides_check` option in array testing functions (2150)

Enhancements

- Fix `ascontiguousarray` with 0-dim array input (2078)
- Emit kernel names with type names (2151)
- Support complex dtypes in `cupy.where` (2175, thanks AntoineDujardin!)

Bug Fixes

- Fix `__cuda_array_interface__` data pointer for sliced arrays (2129, thanks pentschev!)
- Fix usage check of Tensor Core (2168)
- Avoid using Tensor Core with cuDNN deterministic mode in convolution backward (2174)

Code Fixes

- Avoid unnecessary weak pointer for null stream (1539)
- Avoid PyThread in `stream.pyx` (1945)
- Add a comment to the testing condition of `einsum` (2131)
- Fix style (2167)

Documentation

- Add upgrade guide for v6 (2182)

Installation

- Fix compile error on CUDA 10.1 and GCC 7 or 8 (2147, thanks grafi-tt!)

Examples

- Make k-means example's custom kernels simpler (2145)
- Make k-means sample code cleaner for educational purpose (2146)

Tests

- Fix testing condition of `diff` and `unwrap` (2124)
- Add a test for `assert_array_equal(strides_check=True)` (2156)
- Fix test failure when cudnn is unavailable (2161)

6.7.0

Not secure
This is the release note of v6.7.0. See [here](https://github.com/cupy/cupy/milestone/64?closed=1) for the complete list of solved issues and merged PRs.

As [announced previously](https://chainer.org/announcement/2019/08/21/python2.html), this is the final release of v6 series, which is the last version supporting Python 2.


Enhancements

- Fix slow import of cupy (2765, thanks cgohlke!)
- Support 64 bit extent `randint` (2855)
- Fix `testing.numpy_cupy_` decorators for skips (2892)
- Show warning for cuFFT bug in `irfftn` (2959)

Bug Fixes

- Fix axes handling in `_fftn` (2752)
- Detect interpreter shutdown for proper `__del__` behavior (2812)
- Fix `true_divide` with dtype argument (2835)
- Fix split and array_split with indices overrun (2837)
- Fix split and array_split with unordered indices supplied (2856)
- Avoid looking up null pointers' attributes (2868, thanks leofang!)
- Fix `testing.shaped_random` for shape `()` (2895)

Documentation

- Fix the docstring format of `cupy.asarray` (2826, thanks leofang!)


Tests

- Use more stable input to test `linalg.matrix_power` (2791)
- Fix decorator usage in tests (2850)
- Test `ifloordiv` with numpy 1.18 (2879)
- Fix `test_helper.py` for NumPy 1.18 (2912)
- Avoid 0s in the diagonal of `TestSolveTriangular` inputs (2930)

Others

- Add Mergify configuration file (2934)

Page 16 of 26

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.