Mentions légales du service

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

starpu: Add an shm insert task macro and change the data conversion tasks to...

starpu: Add an shm insert task macro and change the data conversion tasks to local tasks to avoid issue with tag registrations
parent 3fa3ed10
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ void INSERT_TASK_zgered( const RUNTIME_option_t *options, ...@@ -75,7 +75,7 @@ void INSERT_TASK_zgered( const RUNTIME_option_t *options,
#endif #endif
starpu_cham_tile_register( &handleAout, -1, tileA, ChamComplexHalf ); starpu_cham_tile_register( &handleAout, -1, tileA, ChamComplexHalf );
rt_starpu_insert_task( rt_shm_starpu_insert_task(
&cl_dlag2h, &cl_dlag2h,
STARPU_VALUE, &m, sizeof(int), STARPU_VALUE, &m, sizeof(int),
STARPU_VALUE, &n, sizeof(int), STARPU_VALUE, &n, sizeof(int),
...@@ -116,7 +116,7 @@ void INSERT_TASK_zgered( const RUNTIME_option_t *options, ...@@ -116,7 +116,7 @@ void INSERT_TASK_zgered( const RUNTIME_option_t *options,
#endif #endif
starpu_cham_tile_register( &handleAout, -1, tileA, ChamComplexFloat ); starpu_cham_tile_register( &handleAout, -1, tileA, ChamComplexFloat );
rt_starpu_insert_task( rt_shm_starpu_insert_task(
&cl_zlag2c, &cl_zlag2c,
STARPU_VALUE, &m, sizeof(int), STARPU_VALUE, &m, sizeof(int),
STARPU_VALUE, &n, sizeof(int), STARPU_VALUE, &n, sizeof(int),
......
...@@ -67,7 +67,7 @@ void INSERT_TASK_zgerst( const RUNTIME_option_t *options, ...@@ -67,7 +67,7 @@ void INSERT_TASK_zgerst( const RUNTIME_option_t *options,
"[%2d] Convert back the tile ( %d, %d ) from half precision\n", "[%2d] Convert back the tile ( %d, %d ) from half precision\n",
A->myrank, Am, An ); A->myrank, Am, An );
#endif #endif
rt_starpu_insert_task( rt_shm_starpu_insert_task(
&cl_hlag2d, &cl_hlag2d,
STARPU_VALUE, &m, sizeof(int), STARPU_VALUE, &m, sizeof(int),
STARPU_VALUE, &n, sizeof(int), STARPU_VALUE, &n, sizeof(int),
...@@ -89,7 +89,7 @@ void INSERT_TASK_zgerst( const RUNTIME_option_t *options, ...@@ -89,7 +89,7 @@ void INSERT_TASK_zgerst( const RUNTIME_option_t *options,
"[%2d] Convert back the tile ( %d, %d ) from half precision\n", "[%2d] Convert back the tile ( %d, %d ) from half precision\n",
A->myrank, Am, An ); A->myrank, Am, An );
#endif #endif
rt_starpu_insert_task( rt_shm_starpu_insert_task(
&cl_clag2z, &cl_clag2z,
STARPU_VALUE, &m, sizeof(int), STARPU_VALUE, &m, sizeof(int),
STARPU_VALUE, &n, sizeof(int), STARPU_VALUE, &n, sizeof(int),
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* @author Loris Lucido * @author Loris Lucido
* @author Terry Cojean * @author Terry Cojean
* @author Matthieu Kuhn * @author Matthieu Kuhn
* @date 2024-03-16 * @date 2024-07-17
* *
*/ */
#ifndef _chameleon_starpu_h_ #ifndef _chameleon_starpu_h_
...@@ -149,6 +149,14 @@ void *RUNTIME_data_getaddr_withconversion( const RUNTIME_option_t *options, ...@@ -149,6 +149,14 @@ void *RUNTIME_data_getaddr_withconversion( const RUNTIME_option_t *options,
#endif #endif
#if defined(CHAMELEON_RUNTIME_SYNC)
#define rt_shm_starpu_insert_task( _codelet_, ... ) \
starpu_insert_task( (_codelet_), STARPU_TASK_SYNCHRONOUS, 1, ##__VA_ARGS__ )
#else
#define rt_shm_starpu_insert_task( _codelet_, ... ) \
starpu_insert_task( (_codelet_), ##__VA_ARGS__ )
#endif
/* /*
* Enable codelets names * Enable codelets names
*/ */
......
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