If gpu computing or convert to mex file help to accelerate the code
조회 수: 2 (최근 30일)
이전 댓글 표시
Attached is the profiling results of my code, where the most time-consuming lines are those from build-in functions(e.g., find, max, min,...). As my code cannot be vectorized or run in parallel, I am wondering how to speed up the code? If gpu computing or convert to mex file help for this case?
Thank you very much.
댓글 수: 0
채택된 답변
Joss Knight
2018년 4월 29일
It doesn't look as though the problem is the speed of execution of those functions, so much as the number of times they are called. You should have a go at removing your loops by vectorizing your code.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!