Scheduler heteroprio
Hello @bramas @cflint (cc @thibault ),
I am looking at the heteroprio scheduler in the branch https://gitlab.inria.fr/starpu/starpu/-/tree/update/auto-heteroprio
The function get_task_auto_priority() fails if the codelet does not define a name, i added
if (!name) return 0;
not sure if it's the correct way to do it.
there is also a problem with the call
starpu_heteroprio_clear_mapping_hp(hp);
in initialize_heteroprio_policy() which sets to 0 the buckets[x].valid_arch which were set previously when calling init_sched().
removing the call starpu_heteroprio_clear_mapping_hp(hp) causes the call to check_heteroprio_mapping() to fail on an assert.
Here the patch patch.txt
With the given patch, most tests succeed but some seem to deadlock.
Thanks,
Nathalie