Cupy

Latest version: v13.1.0

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

Scan your dependencies

Page 13 of 25

8.0.0a1

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

Known packaging issues:
* CuPy build fails when using CUDA 8.0 on Windows (3076). Due to this issue, `cupy-cuda80` wheel packages for Windows are unavailable for this version. Linux or CUDA 9.0+ users are unaffected.
* ~Wheel packages for CUDA 10.2 (`cupy-cuda102`) are currently unavailable on PyPI. Packages will be published after getting [approval of the file size limit increase](https://github.com/pypa/pypi-support/issues/191).~ (resolved on 2020-02-21)

Highlights

This release adds support for CUDA 10.2 and NumPy 1.18.
CuPy 8.0.0a1 comes with several exciting new features such as better sparse matrix support, and for users who like to write their own CUDA kernels, there is the possibility of using grid synchronization in `RawKernel` and `RawModule` and allow to tune the block size for `ElementwiseKernels`. There are some noticeable performance improvements as well thanks to the extended support of CUB in several CuPy functions.


Changes without compatibility
- update slicing of CSR and CSC matrices for compatibility with SciPy 1.4.0 (2776)
- Fixed to follow Scipy returns empty slices are returned for such cases.
- Separate code and path arguments in `RawModule` (2784)
- Avoid device synchronization in `cupy.allclose` (2799)
- Changed `cupy.isclose` to return a 0-dim `cupy.ndarray` instead of a float value to avoid device synchronization.
- Remove `dtype` argument from `min`/`max` (2875)
- Rename arg of `isscalar` (2974)
- Renamed the argument of `cupy.isscalar` to `element`, previously named as `num`.

New Features

- Added min, max, argmin, argmax to sparse csr and csc matrices (2711, thanks dloney!)
- Add helpers to measure execution times (2740)
- Add `digitize` (2758)
- Support loading PTX in `cupy.RawModule` (2782, thanks leofang!)
- Fix `cupyx.scipy.ndimage.map_coordinates` for cases with coords > 2d (2813, thanks grlee77!)
- Detect synchronization (2819)
- Add `ptp` ndarray method and function (2859, thanks grlee77!)
- Add convex analysis ufuncs to `cupyx.scipy.special` (2861, thanks grlee77!)
- Allow `ElementwiseKernel` to set the block_size (2914)
- Support grid synchronization in `RawKernel` and `RawModule` (2925)
- Add `cupy.conjugate` and make `cupy.conj` its alias (2982)
- Add a keyword-only `plan` argument to `cupyx.scipy.fft.*` (2998, thanks leofang!)

Enhancements

- Support sorting complex arrays (2745, thanks leofang!)
- Fix slow import of cupy (2759, thanks cgohlke!)
- update slicing of CSR and CSC matrices for compatibility with SciPy 1.4.0 (2776, thanks grlee77!)
- Add `nogil` to CUB (2787, thanks y1r!)
- Avoid device synchronization in `cupy.allclose` (2799)
- Skip zero valued coefficients in cupyx.scipy.ndimage.convolve (2846, thanks grlee77!)
- Add CUB reduction support to `mean` (2860, thanks grlee77!)
- Sort type map in `_kernel.pyx` (2881)
- Make test helper decorators pdb-friendly (2888)
- Declare device synchronization at `runtime.free()` (2898)
- Ignore error when peer access is already enabled (2901, thanks leofang!)
- Add CUDA 10.2 support (2910, thanks ksangeek!)
- Show warning for cuFFT bug in `irfftn` (2922)
- Use cuTensor for `einsum` (2928)
- Improve error message for wrong number of arguments in elementwise kernels (2932)
- Use asynchronous copy in `cupy.copyto` (2942)
- `MemoryPointer.__repr__` (2981)
- Allow multiple axes in `expand_dims` (2992)
- Check size before accesing empty vectors data ptr (3025)
- Improve compatibility of `random.randint` (2828)
- Support 64 bit extent `randint` (2829)
- Disallow boolean subtraction (2874)
- Remove `dtype` argument from `min`/`max` (2875)
- Fix handling of dtypes in `cupy.mean` (2903, thanks grlee77!)
- Disallow boolean `negative` (2973)
- Rename arg of `isscalar` (2974)
- Fix `linspace(..., num=1, endpoint=False, retstep=True)` (2975)

Performance Improvements

- Avoid `numpy.can_cast` call to improve guess routine (2673)
- Improve caching in `ElementwiseKernel` (2688)
- Remove memory copy to improve memory range checking (2699)
- Avoid `can_cast` calling to reduce overhead (2704)
- Use `getrfBatched` in `linalg.slogdet` (2735)
- reduce overhead in calls to multi-dimensional FFTs. (2746, thanks grlee77!)
- Allow squashing f-contiguous axes for faster reduction (2822)
- Support CUB prefix sum & product (2919, thanks leofang!)
- Improve performance of element-wise `einsum` where no contraction is necessary (2960)

Bug Fixes

- Fix `true_divide` with dtype argument (2076)
- `keepdims` should always preserve all dimensions in CUB-based reductions (2725, thanks grlee77!)
- Update thrust::complex headers with a bug fix (2741, thanks leofang!)
- Separate code and path arguments in `RawModule` (2784)
- Avoid looking up null pointers' attributes (2802, thanks leofang!)
- Fix range used in `cupyx.scipy.ndimage` filter origin check (2805, thanks grlee77!)
- Detect interpreter shutdown for proper `__del__` behavior (2809)
- Fix `split` and `array_split` with indices overrun (2814)
- Fix `split` and `array_split` with unordered indices supplied (2815)
- Fix compilation error causes when thrust is enabled (2838)
- Fix `testing.shaped_random` for shape `()` (2870)
- Fix `argmin`/`argmax` `dtype` argument (2872)
- Fix `imag` for 0-size array (2886)
- Fix logic to check explicit `size` argument in `ElementwiseKernel` (2909)
- Sets the default value for `thread_local.linalg` if not defined (2915)
- Fix `cupy.cuda.cub.device_segmented_reduce()` not being used (2921, thanks leofang!)
- Fix complex type checks in `_correlate_or_convolve` (2923)
- Fix `ParameterInfo` as a cache key (2941)
- Avoid invalid in-place division in CUB-based mean (2943, thanks grlee77!)
- Fix empty vector access (3020)
- Fix `nvcc` command lookup (3028)

Code Fixes
- Use `intptr_t` for cuSOLVER handles (2718)
- Merge reduction implementations (2732)
- Rename and reorder private functions in `reduction.pxi` (2767)
- Avoid using PyThread API (2769)
- Remove unused `cuParamSetTexRef()` (2770, thanks leofang!)
- Separate reduction code from `_kernel.pyx` (2785)
- Refactor reduction code (2801)
- Refactor ops (2817)
- Separate `CArray` and family from `core.pyx` (2831)
- Add missing blank lines (2887)
- Readability fix in `memory.pyx` (2899)
- Clean up `_scalar.pyx` (2917)
- Enhance type and argument manipulation in elementwise and reduction kernels (2940)
- Remove intermediate aliases of `cupy.sort` (2944, thanks rushabh-v!)
- Silence sign comparison warnings (2949, thanks leofang!)
- Fix typos in comments (2978)
- Remove dependency to six (2980)
- A nit-picking code fix (2988)
- Rename `_op` variable in cub.pyx (3002)
- Remove code paths for unsupported Python versions (3004)

Documentation
- Fix docs of options argument in `RawKernel` and `RawModule` (2643)
- Document device synchronization (2798)
- Fix typo in scipy.fft docs (2804, thanks grlee77!)
- Fix the docstring format of `cupy.asarray` (2821, thanks leofang!)
- Update cuTENSOR version in docs (2948)
- Document `get_allocator` function (2953, thanks jakirkham!)
- Add NumPy 1.18 to installation guide (3005)
- Fix typo in note (3012, thanks Schoyen!)
- Add `cupy-cuda102` (3057)

Installation

- Do not let Python 2 users build CuPy v7+ (2766, thanks leofang!)
- Fix an issue that `cuComplex_bridge.h` is not installed (2984)
- Fix ROCm build errors (3071)

Examples
- Fix GMM example for matplotlib 3 (2996)
- Use `cupy.random` in kmeans example (3026)

Tests
- Test cuTENSOR v1.0.0 (2727)
- Use more stable input to test `linalg.matrix_power` (2788)
- Remove Python 3.4 matrix from Travis CI (2794)
- Drop ChainerCV's test in master branch. (2803)
- Refactor array testing decorators (2818)
- Fix decorator usage in tests (2820)
- Add f-contiguous reduction tests (2830)
- Test `ifloordiv` with numpy 1.18 (2852)
- Fix `test_helper.py` for NumPy 1.18 (2883)
- Avoid 0s in the diagonal of `TestSolveTriangular` inputs (2927)
- Add tests for size argument with no input (2931)
- Print installed packages in pytest (2979)
- Make `testing.parameterize` pdb-friendly (3024)
- Require `scipy` in `test_gmm` (3048)

Others

- Allow install without thrust (2730)
- Add Mergify configuration file (2894)
- Make `cupyx.time.repeat` experimental (2897)
- Make `cupyx.allow_synchronize` experimental (2947)
- Some fixes to `.pfnci/script.sh` (3041)
- Set `CUPY_CI` environment variable in Travis CI and AppVeyor (3058)
- Bump version to v8.0.0a1 (3069)

7.8.0.post1

Not secure
Fixed the following errors when building [v7.8.0](https://github.com/cupy/cupy/releases/v7.8.0) source published on PyPI:

* `RuntimeError: Missing file: cupy/cuda/cub.cpp` (when CUB is configured via the environment variable or using CUDA 11.0)
* `RuntimeError: Missing file: cupy/cuda/cutensor.cpp` (when cuTENSOR is configured via the environment variable)

This release is only for packaging fix; there is no code difference since v7.8.0.

7.8.0

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

Highlights

* This release adds support for CUDA 11, NumPy 1.19, and SciPy 1.5.
* We expect this version to be the final release for v7.x series. Please start testing your workloads with the latest v8.x pre-release.

Notes on CUDA 11.0 support

* Update on 2020-09-23: `cupy-cuda110` package is now available on PyPI! ~`cupy-cuda110` wheel packages are currently available only for Windows. We are going to publish Linux wheels once we got [approval](https://github.com/pypa/pypi-support/issues/553) from the PyPI team. (update on 2020-08-21: Meanwhile, Linux wheels can be downloaded from the Assets section below (or `pip install cupy-cuda110 -f https://github.com/cupy/cupy/releases/tag/v7.8.0`). Those wheels will be removed once we published the package on PyPI.)~
* `cupy-cuda110` packages are built with cuDNN support but without bundled cuDNN shared libraries (see 3724 for the discussion). To use cuDNN features, you need to install cuDNN v8.0.x via the system package manager (e.g, `apt install libcudnn8` or `yum install libcudnn8`) or manually install it and set `LD_LIBRARY_PATH` (Linux) or `PATH` (Windows) environment variables.
* When building CuPy from source with CUDA 11.0, g++-6 or later is required. See the [installation guide](https://docs.cupy.dev/en/v7.8.0/install.html#build-fails-with-cuda-11-0-on-ubuntu-16-04-centos-6-or-7) for the detailed instructions.

New Features

- Support CUDA 11.0 (3720)
- Support cuSPARSE generic API (3721)

Enhancements

- Update CUDA 11.0 FP16 header to production release version (11.0.2) (3799)

Performance Improvements

- Improve cuDNN performance when using deterministic mode (3798)

Bug Fixes

- Fix broken message format (3698)
- Support order argument in cupy.ones, cupy.full and cupy.eye (3699, thanks grlee77!)
- Fix sparse matrix related test failures on CUDA11 (3761)
- Allow `MatDescriptor` to be pickle-able (3771)
- Skip FFT input checks for some CUDA >= 10.1 cases (3792)
- Add temporary fixes for cuDNN v8 (3794)
- Fix error message broken (3800)
- Fix cuSparse build failure on Windows (3809)

Documentation

- Fix format of docstrings in creation routines (3767)
- Update requirements (3803)
- Update install doc: `source devtoolset` needed in CentOS (3806)

Tests

- Fix wrong test file name (3754)
- Relax tolerance in `TestArrayElementwiseOp::test_doubly_broadcasted_pow` (3762)
- Skip tests failing due to exception type changes in NumPy 1.19 (3787)
- Avoid testing exception type match on NumPy 1.19 (3797)
- Skip `TestDiaMatrixScipyComparison` failing with `scipy>=1.5.0` (3805)

Others

- Bump version to v7.8.0 (3812)

7.7.0

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

Enhancements

- Support `cusparse<t>csrgeam2` and `cusparse<t>csrgemm2` (3666)

Bug Fixes

- Fix for `cupy.cuda.thrust` (3422)
- Fix sorting order of COO sparse matrix for `cuSPARSE` (3623)
- Fix array creation for `ndarray` list of arrays of different dtypes (3663)

Code Fixes

- Suppress compile warnings (3580)

Documentation

- Update url and email (3635)
- Add a warning for `sum_duplicates` (3636)
- Update Installation Guide (3660)

Tests

- Fix negative value test in `test_helper` (3622)
- Skip `csc` and `erf` tests for `scipy>1.2` (3628)

Others

- Update style checker version for Python 3.7 (3589)
- Add link to Twitter account (3634)
- Bump version to v7.7.0 (3688)
- Use builtins directly (3667, thanks larsoner!)

7.6.0

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

New Features

- Support all dtypes in every sorting function in `cupy.cuda.thrust` (3415, thanks leofang!)

Enhancements

- Get arch per device and support CUDA 9.2+ (3396, thanks leofang!)

Bug Fixes

- Fix `_count_non_nan` datatype for windows (3391)
- Properly reset current stream in case null stream is destroyed (3437)
- Fix `TypeError` in parameterize test catching `CUDADriverError` (3459)
- Assert that all the pointers are in the same device in `concatenate` (3472)

Code Fixes

- Use `find_packages` in `setup.py` (3436)

Documentation

- Fix sphinx version for travis (3417)
- Document `cupy.fromfile` (3447, thanks jakirkham!)
- Fix typos in `cupy.linalg.det docstring` (3458, thanks grlee77!)
- Fix docstring of `tofile()` (3471, thanks leofang!)

Installation

- Remove theano for doctest requirement (3463)


Tests

- Add `__init__.py` to allow importing test packages (3409)

Others

- Bump version to v7.6.0 (3480)

7.5.0

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

Enhancements

- Show versions of CUB and cuTENSOR on `cupy.show_config` (3353)
- Support sorting complex arrays (3336, thanks leofang!)

Bug Fixes

- Fix byte buffer handling to support PyPy (3227)
- Fix `put` when using scalars (3332)
- Remove some `xfail`s in sorting tests (3345)
- Fix `linalg.svd` for 0-sized matrices (3355)
- Assign a workpace to `ormqr` functions in `_solve` (3356)
- Fix windows build issue with CUDA 8.0 (3379)

Documentation

- Remove upper restrictions for numpy and scipy in doc build (3338)
- Add PFN to the README (3352)

Others

- Bump version to v7.5.0 (3377)

Page 13 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.