Anyone can help me to benchmark this code on high end GPU (CUDA)?
1 view (last 30 days)
Show older comments
Hello, I am struggling on the imagesc function. Let's think of the example.
A=uint8(256*rand(1000,1000,30));
figure('position',[461,41,1000,1000]);tic;
for k=1:30;
imagesc(A(:,:,k));
pause(0.01);
end;toc;
I expect to see frame rate 100Hz. But my result is only 17Hz. My core is i5 intel. I don't have GPU.
I am suspicious that my slow rate results from no GPU on my computer.
Can anyone help me to benchmark this code on high end GPU such as NVidea K80 Tesla? So that I can make sure my problem.
A=uint8(256*rand(1000,1000,30));
A=gpuArray(A);
figure('position',[461,41,1000,1000]);tic;
for k=1:30;
imagesc(A(:,:,k));
pause(0.01);
end;toc;
0 Comments
Accepted Answer
Joss Knight
on 18 Nov 2015
I was able to get your images to display at 30Hz with the help of a Tesla K20c. I can't get any faster than that because the rest of the overhead is rendering time. If I take out the pause the loop runs in 0.1 seconds.
4 Comments
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!