Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e0ff859f authored by LISITO Alycia's avatar LISITO Alycia
Browse files

chameleon_starpu_internal: Use dynamic handles in task insert

parent 62939a5a
No related branches found
No related tags found
1 merge request!523Restructuration of the codelets getrf and getrf_nopiv
...@@ -447,6 +447,7 @@ starpu_cham_task_set_options( const RUNTIME_option_t *options, ...@@ -447,6 +447,7 @@ starpu_cham_task_set_options( const RUNTIME_option_t *options,
struct starpu_data_descr *descrs, struct starpu_data_descr *descrs,
callback_fct_t callback ) callback_fct_t callback )
{ {
int allocated_buffers = 0;
int i; int i;
task->priority = options->priority; task->priority = options->priority;
...@@ -473,6 +474,10 @@ starpu_cham_task_set_options( const RUNTIME_option_t *options, ...@@ -473,6 +474,10 @@ starpu_cham_task_set_options( const RUNTIME_option_t *options,
// task->where; /* Do restriction here */ // task->where; /* Do restriction here */
task->nbuffers = nbdata; task->nbuffers = nbdata;
/* Dynamic handles */
starpu_task_insert_data_make_room( task->cl, task, &allocated_buffers, 0, task->nbuffers );
for ( i = 0; i < task->nbuffers; i++ ) { for ( i = 0; i < task->nbuffers; i++ ) {
enum starpu_data_access_mode mode = descrs[i].mode; enum starpu_data_access_mode mode = descrs[i].mode;
assert( descrs[i].handle ); assert( descrs[i].handle );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment