Skip to content

Conversation

dycz0fx
Copy link
Contributor

@dycz0fx dycz0fx commented Jul 9, 2020

No description provided.

rt.init(&argc, &argv);

rt.register_task(TOP_LEVEL_TASK, top_level_task);
rt.register_task(SHARD_TASK, shard_task);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to use Processor::register_task_by_kind(Processor::XXX,...) to register non-top-level tasks.

Processor p = Processor::NO_PROC;
{
Machine::ProcessorQuery query(Machine::get_machine());
query.only_kind(Processor::TOC_PROC);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use TOC_PROC to launch top level task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants