cupy / cupy

NumPy & SciPy for GPU
https://cupy.dev
MIT License
8.1k stars 807 forks source link

Documentation Issues #4902

Open kmaehashi opened 3 years ago

kmaehashi commented 3 years ago

Topics to be covered (User's Guide)

Topics to be covered (API Reference)

Broken docstring formats (easy to fix, contribution welcome!)

Outdated docstrings (easy to fix, contribution welcome!)

leofang commented 3 years ago

It'd be nice to also document cupyx.time.repeat and mention it in, say, the tutorial, for how to perform a fair timing.

leofang commented 3 years ago

related: #3692

leofang commented 3 years ago

I don't remember where we discussed this (sorry!), but we should also document common ROCm/HIP pitfalls.

leofang commented 3 years ago

@kmaehashi I'd like to have a new page added to "Tutorial", placed between "Basics of CuPy" and "User-Defined Kernels". I am thinking to call it "Advanced Tricks of Using CuPy", in which we cover (a) a number of topics that advanced users would appreciate and (b) a number of items in which we invested efforts and would like users to try and give us feedbacks. My current list is:

I'd also like to add a few more examples for RawModule (in "User-Defined Kernels"), mainly to show what can be done with the new options:

I am hoping to get all these done in time before the code-freeze for v9.0.0, but we'll see....

kmaehashi commented 3 years ago

Thanks Leo! These docs would definitely help users 😄 I feel however these topics are more than "Tutorial" things. (that's why I reverted this: #4857) I'm thinking it's better to rename "Tutorial" to "User Guide" following NumPy's docs: https://numpy.org/devdocs/user/index.html Then we can move topics like Interoperability, Memory Management, API Compatibility Policy, Difference between CuPy and NumPy, License, etc. to there, instead of wildcard "API Reference" section.

Some other topics I would cover is #1566.

leofang commented 3 years ago

I'm thinking it's better to rename "Tutorial" to "User Guide" following NumPy's docs: https://numpy.org/devdocs/user/index.html Then we can move topics like Interoperability, Memory Management, API Compatibility Policy, Difference between CuPy and NumPy, License, etc. to there, instead of wildcard "API Reference" section.

Sounds good, @kmaehashi! If you send a restructuring PR for this I'll be able to build upon it. I can also send it if you like.

leofang commented 3 years ago

I can also send it if you like.

Ongoing in #5093. I don't think I have time to cover everything I wanted to add before the v9 code frozen, but it's a start...