Mentions légales du service

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

runtime: Add a RUNTIME_handle2tile function to make public the pointer conversion if needed

parent 64d5f5e6
No related branches found
No related tags found
1 merge request!468Many minor hotfix issued from the mixed precision branch
......@@ -557,6 +557,18 @@ RUNTIME_data_migrate( const RUNTIME_sequence_t *sequence,
void *
RUNTIME_data_getaddr( const CHAM_desc_t *A, int Am, int An );
/**
* @brief Get the CHAM_tile_t pointer to a tile from the runtime handle pointer
* returned by RUNTIME_data_getaddr.
*
* @param[in] ptr
* The pointer to convert.
*
* @retval The associated CHAM_tile_t pointer.
*/
CHAM_tile_t *RUNTIME_handle2tile( void *ptr );
/**
* @}
*
......
......@@ -772,3 +772,9 @@ starpu_cham_tile_interface_fini()
#endif
}
}
CHAM_tile_t *
RUNTIME_handle2tile( void *interface )
{
return cti_interface_get( (starpu_cham_tile_interface_t *)interface );
}
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