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

ENH: multiply() to API std #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tylerjereddy
Copy link
Contributor

  • bring the multiply() ufunc up to the array API standard and turn the matching test on in the CI

  • similar to other recent binary ufunc PRs, with the usual drawbacks like broadcasting copies

* bring the `multiply()` ufunc up to the array API standard
and turn the matching test on in the CI

* similar to other recent binary ufunc PRs, with the usual drawbacks
like broadcasting copies
@@ -1,6 +1,355 @@
import pykokkos as pk


@pk.workunit
def multiply_impl_1d_double(tid: int, viewA: pk.View1D[pk.double], viewB: pk.View1D[pk.double], out: pk.View1D[pk.double], ):
out[tid] = viewA[tid] * viewB[tid % viewB.extent(0)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the modulo operator is leftover from before here--it seems harmless in local testing but should probably be removed (though it may have some merit depending on how broadcasting evolves I suppose..)

@NaderAlAwar NaderAlAwar changed the base branch from develop to main May 24, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant