Mentions légales du service

Skip to content
Snippets Groups Projects

Check that CHAMELEON_Init() was successful in testing

Merged Philippe SWARTVAGHER requested to merge pswartva/chameleon:check_chameleon_init into master
All threads resolved!
Files
2
+ 3
2
@@ -82,6 +82,7 @@ int __chameleon_init(int cores, int gpus)
@@ -82,6 +82,7 @@ int __chameleon_init(int cores, int gpus)
int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
{
{
CHAM_context_t *chamctxt;
CHAM_context_t *chamctxt;
 
int res = -1;
/* Create context and insert in the context map */
/* Create context and insert in the context map */
chamctxt = chameleon_context_create();
chamctxt = chameleon_context_create();
@@ -113,9 +114,9 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
@@ -113,9 +114,9 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
}
}
#endif
#endif
RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker );
res = RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker );
return CHAMELEON_SUCCESS;
return res == 0 ? CHAMELEON_SUCCESS : res;
}
}
/**
/**
Loading