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

support vector api like jdk21 #163

Open
shouriken opened this issue May 11, 2023 · 1 comment
Open

support vector api like jdk21 #163

shouriken opened this issue May 11, 2023 · 1 comment
Labels
enhancement New feature or request jvm An issue/PR related to JVM perf An issue/PR related to performance

Comments

@shouriken
Copy link

shouriken commented May 11, 2023

I'd like to have a sqrt, cbrt , ceil, floor, abs function and so on unary operator for NDArray.
ceil function Behaviors:

array [1.2, 2.3] ceil return a new array [1.0, 2.0] for double or [1, 2] for int

I know, this can be resolved by map; but it can be more efficient if use native function with openblas. These functions more like jdk21 vector api. Do you have any plan for this?
Thanks.

@devcrocod
Copy link
Collaborator

I have been thinking about it for a long time, even since the days when Vector API was in the incubator. And I really want to do it. Especially in the context of matrix multiplication, it would provide a significant performance boost. Unfortunately, due to the support for two different JDKs, it is necessary to maintain two codebases, which complicates the already complex artifact dependency.

I will leave this issue, but its priority is currently lower than that of other tasks.

@devcrocod devcrocod added feature perf An issue/PR related to performance jvm An issue/PR related to JVM labels May 13, 2023
@devcrocod devcrocod added enhancement New feature or request and removed feature labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jvm An issue/PR related to JVM perf An issue/PR related to performance
Projects
None yet
Development

No branches or pull requests

2 participants