Effacer les filtres
Effacer les filtres

Dynamic input to the gpu cuda kernel generated from gpu coder application

1 vue (au cours des 30 derniers jours)
Gayathri Sankaran
Gayathri Sankaran le 24 Août 2022
Hi all
Is it possible to change the parameter in the gpu cuda kernal generated from the gpu coder matlab application during execution?
I need to chaange the input parameter for the calcualtion during the run time with the same code.
If yes, can you elloborate on the steps to give dynamic input control to the kernel function.
is command line argument for controlling some parameters in ELF is possible?
Thanks in advance
  4 commentaires
Ram Kokku
Ram Kokku le 5 Sep 2022
Hi Gayathri,
Apologies for the delayed response. Thank you for additional details.
GPU Coder has sevaral examples demostrating how to use various features of the the tool. Here is the link https://www.mathworks.com/help/gpucoder/getting-started-with-gpu-coder.html
It looks like you are looking for ways to pass input to your function. There is nothing specific needs to be done for GPU Coder. One can achieve this by defining a MATLAB function and passing necessary input as arguments, and then generating code for the function. Please take a look at this example for more details.
Gayathri Sankaran
Gayathri Sankaran le 7 Sep 2022
hi Ram
Thanks for the response.
So during code generation step it is possible to give input argument. In executable file, it is not possible to change its input parameters.
My requirement is to change the input parameter durign the run time.
This is my understanding from the document i referred for the gpu coder.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur GPU Computing dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by