Mentions légales du service

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

runtime/starpu: add a warning if parallel workers are initialized without...

runtime/starpu: add a warning if parallel workers are initialized without multi-threaded BLAS library
parent 840817e7
No related branches found
No related tags found
1 merge request!358Fix documentation and code issues on parallel worker
......@@ -37,6 +37,9 @@
/* Debug coreblas execution order if not provided by the runtime */
#cmakedefine CHAMELEON_KERNELS_TRACE
/* Enable multi-threaded BLAS library */
#cmakedefine CHAMELEON_KERNELS_MT
/* Communication engine */
#cmakedefine CHAMELEON_USE_MPI
#cmakedefine CHAMELEON_USE_MIGRATE
......
......@@ -38,7 +38,6 @@ void chameleon_starpu_parallel_worker_init( starpu_sched_opt_t *sched_opt )
if (env_pw_level != NULL) {
struct starpu_parallel_worker_config *pw_config = NULL;
hwloc_obj_type_t pw_level;
int pw_level_number = 1;
char level[256];
......@@ -46,6 +45,10 @@ void chameleon_starpu_parallel_worker_init( starpu_sched_opt_t *sched_opt )
int argc = strchr( env_pw_level, ':') == NULL ? 1 : 2;
int match = sscanf( env_pw_level, "%[^:]:%d", level, &pw_level_number );
#if !defined(CHAMELEON_KERNELS_MT)
chameleon_warning("chameleon_starpu_parallel_worker_init()", "CHAMELEON has been compiled with multi-threaded kernels disabled (-DCHAMELEON_KERNELS_MT=OFF). This won't break the execution, but you may not obtain the performance gain expected. It is recommended to recompile with -DCHAMELEON_KERNELS_MT=ON.\n");
#endif
if ( (match != argc) ||
((match == 2) && (pw_level_number < 0) ) )
{
......
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