Commit 601b7879 authored by Samuel Thibault's avatar Samuel Thibault Committed by Mathieu Faverge

ooc: Only require page alignment when using o_direct backend

parent ae4f8427
......@@ -175,6 +175,9 @@ void RUNTIME_desc_create( CHAM_desc_t *desc )
#endif
if (desc->ooc) {
char *backend = getenv("STARPU_DISK_SWAP_BACKEND");
if (backend && strcmp(backend, "unistd_o_direct") == 0) {
int lastmm = desc->lm - (desc->lmt-1) * desc->mb;
int lastnn = desc->ln - (desc->lnt-1) * desc->nb;
int64_t eltsze = CHAMELEON_Element_Size(desc->dtyp);
......@@ -185,10 +188,11 @@ void RUNTIME_desc_create( CHAM_desc_t *desc )
((desc->mb * lastnn * eltsze) % pagesize != 0) ||
((lastmm * lastnn * eltsze) % pagesize != 0) )
{
chameleon_error("RUNTIME_desc_create", "Matrix and tile size not suitable for out-of-core: all tiles have to be multiples of 4096. Tip : choose 'n' and 'nb' as both multiples of 32.");
chameleon_error("RUNTIME_desc_create", "Matrix and tile size not suitable for out-of-core: all tiles have to be multiples of the system page size. Tip : choose 'n' and 'nb' as both multiples of 32.");
return;
}
}
}
#if defined(CHAMELEON_USE_MPI)
/*
......
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