Procházet zdrojové kódy

Do not auto-copy ITIMER_PROF when using simgrid, we don't actually start new kernel threads

Samuel Thibault před 12 roky
rodič
revize
69e4d2d12f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/workers.c

+ 2 - 2
src/core/workers.c

@@ -305,7 +305,7 @@ void _starpu_worker_init(struct _starpu_worker *worker, unsigned fut_key)
 	int devid = worker->devid;
 	(void) devid;
 
-#ifdef STARPU_PERF_DEBUG
+#if defined(STARPU_PERF_DEBUG) && !defined(STARPU_SIMGRID)
 	setitimer(ITIMER_PROF, &prof_itimer, NULL);
 #endif
 
@@ -342,7 +342,7 @@ static void _starpu_launch_drivers(struct _starpu_machine_config *config)
 	unsigned cpu = 0, cuda = 0;
 	unsigned worker;
 
-#ifdef STARPU_PERF_DEBUG
+#if defined(STARPU_PERF_DEBUG) && !defined(STARPU_SIMGRID)
 	/* Get itimer of the main thread, to set it for the worker threads */
 	getitimer(ITIMER_PROF, &prof_itimer);
 #endif