New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wright_bessel function to special #8324
base: main
Are you sure you want to change the base?
Conversation
/test mini |
We have already had C++ 17 support in v14 on development, so please do not worry about having C++14 and C++17 features. #8203 cupy/install/cupy_builder/_compiler.py Lines 205 to 206 in ba8def1
|
I'll investigate the test failures.
That's good to hear, but we're still noticing some C++14 and C++17 features not working.
We've also seen #if _LIBCUDACXX_STD_VER > 11
template <class _Tp> using decay_t = typename decay<_Tp>::type;
#endif Or is the |
@steppi could you try to edit this file locally? What happens is that there's no standard library support in NVRTC, so we've been gradually shifting toward relying on CCCL (in particular |
Thanks @leofang
We're doing something very similar, but instead of importing we're wrapping cupy/cupy/_core/include/cupy/special/config.h Lines 69 to 71 in ce047e3
So it's still not clear why using generator_result_t = typename std::decay<typename std::invoke_result<Generator>::type>::type; This doesn't impact this PR, |
I can no longer see this line using generator_result_t = std::decay_t<std::invoke_result_t<Generator>>; in #include <cuda/std/type_traits>
namespace std {
using cuda::std::decay_t;
}; before using |
Thanks @leofang. I'm removing the use of
Just want to comment on this too. Right now we have a header config.h which functions like So far everything seems to be working, except for these helper templates/types like Lines 179 to 183 in ba8def1
|
I suppose it's yes. |
/test mini |
Oh good, all tests passed. It looks like it may have been the missing
I see. I guess that could be the reason it was some features from Thanks @takagi, I'll merge main now. |
This PR adds the wright_bessel function to special.
I've also made updates to
cupy/_core/include/cupy/special/
not strictly necessary for this PR because it's easier just to copy over the working code from SciPy rather than trying to make the minimal set of changes needed to get things working over here.I also have a quick question. I saw at, https://docs.cupy.dev/en/stable/upgrade.html, that the minimum supported C++ version is C++11 but there's a plan in the near future to upgrade to C++17. Do you have a rough timeline for the upgrade, or is there anything @izaid and I could do to help accelerate the process? We have things we've worked on in SciPy which we won't be able to bring over to CuPy until C++14 and C++17 features can be used here.