Mentions légales du service

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

context: Add a function to return the chameleon context in order to be able to...

context: Add a function to return the chameleon context in order to be able to use the public runtime API
parent f2b3c76f
No related branches found
No related tags found
1 merge request!468Many minor hotfix issued from the mixed precision branch
...@@ -483,3 +483,27 @@ int CHAMELEON_Get( int param, int *value ) ...@@ -483,3 +483,27 @@ int CHAMELEON_Get( int param, int *value )
return CHAMELEON_SUCCESS; return CHAMELEON_SUCCESS;
} }
/**
*
* @ingroup Options
*
* CHAMELEON_GetContext - Get the Chameleon context pointer
*
*******************************************************************************
*
* @retval NULL if not initialized
* @retval The pointer to the initialized Chameleon context
*
*/
CHAM_context_t *CHAMELEON_GetContext()
{
CHAM_context_t *chamctxt;
chamctxt = chameleon_context_self();
if (chamctxt == NULL) {
chameleon_error("CHAMELEON_Get", "CHAMELEON not initialized");
return NULL;
}
return chamctxt;
}
...@@ -134,6 +134,8 @@ int CHAMELEON_Distributed_size (int *size); ...@@ -134,6 +134,8 @@ int CHAMELEON_Distributed_size (int *size);
int CHAMELEON_Distributed_rank (int *rank); int CHAMELEON_Distributed_rank (int *rank);
int CHAMELEON_GetThreadNbr (void); int CHAMELEON_GetThreadNbr (void);
CHAM_context_t *CHAMELEON_GetContext();
int CHAMELEON_Lapack_to_Tile( void *Af77, int LDA, CHAM_desc_t *A ) __attribute__((deprecated("Please refer to CHAMELEON_Lap2Desc() instead"))); int CHAMELEON_Lapack_to_Tile( void *Af77, int LDA, CHAM_desc_t *A ) __attribute__((deprecated("Please refer to CHAMELEON_Lap2Desc() instead")));
int CHAMELEON_Tile_to_Lapack( CHAM_desc_t *A, void *Af77, int LDA ) __attribute__((deprecated("Please refer to CHAMELEON_Desc2Lap() instead"))); int CHAMELEON_Tile_to_Lapack( CHAM_desc_t *A, void *Af77, int LDA ) __attribute__((deprecated("Please refer to CHAMELEON_Desc2Lap() instead")));
......
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