Skip to content

Conversation

@tylerjereddy
Copy link
Contributor

* add `full_like` creation function and turn the matching
array API standard test on in the CI
* `isnan()` already existed, but was not passing the API
standard test, so it has been adjusted to pass the test,
which is now enforced in CI
* adjust the `equal()` ufunc to pass its array
API standard test, and turn this test on in the CI

* the changes include improved broadcasting and
(type) casting support

* because equality testing is so common/rampant, this
required a few more shims than I'd like...
@NaderAlAwar NaderAlAwar merged commit 156de3a into kokkos:develop Feb 22, 2023
@tylerjereddy tylerjereddy deleted the treddy_full_like branch February 22, 2023 17:02
@tylerjereddy
Copy link
Contributor Author

Ah, gh-152 and gh-141 should have been reviewed/merged first, as noted above, because now when I modify those ufuncs the changes aren't guarded from regression. I'll try to clean that up in my next PR, but this could start getting complicated with features merged without their tests.

tylerjereddy added a commit to tylerjereddy/pykokkos that referenced this pull request Mar 1, 2023
* bring `positive()` ufunc up to API standard and turn its test
on in the CI; since `positive()` essentially returns a copy view,
this can be done fairly simply it seems, though I do wonder if we
need to do it differently on GPU (conversely, view assignment in
Python should probably just happen naturally depending on default
execution space, though I kind of doubt it at the moment)

* also required shims to `__eq__` for `Subview`, basically copying
the implementation used for regular `View`

* an adjustment to `equal()` ufunc was needed to correctly handle
two size-0 views it seems

* I had to add `test_isnan` and `test_equal` to the CI API standard
testing as well because of
kokkos#174 (comment)
(I'm modifying those ufuncs here and need to make sure their tests still
pass...)

* I needed to make some weird change to `_typematch_views` -- if you
find a way to avoid that, by all means push it in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants