diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-02-11 10:04:01 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-02-11 10:04:01 +0100 |
commit | b97eaf6bbea0b4f8426e1663f35e70da999c3415 (patch) | |
tree | f994d1504042c2448b1005e416586f6f5af8cb12 /ufo/ufo-scheduler.c | |
parent | 25aeb585fc596dc5ffffd8e31c956ebd8fc40e46 (diff) |
Fix Python crash introduced with cc965010374473cc
@PenceS04: please check Python compatiblity in the future, i.e. run some tests.
Diffstat (limited to 'ufo/ufo-scheduler.c')
-rw-r--r-- | ufo/ufo-scheduler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ufo/ufo-scheduler.c b/ufo/ufo-scheduler.c index 3cfc572..b68a598 100644 --- a/ufo/ufo-scheduler.c +++ b/ufo/ufo-scheduler.c @@ -169,7 +169,7 @@ run_remote_task (TaskLocalData *tld) guint n_remote_gpus; gboolean *alive; gboolean active = TRUE; - + remote = UFO_REMOTE_NODE (ufo_task_node_get_proc_node (UFO_TASK_NODE (tld->task))); n_remote_gpus = ufo_remote_node_get_num_gpus (remote); alive = g_new0 (gboolean, n_remote_gpus); @@ -432,7 +432,7 @@ setup_tasks (UfoBaseScheduler *scheduler, if (!check_target_connections (task_graph, node, tld->n_inputs, error)) { return NULL; - } + } profiler = ufo_task_node_get_profiler (UFO_TASK_NODE (node)); ufo_profiler_enable_tracing (profiler, tracing_enabled); @@ -441,7 +441,7 @@ setup_tasks (UfoBaseScheduler *scheduler, if (error && *error != NULL) { return NULL; - } + } } g_list_free (nodes); @@ -583,7 +583,7 @@ propagate_partition (UfoTaskGraph *graph) static void join_threads (GThread **threads, guint n_threads) { - for (guint i = 0; i < n_threads; i++) + for (guint i = 0; i < n_threads; i++) g_thread_join (threads[i]); } @@ -625,7 +625,7 @@ ufo_scheduler_run (UfoBaseScheduler *scheduler, graph = task_graph; } - if (graph == NULL) + if (graph == NULL) return; arch = ufo_base_scheduler_get_arch (scheduler); |