simulink model -> processing on GPU (CUDA)

Hi,I have my model (Simulink), where use MATLAB-Function bloks, I want transfer calculations my model on GPU (CUDA), Can I use gpuArray function in MATLAB-Function blok in Simulink?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 8월 13일

3 개 추천

It doesn't look like any of the GPU functions are in the list of functions supported for code-generation, so you cannot directly use them in the (Embedded) MATLAB Function block. But you should be able to perform these operations by writing a separate MATLAB function that performs the GPU operations, and call your function using the coder.extrinsic directive. If you are using an Interpreted MATLAB Function block, you don't have to worry about code-generation support, so these functions should work.

댓글 수: 1

Running on the GPU with interpreted mallab function or by using coder.extrinsic.. Does this make the Simulation faster?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기

질문:

2012년 8월 13일

댓글:

2018년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by