This is the release note of v4.2.0. See here for the complete list of solved issues and merged PRs.
Highlights
- Allocation strategy of pinned memory has been improved to reduce host memory usage.
- Fixed bugs in multiple functions with arrays with complex dtypes.
Enhancements
- Use cuDNN v7 APIs to get conv algos for TensorCore (#1134)
- Fix
cupy.diagfailures for array-likes objects other than CuPy arrays (#1235, thanks @hyabe!) - Remove memory copy in the
cupy.diagfunction (#1337) - Support weak reference to CuPy array (#1359)
- Fix to preserve dtype of an input array in
cupy.linalg.norm(#1376) - Improve performance of ndarray initialization (#1377)
- Round-up pooled memory allocation size with clp2 (#1386)
- Reduce GPU memory usage in (de)convotion (#1387)
- Support
'f'and'c'in theorderoption of ndarray (#1390)
Bug Fixes
- Fix
cupy.matmulwhen inputs contain zero-sized array(s) (#1238) - Fix default dtype of
cupy.full(#1257) - Fix dtype option of
cupy.sumandcupy.prod(#1259) sort,lexsort, andargsortcatch C++ exceptions from Thrust (#1290)- Fix
viewof zero-dim ndarray (#1291) - Fix
realandimagof zero-dim ndarray (#1292) - Support
cupy.expm1,cupy.log1p,cupy.log2for complex type (#1293) - Fix unary functions in
cupy.math.miscto support complex types (#1297) - Fix binary functions in
cupy.math.miscto support complex types (#1298) - Fix
OutOfMemoryErrorraised even when there are sufficient large freeable chunks (#1301, thanks @hyabe!) - Fix
astypefor complex dtypes (#1302) - Fix
real,imagof non-contiguous complex ndarray (#1306) - Rounding functions support complex ndarrays (#1308)
Documentation
- Update README to encourage use of wheels (#1296)
- Add NumPy 1.14 to supported versions (#1305)
- Fix typo in sparse matrix docs (#1310)
- Force displaying known methods which are mis-recognized as attributes by Sphinx (#1314)
- Expand reference on differences in zero-dimensional arrays (#1315)
- Split LICENSE file (#1326)
- Fix typo in profiler docs (#1328)
- Reorganize license files (#1335)
- Fix typos in
cupy.zerosandcupy.zeros_like(#1360) - Update requirements for v5.0.0b2 / v4.2 release (#1373)
Installation
- Remove deprecated
imp.load_sourcein setup.py (#1332, thanks @vilyaair!) - Add a license file to wheel (#1348)