Ver código fonte

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

Samuel Thibault 12 anos atrás
pai
commit
69e4d2d12f
1 arquivos alterados com 2 adições e 2 exclusões
  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