about parfor with reading from cell array ????
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
abdullah alzaqebah
el 15 de Abr. de 2018
Comentada: abdullah alzaqebah
el 15 de Abr. de 2018
hello everyone i use the following code to do some operation (maxflow) for each element of cell array, each element contains 3*n array which represent a graph. the achieved speed up is not logical any suggestions? the code :
---------------------------------------------
parpool(4);
c = parallel.pool.Constant(sss0);
tm00=tic;
parfor i=1:1:size(sss0,2)
maxflows((c.Value{1,i}(1,:)),(c.Value{1,i}(2,:)),(c.Value{1,i}(3,:)),source,sink);
end
tm01=toc(tm00)
4 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!