@@ -280,8 +280,10 @@ int main(int argc, char **argv)
if (bound)
starpu_bound_start(bounddeps, boundprio);
- if (profile)
+ if (profile) {
+ starpu_profiling_init();
starpu_profiling_status_set(STARPU_PROFILING_ENABLE);
+ }
/* Factorize the matrix (in place) */
if (pivot)
@@ -34,6 +34,7 @@ int main(int argc, char **argv)
starpu_init(NULL);
/* Enable profiling */
/* We should observe at least 500ms in the sleep time reported by every
@@ -75,6 +75,9 @@ struct starpu_bus_profiling_info {
int transfer_count;
};
+/* This function needs to be called before other starpu_profile_* functions */
+int starpu_profiling_init(void);
+
/* This function sets the profiling status:
* - enable with STARPU_PROFILING_ENABLE
* - disable with STARPU_PROFILING_DISABLE