Skip to content

More docstring edits #1636

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

Merged
merged 27 commits into from
Apr 11, 2024
Merged

More docstring edits #1636

merged 27 commits into from
Apr 11, 2024

Conversation

oleksandr-pavlyk
Copy link
Contributor

Docstring edits for dpctl.memory and dpctl.utils namespaces.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

Copy link

github-actions bot commented Apr 5, 2024

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@coveralls
Copy link
Collaborator

coveralls commented Apr 5, 2024

Coverage Status

coverage: 88.049% (-0.03%) from 88.076%
when pulling e3bc17f on more-docstring-edits
into ca59c3d on master.

Copy link

github-actions bot commented Apr 5, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_202 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

github-actions bot commented Apr 5, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_203 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Updated docstrings for __dlpack__, __dlpack_device__,
real, imag properties, and for shape, strides, _pointer,
_element_offset, _byte_bounds.
Copy link

github-actions bot commented Apr 5, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_203 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

github-actions bot commented Apr 5, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_204 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

There is no longer a class ``sycl::cpu_selector``. Instead there
is a callable functor ``sycl::cpu_selector_v`` which
``sycl::device`` constructor takes as an argument.
Copy link

github-actions bot commented Apr 7, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_206 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Made them uniform, specify return type, fix references
to SYCL 2020 spec document.
Copy link

github-actions bot commented Apr 7, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_206 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Also added examples to some aspect properties.
Added examples for few properties that return enums.
Added docstrings with return type for properties.
Added few examples.
Added examples and return types for some properties.
Added docstrings for submit, submit_async, _submit_keep_args_alive,
submit_barrier methods.
Also used double quotes for proper rendering of variables
in docstrings of reduction functions.
…thod

Also added docstring for __init__ special method.
Copy link

github-actions bot commented Apr 9, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_215 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

github-actions bot commented Apr 9, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_219 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

github-actions bot commented Apr 9, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_220 ran successfully.
Passed: 870
Failed: 8
Skipped: 92

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_222 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_224 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_225 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Indentation fixed for item list, usm_array.device -> usm_ndarray.device
Used double back-quotes instead of single for proper rendering in HTML
Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_226 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_228 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

Copy link
Collaborator

@ndgrigorian ndgrigorian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @oleksandr-pavlyk, this is a huge number of changes to the docstrings.

@oleksandr-pavlyk
Copy link
Contributor Author

Thank you @ndgrigorian and @antonwolfy for the review. Merging this batch, and will open a new PR should more changes be needed.

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_229 ran successfully.
Passed: 869
Failed: 9
Skipped: 92

@oleksandr-pavlyk oleksandr-pavlyk merged commit 10b831c into master Apr 11, 2024
@oleksandr-pavlyk oleksandr-pavlyk deleted the more-docstring-edits branch April 11, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants