parfor images and gpu
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
michael scheinfeild
am 1 Jan. 2017
Beantwortet: Joss Knight
am 2 Jan. 2017
i use the new options in loops
parfor
some code,,,
someimage=gpuarray(image)
process(someimage)
end
1) it slows down pc 2) it takes all memory 3) somtimes it works slower than normal loop and image in cpu
so when it is usful to use parfor (images i suppose transmited all fors if it is array) and gpu not alwayes fast is it the communication gpu cpu that takes the time?
0 Kommentare
Akzeptierte Antwort
Joss Knight
am 2 Jan. 2017
You've only got one GPU so it's rarely faster to run anything on it in a parallel pool. Doing so is just an elaborate way of running the computation serially but with greater overhead and less memory.
Get a second GPU, and you'll see an improvement.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu GPU Computing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!