GithubHelp home page GithubHelp logo

Comments (8)

Rbiessy avatar Rbiessy commented on June 14, 2024

Thank you for the issue. We'll start working on this in the coming weeks.

from onemkl.

hjabird avatar hjabird commented on June 14, 2024

I'm looking at this at the moment. A challenging aspect is providing pre-commit estimates of workspace size. This is because rocFFT (and perhaps other future backends) do not support workspace estimates, only exact workspace requirements after committing.

  • What is the usecase for pre-commit workspace estimates?
    • Do we need pre-commit estimates at all?
  • Do these estimates need to be conservative?

Thanks!

from onemkl.

zhiweij1 avatar zhiweij1 commented on June 14, 2024

Hi @hjabird , I noticed that https://github.com/ROCmSoftwarePlatform/hipFFT/blob/ef5eb0d5facf9d997b00bb0b94c8e37791b72ce4/library/src/amd_detail/hipfft.cpp#L1150 uses hipfftGetSize1d to implement hipfftEstimate1d which is the migrated result of cufftEstimate1d with HIPFIY.

It just queries the actual workspace size after creating a plan and destroys the plan before return.

from onemkl.

hjabird avatar hjabird commented on June 14, 2024

Hi @zhiweij1, that is an option, but creating a plan just to query workspace size is an expensive thing to do. Especially if you then create that exact same plan once again on commit!

At the moment I don't understand the scenario in which you use an estimate instead of committing a descriptor and getting the exact workspace requirement from that. In such a scenario, does the estimate need to be conservative (if not, we could introduce some kind of heuristic for rocFFT's workspace requirements, or just return 0)?

The specification may be a better place to continue this discussion. I've created a spec issue oneapi-src/oneAPI-spec#508 and also a draft PR in the spec oneapi-src/oneAPI-spec#509

from onemkl.

hjabird avatar hjabird commented on June 14, 2024

@zhiweij1 I've had some feedback on the above linked PR. It would be great to have your feedback too, especially since it doesn't include the estimation feature right now. It doesn't included this feature since I'm not sure how it would be used (and so what to specify), as stated in my above comment.

from onemkl.

zhiweij1 avatar zhiweij1 commented on June 14, 2024

Hi @hjabird, the oneapi-src/oneAPI-spec#509 LGTM.

from onemkl.

hjabird avatar hjabird commented on June 14, 2024

As a timeline on this:

  • I believe above spec PR needs to be discussed by the Math SIG before it can be merged. I hope this can take place in early December, but obviously it is subject to availablity, scheduling, holidays in the US, etc.
  • I've already started work on adding support for the above spec to oneMKL, but it won't make sense to until the spec is merged.

So long as no problems or delays are encountered, hopefully external workspaces will be added in early December. I'll try to keep this issue updated.

from onemkl.

hjabird avatar hjabird commented on June 14, 2024

Happy new year!: both the spec and implementation are now merged!

from onemkl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.