Skip to content
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

fix: add is_c_contiguous method to Cupy #2221

Merged
merged 3 commits into from
Feb 7, 2023
Merged

Conversation

ianna
Copy link
Collaborator

@ianna ianna commented Feb 7, 2023

  • implement an abstract is_c_contiguous method for Cupy class
  • update cuda tests

@agoose77
Copy link
Collaborator

agoose77 commented Feb 7, 2023

Huh, this did exist in my local branch at some point 😦 Thanks for catching it!

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Merging #2221 (d589582) into main (2dff3f2) will decrease coverage by 0.01%.
The diff coverage is 66.66%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/_nplikes/cupy.py 41.09% <50.00%> (+0.25%) ⬆️
src/awkward/contents/listarray.py 89.02% <100.00%> (ø)

@ianna ianna requested a review from agoose77 February 7, 2023 16:51
@ianna ianna temporarily deployed to docs-preview February 7, 2023 17:02 — with GitHub Actions Inactive
@@ -1395,15 +1395,15 @@ def _recursively_apply(
and self._backend.nplike.known_data
and self._starts.length != 0
):
startsmin = self._backend.index_nplike.min(self._starts.data).item()
startsmin = self._backend.index_nplike.min(self._starts.data)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume we don't need .item() here because of the subsequent self._starts.data - startsmin, which CuPy understands as a 1D array and a 0D array being subtracted from one another

@ianna ianna temporarily deployed to docs-preview February 7, 2023 17:28 — with GitHub Actions Inactive
@agoose77 agoose77 enabled auto-merge (squash) February 7, 2023 17:34
@agoose77 agoose77 merged commit d0b230e into main Feb 7, 2023
@agoose77 agoose77 deleted the ianna/cuda-test-up-to-date branch February 7, 2023 17:46
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.

2 participants