Commit 6745049c authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Allow runtimes to have their own memory access macros

parent bed75474
......@@ -208,13 +208,16 @@ inline static int morse_desc_islocal( const MORSE_desc_t *A, int m, int n )
unsigned __morse_need_submit = 0;
#define MORSE_ACCESS_R(A, Am, An) \
if (morse_desc_islocal(A, Am, An)) __morse_need_submit = 1;
if (morse_desc_islocal(A, Am, An)) __morse_need_submit = 1; \
RUNTIME_ACCESS_R(A, Am, An)
#define MORSE_ACCESS_W(A, Am, An) \
if (morse_desc_islocal(A, Am, An)) __morse_need_submit = 1;
if (morse_desc_islocal(A, Am, An)) __morse_need_submit = 1; \
RUNTIME_ACCESS_W(A, Am, An)
#define MORSE_ACCESS_RW(A, Am, An) \
if (morse_desc_islocal(A, Am, An)) __morse_need_submit = 1;
if (morse_desc_islocal(A, Am, An)) __morse_need_submit = 1; \
RUNTIME_ACCESS_RW(A, Am, An)
#define MORSE_RANK_CHANGED __morse_need_submit = 1;
......
......@@ -24,4 +24,10 @@ typedef struct morse_parsec_desc_s morse_parsec_desc_t;
*/
#define RTBLKADDR( desc, type, m, n ) ( dague_dtd_tile_of( DAGUE_dtd_handle, (desc)->schedopt, m, n ) )
#define RUNTIME_ACCESS_R(A, Am, An)
#define RUNTIME_ACCESS_W(A, Am, An)
#define RUNTIME_ACCESS_RW(A, Am, An)
#endif /* _MORSE_PARSEC_H_ */
......@@ -47,4 +47,10 @@ typedef struct quark_option_s {
*/
#define RTBLKADDR( desc, type, m, n ) ( (type*)RUNTIME_desc_getaddr( desc, m, n ) )
#define RUNTIME_ACCESS_R(A, Am, An)
#define RUNTIME_ACCESS_W(A, Am, An)
#define RUNTIME_ACCESS_RW(A, Am, An)
#endif /* _MORSE_QUARK_H_ */
......@@ -86,4 +86,10 @@ typedef struct starpu_conf starpu_conf_t;
void RUNTIME_set_reduction_methods(starpu_data_handle_t handle, MORSE_enum dtyp);
#define RUNTIME_ACCESS_R(A, Am, An)
#define RUNTIME_ACCESS_W(A, Am, An)
#define RUNTIME_ACCESS_RW(A, Am, An)
#endif /* _MORSE_STARPU_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment