Replies: 2 comments 1 reply
-
|
@leofang Can you help provide some insight here? Thank you :) |
Beta Was this translation helpful? Give feedback.
-
|
Hello @sijieh23 thanks for reaching out! The missions of CuPy and nvmath-python are different. CuPy is a high-level NumPy-like library that covers a wide spectrum of NumPy/SciPy/JIT compiler functionalities, whereas nvmath-python is meant to be a lower-level engine that covers all of NVIDIA GPU/CPU math libraries, which, in turns of functionalities, translates to a subset of CuPy feature set. As far as performance is concerned, since the math library team knows the best how to use the library APIs to get the maximal performance, yes it is expected that nvmath-python routines should be more performant given our expert (or, "insider") knowledge. However, it is by no means a competition against existing libraries. On the contrary, we are keen to see both used in conjunction. Eventually, nvmath-python will become a dependency of CuPy so that CuPy and all of Python GPU libraries can focus on implementing new algorithms and optimizing performance, and not worry about exposing math primitives to Python (which is not trivial). As you've also noticed, nvmath-python tries to support as many Python array libraries as possible, including both CPU and GPU arrays, and it is therefore not an array library on its own (i.e. there's no |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Both
cupyandnvmathprovide the same (on the face of it) mathematical operations, such ascupyx.scipy.fftandnvmath.fft. What are the differences between these operations? Iscupyversion faster thannvmath, or vice versa? Ornvmathis more flexible and can work with different types of arrays (numpy.ndarrayandcupy.ndarray), whilecupy's operations only work withcupy.ndarry?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions