Explorar el Código

do not abort when tree traversal gets to hardware threads which have not been used for binding

Samuel Thibault hace 10 años
padre
commit
218aad7657
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/core/workers.c

+ 2 - 1
src/core/workers.c

@@ -1831,7 +1831,8 @@ int starpu_worker_get_bindid(int workerid)
 
 int starpu_bindid_get_workerids(int bindid, int **workerids)
 {
-	STARPU_ASSERT(bindid < _starpu_config.nbindid);
+	if (bindid >= _starpu_config.nbindid)
+		return 0;
 	*workerids = _starpu_config.bindid_workers[bindid].workerids;
 	return _starpu_config.bindid_workers[bindid].nworkers;
 }