Comments (8)
Thank you for the issue. We'll start working on this in the coming weeks.
from onemkl.
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.
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.
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.
@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.
Hi @hjabird, the oneapi-src/oneAPI-spec#509 LGTM.
from onemkl.
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.
Happy new year!: both the spec and implementation are now merged!
from onemkl.
Related Issues (20)
- Layout mismatch HOT 3
- Don't use `sycl::detail` namespace HOT 2
- combine omat and imat ?
- Some tests hang/slow down significantly when running with portBLAS HOT 1
- Native context reinterpret casted as `pi_context`
- CUDA backend is broken with hipSYCL
- Error during cmake --build . HOT 4
- #include <oneapi/mkl.hpp>
- create device RNG engine to host. HOT 5
- Illegal instruction error with oneMKL mt2203 instruction HOT 5
- [CMake][DFT] target_link_library(myTarget PRIVATE MKL::onemkl_dft_XXX) does not add includes
- [CMake] New users can struggle with the CBLAS testing dependency when building oneMKL - what to do? HOT 1
- [CMake][cuBLAS]Unable to build cublas backend with a default CMake command HOT 3
- Missing gemm_batch data types HOT 3
- const scaling paramters not supported for gemm_batch HOT 1
- oneMKL's CMake Does Not Detect SYCL Support when Compiled with `intel/llvm` HOT 1
- Could NOT find CBLAS (missing: CBLAS_file) HOT 2
- -DENABLE_CUFFT_BACKEND missing from documentation HOT 1
- [Build][Docs] Improve build documentation HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onemkl.