GPU coder : When I use GPU coder to any function, Do I need to type coder.gpu.kernelfun in all subfunctions in the main function?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to use GPU coder on a function fcn_PRM_DH5.
in fcn_PRM_DH5, there is another function; colChk_new.
In this case, Do I need to type coder.gpu.kernelfun in colChk_new?
댓글 수: 0
채택된 답변
Pravin Jagtap
2019년 12월 27일
Hello Lim,
I think, Dynamic kernel invocation i.e calling kernels from within kernels is not supported by GPU coder yet. Therefore my guess is even if you write the kernel fun pragma in 'colChk_new' GPU threads will ignore that pragma. But, if the computations involved in the for loop of 'fcn_PRM_DH5' then the function call of 'colChk_new' will be parallel.
~Pravin
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!