Procházet zdrojové kódy

try to catch people who seemingly call starpu_mpi_init before starpu_init

Samuel Thibault před 5 roky
rodič
revize
48cac18789
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/core/topology.c

+ 2 - 0
src/core/topology.c

@@ -1049,6 +1049,8 @@ static inline unsigned _starpu_get_next_bindid(struct _starpu_machine_config *co
 {
 	struct _starpu_machine_topology *topology = &config->topology;
 
+	STARPU_ASSERT_MSG(topology_is_initialized, "The StarPU core is not initialized yet, have you called starpu_init?");
+
 	unsigned current_preferred;
 	unsigned nhyperthreads = topology->nhwpus / topology->nhwcpus;
 	unsigned ncores = topology->nhwpus / nhyperthreads;