Mentions légales du service

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

Fix return value when calling RUNTIME_Init()

parent 3ab3f937
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,6 @@ int __chameleon_init(int cores, int gpus) ...@@ -82,7 +82,6 @@ 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();
...@@ -114,9 +113,7 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker) ...@@ -114,9 +113,7 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
} }
#endif #endif
res = RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker ); return RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker );
return res == 0 ? CHAMELEON_SUCCESS : res;
} }
/** /**
......
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