[GPU] Allow the selection of different Streams to easy StarPU Integration
Problem to solve with the new feature
Implementations of ionic models in GPUs must allow the selection of different Streams. Until now, we link CUDA ionic models with a MLIR library that creates its own Streams. With the StarPU integration, we must allow StarPU to create its own streams and handle them accordingly.
Intended users
Any user who wants to have StarPU support.
Further details
(Include use cases, benefits, and/or goals.)
Proposal
Add our own library that is based on MLIR (CUDA or ROCM) API wrapper library (e.g. https://mlir.llvm.org/doxygen/CudaRuntimeWrappers_8cpp_source.html), so that we allow developers to change the Stream used by the GPU. This is applicable for both CUDA and ROCM, and it is mainly helpful for when StarPU is integrated in openCARP.
Testing
In the first moment, no testing is necessary since the code will resemble the one from MLIR.