pypi cupy 2.0.0
v2.0.0

latest releases: 14.2.0, 14.1.1, 14.1.0...
8 years ago

This is a major release of CuPy v2.0.0. All of the updates since the previous major version (v1.0.0) can be found in the release notes below:

Important Updates

Supports the latest versions of the following libraries

In v2.0.0a1

  • We started using NVRTC instead of NVCC for kernel compilation. This change enables CuPy to run in an environment where CUDA is installed but NVCC is not available. Note that some features depending on Thrust (e.g. sorting functions) cannot be used if NVCC is not available at the installation.
  • Many functions for sorting, linear algebra, and others are added.

In v2.0.0b1

  • Sparse matrix. cupy.sparse is a module that implements scipy.sparse API using CUDA and cuSPARSE. We now have basic features for using sparse matrices on GPU.
  • New memory allocator (#168). The memory pool implementation is greatly updated. It is based on best-fit allocation with coalescing. When there are a large number of allocations with different sizes (e.g. NLP applications), the memory usage is improved and the number of re-allocations is reduced (which also reduces the running time).

In v2.0.0rc1

  • Complex numbers (#232)
  • Many New functions.

Bug fixes

  • Fix cupy.nonzero for corner cases (#504)
  • Fix simple reduction for corner cases (#505)
  • Fix multithread problem in PooledMemory (#507)
  • Resolve dealloc problem and multithread problem in PinnedMemory (#510)
  • Avoid using global state in RandomState.choice (#560)
  • Fix broadcast for corner cases (#577)
  • Fix csrmm2 to support transa (#601)
  • Fix csrmv (#607)

Improvements

  • Fix get_array_module to be aware of spmatrix (#586)
  • Show NVRTC error code (#538)
  • Optimize RandomState.interval (#585)
  • Fix random.normal double memory consumption (#592)
  • Check kernel name validity (#596)

Installation

  • Avoid Cython 0.27.0 (#579)
  • Import memory_hooks (#506)
  • Support NVCC environment variable (#537)

Documentation

  • Fix warnings (#535)
  • Add documentation of cupy.all and cupy.any function (#514)
  • Fix documentation of fusion functions (#517)
  • Treat sphinx warnings as errors (#519)
  • Correct URLs in documentation (#561, thanks @aonotas!)
  • Fix Cython requirement for documentation build (#566)

Tests

  • Fix doctest warnings (#500)
  • Use mock.patch instead of directly replacing function with Mock (#610)
  • Remove print() in tests (#509)
  • Travis fails with Cython 0.27. Use Cython 0.26.1 for a while (#539)
  • Add corner test cases for indexing (#576)
  • Add unit tests for csrgemm (#602)

Others

  • Avoid duplicate loop index (#520)

Don't miss a new cupy release

NewReleases is sending notifications on new releases.