What happens if the number of workers vacant are less than the minimum value in the specified range of SPMD?
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Viswanath Hariharan
 el 7 de Nov. de 2017
  
    
    
    
    
    Respondida: Edric Ellis
    
      
 el 7 de Nov. de 2017
            spmd (m,n)
    <statements>
end
If n workers aren't available, it is mentioned in the document that the statement would wait until enough workers are available. What would happen if m workers aren't available? Will it wait for at least m workers to be available?
0 comentarios
Respuesta aceptada
  Edric Ellis
    
      
 el 7 de Nov. de 2017
        spmd(m,n), statements, end uses a minimum of m and a maximum of n workers to evaluate statements. If there are not enough workers available, an error is thrown. m can be zero, which allows the block to run locally if no workers are available.
So, if m workers are not available, an error will be thrown.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Parallel Computing Toolbox en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!