If gpu computing or convert to mex file help to accelerate the code
2 views (last 30 days)
Show older comments
Chaoyang Jiang
on 28 Apr 2018
Commented: Chaoyang Jiang
on 1 May 2018
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 Comments
Accepted Answer
Joss Knight
on 29 Apr 2018
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.
More Answers (0)
See Also
Categories
Find more on GPU Computing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!