pypi cupy 9.0.0b3
v9.0.0b3

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

This is the release note of v9.0.0b3. See here for the complete list of solved issues and merged PRs.

We are running a Gitter chat for general discussions and quick questions. Feel free to join the channel to talk with developers and users!

Highlights

NumPy 1.20 and SciPy 1.6 support

In addition, we have ensured compatibility with the newly released NumPy 1.20 and SciPy 1.6.

cupy.vectorize Development

The development of the CUDA JIT for CuPy is progressing steadily. We currently support regular if/while/for statements and constant declarations. Currently the JIT is only used in cupy.vectorize with an almost complete support. Its uses will be extended in upcoming releases.

ROCm (HIP) 4.0 support

Starting in v9.0.0b3, we are providing cupy-rocm-4-0 binary packages (wheels) for ROCm 4.0. Check the installation guide for the details.

Support for ROCm/HIP is being addressed by fixing bugs and providing a stable CI environment in order to ensure a smooth development.

Changes without compatibility

Always run cythonize on sdist installation (#4619)

When installing cupy from the regular sdist wheel, Cython files are provided instead of .cpp ones so an environment capable of running the latest Cython (0.29.22) is required.

Bump CUDA version for Docker images (#4709, #4738)

The current base Docker images have been updated from CUDA 10.2 to CUDA 11.2.

Changes

New Features

  • Support for Per Thread Default Stream (PTDS) (#4322)
  • Add splu, spilu and factorized to cupyx.scipy.sparse.linalg (#4392)
  • Support the built-in Stream Ordered Memory Allocator (#4537)
  • Add cuTENSOR to library download tool (#4560)
  • Support batched SVD (#4628)
  • Support if-statement in CuPy JIT (#4646)
  • Support while/for-statement in CuPy JIT (#4677)

Enhancements

  • Add SparseEfficiencyWarning and warn inefficient comparison (#4213)
  • Support ufunc call in CuPy JIT (#4347)
  • Use NVRTC for grid synchronization in cupy.fuse (#4492)
  • Wrap the new nvrtcGetCUBIN API (#4558)
  • Support explicit typecast in CuPy JIT (#4595)
  • Bump fastrlock requirement (#4632)
  • Bump cuDNN to v8.1.0 (#4636)
  • Fix Windows CI test script to avoid caching kernel when in pull-request test (#4650)
  • Update CUDA Array Interface to v3 - Part 2 (#4659)
  • Support assignment of compile-time constants in CuPy JIT (#4672)
  • Support cuTENSOR download tool on Windows (#4678)
  • Add cudnn and cutensor for CUDA 11.2 in install_library (#4680)
  • Fix tests for cuDNN 8.1 (#4689)
  • Use MSVC 14.0 with CUDA 11.2 (#4698)
  • Support CUDA 11.2 (#4702)
  • Slight code improvements for the CUB reduction kernel (#4504)
  • ROCm: Fix device attributes; Record HIP_VERSION; Add more device properties; etc (#4556)
  • Fix/skip some tests for HIP (#4588)
  • Skip failing tests for cupy.cublas under HIP (#4652)
  • Xfail test for cupy._indexing.generate under HIP (#4654)
  • Skip TestPoly1dMathArithmetic under HIP/ROCm (#4656)
  • Xfail tests for eigenvalue under HIP/ROCm (#4661)
  • Xfail tests for convolve under HIP/ROCm (#4668)
  • Fix definition order in preamble (#4669)
  • Fix invalid command line generated when rpath is empty (#4717)
  • Update spec of linspace to NumPy 1.20 (#4604)
  • Stop using deprecated type aliases (#4605)
  • Fix poly1d return types for NumPy 1.20 (#4611)
  • Deprecate passing shape=None to mean shape=() (#4616)
  • Improve floating point accuracy in percentile (#4617)

Bug Fixes

  • Fix cuSPARSE module build failure with CUDA 10.1 on Windows (#4419)
  • Fix warning message on cuDNN version (#4487)
  • Fix Jitify version detection on CUDA 11.0+ (#4514)
  • CUDA 11.2: Fix empty NVRTC program name (#4538)
  • Fix return type of has_sorted_indices of sparse array (#4564)
  • Fix device property default name (#4594)
  • Make normal and lognormal support array args (#4615)
  • Always run cythonize on sdist installation (#4619)
  • Make uniform-based random distributions support array args (#4638)
  • Fix typecast from complex to bool in JIT (#4648)
  • ROCm: disable PTDS (#4651)
  • Fix files not closed (#4667)
  • Revert _get_arch (#4682)
  • Fix random errors in batched SVD (#4690)
  • Fix thrust compilation in MSVC 14 for CUDA 11.2 (#4713)
  • Missing constexpr in cupy_thrust.cu (#4730)
  • Disable some constexpr only for windows (#4735)
  • Add missing attrs (#4739)

Code Fixes

  • Use cupy.core._dtype.to_cuda_dtype whenever possible (#3853)
  • Remove use of numpy.bool (#4586)
  • Avoid test discovery failure in NumPy 1.20 (#4598)
  • Stop using deprecated numpy.complex (#4620)
  • Use CodeBlock to generate human-readable code in JIT (#4633)

Documentation

  • Update doctest of cupyx.scipy.linalg.lu_factor (#4561)
  • Update installation guide for cuTENSOR on Conda-Forge (#4614)
  • Update documentation requirements (#4630)
  • Update document for cuDNN 8.1 (#4643)
  • Support building docs against pip installed cupy (#4685)
  • Add CUDA 11.2 to docs (#4705)
  • Add NCCL 2.8 to supported version (#4710)
  • Update Python / NumPy / SciPy requirements (#4711)
  • Remove unneeded environment variable from ROCm install guide (#4720)
  • Document that only x86_64 wheels are provided (#4721)
  • Fix dead link to issue (#4736)
  • Remove cupy-cuda112 support from documentation (#4761)

Installation

  • Update install requirements (#4631)
  • Remove maximum cuDNN version check (#4683)
  • Bump Cython version requirement for Python 3.9 (#4706)
  • Bump CUDA version for Docker images (#4709)
  • Fix Docker image to use CUDA 11.1 (#4763)
  • Remove pyproject.toml (#4734)
  • Fix Cython setup requirement out of sync (#4741)
  • Add Docker image for ROCm and documentation (#4737)
  • Fix Docker image to use CUDA 11.1 (#4763)

Tests

  • Add FlexCI for Windows (#4362)
  • Test numpy.VisibleDeprecationWarning (#4498)
  • Fix test import failure in ROCm (#4585)
  • Publish results even if build failed in Windows CI (#4714)
  • Skip callback tests for this release (#4745)

Others

  • Bump version to v9.0.0b3 (#4751)

Contributors

The CuPy Team would like to thank all those who contributed to this release!
@anaruse @leofang @pentschev @wphicks

Don't miss a new cupy release

NewReleases is sending notifications on new releases.