Skip to content

Commit

Permalink
Initialize parsec_task data[].data_in to NULL
Browse files Browse the repository at this point in the history
Not sure if this really needed. Would prefer to remove this again.


Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Apr 4, 2024
1 parent 6cbb9b3 commit 45147a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ttg/ttg/parsec/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ namespace ttg_parsec {
parsec_task.mempool_owner = mempool;
parsec_task.task_class = task_class;
parsec_task.priority = 0;

// TODO: can we avoid this?
for (int i = 0; i < MAX_PARAM_COUNT; ++i) { this->parsec_task.data[i].data_in = nullptr; }
}

parsec_ttg_task_base_t(parsec_thread_mempool_t *mempool, parsec_task_class_t *task_class,
Expand All @@ -168,6 +171,9 @@ namespace ttg_parsec {
parsec_task.taskpool = taskpool;
parsec_task.priority = priority;
parsec_task.chore_mask = 1<<0;

// TODO: can we avoid this?
for (int i = 0; i < MAX_PARAM_COUNT; ++i) { this->parsec_task.data[i].data_in = nullptr; }
}

public:
Expand Down

0 comments on commit 45147a3

Please sign in to comment.