Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e86e5ad2 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Set register_mat to 0, when already registered through the runtime allocation

parent c3b46563
No related branches found
No related tags found
1 merge request!38Cuda double registration
...@@ -243,6 +243,8 @@ int morse_desc_mat_alloc( MORSE_desc_t *desc ) ...@@ -243,6 +243,8 @@ int morse_desc_mat_alloc( MORSE_desc_t *desc )
return MORSE_ERR_OUT_OF_RESOURCES; return MORSE_ERR_OUT_OF_RESOURCES;
} }
/* The matrix has already been registered by the Runtime alloc */
desc->register_mat = 0;
RUNTIME_desc_create(desc); RUNTIME_desc_create(desc);
return MORSE_SUCCESS; return MORSE_SUCCESS;
...@@ -453,7 +455,6 @@ int MORSE_Desc_Create_User(MORSE_desc_t **desc, void *mat, MORSE_enum dtyp, int ...@@ -453,7 +455,6 @@ int MORSE_Desc_Create_User(MORSE_desc_t **desc, void *mat, MORSE_enum dtyp, int
**desc = morse_desc_init_user(dtyp, mb, nb, bsiz, lm, ln, i, j, m, n, p, q, **desc = morse_desc_init_user(dtyp, mb, nb, bsiz, lm, ln, i, j, m, n, p, q,
get_blkaddr, get_blkldd, get_rankof); get_blkaddr, get_blkldd, get_rankof);
/* if the user gives a pointer to the overall data (tiles) we can use it */ /* if the user gives a pointer to the overall data (tiles) we can use it */
(**desc).use_mat = (mat == NULL) ? 0 : 1; (**desc).use_mat = (mat == NULL) ? 0 : 1;
......
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