Sfoglia il codice sorgente

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

Samuel Thibault 9 anni fa
parent
commit
218aad7657
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;
 }