KhronosGroup / OpenCL-SDK

OpenCL SDK
Apache License 2.0
569 stars 120 forks source link

New Feature: Automatic porting of univariate special mathematical functions to the device. #63

Open rdguerrerom opened 1 year ago

rdguerrerom commented 1 year ago

I am developing a methodology that will allow automatic code generation of approximant algorithms for computing arbitrary univariate special mathematical functions on the device with high speed at the cost of a controlled loss in accuracy. 

I wonder if this feature would be useful in a future release of OpenCL?

It could be used to port functions one at a time or to create a library of special mathematical functions. 

rdguerrerom commented 1 year ago

I am developing a methodology that will allow automatic code generation of approximant algorithms for computing arbitrary univariate special mathematical functions on the device with high speed at the cost of a controlled loss in accuracy. 

I wonder if this feature would be useful in a future release of OpenCL?

It could be used to port functions one at a time or to create a library of special mathematical functions.

@MathiasMagnus Can you reply to this, please?

MathiasMagnus commented 1 year ago

This sounds extremely useful indeed. Do you have some samples or a working branch somewhere one could look into.

Are you asking in context of it being part of the utility libraries?

I think any computing language is better with capable numeric features at the programmers fingertips.

rdguerrerom commented 1 year ago

Thanks for answering @MathiasMagnus!

I was waiting for the opinion of one of you to create a branch and start moving my implementation there. I am finishing the associated paper as well.

rdguerrerom commented 1 year ago

@MathiasMagnus Do me a favor, can you help me to get more opinions about this proposal, please?