-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support of fp32 for sycl implementations #308
Add support of fp32 for sycl implementations #308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are awesome changes! Thank you!
Could you please run pre-commit to your commit and push it again?
UPD: should we add sycl float32 run in workflow?
7e35d0b
to
d612904
Compare
@ZzEeKkAa |
Let's run fp32 only for UPD: it is more likely issue with CI system, not dpnp. Please see later comment |
if (typenum == UAR_FLOAT) { | ||
black_scholes_impl<float>(Queue, nopt, price.get_data<float>(), | ||
strike.get_data<float>(), t.get_data<float>(), | ||
rate, volatility, call.get_data<float>(), | ||
put.get_data<float>()); | ||
} | ||
else if (typenum == UAR_DOUBLE) { | ||
black_scholes_impl<double>( | ||
Queue, nopt, price.get_data<double>(), strike.get_data<double>(), | ||
t.get_data<double>(), rate, volatility, call.get_data<double>(), | ||
put.get_data<double>()); | ||
} | ||
else { | ||
throw std::runtime_error( | ||
"Expected a double or single precision FP array."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be possible to directly bind functions with template parameters. This might be a neater solution. @oleksandr-pavlyk your thoughts?
58c67bc
to
5788a12
Compare
b0fb043
to
75c62db
Compare
@AlexanderKalistratov could you please clean commit history? e.g: you are modifying |
75c62db
to
f648be9
Compare
90df638
to
b6d1bac
Compare
Rambo numba_mlir fix: numba/numba-mlir#331 |
Add support of fp32 for sycl implementations except pairwise distance.
pairwise distance added here #306