From 35b81738d2d9d37e644b3486d69727d0a2100bc6 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Wed, 28 Jul 2021 12:40:57 +0200 Subject: [PATCH] Fix return value when calling RUNTIME_Init() --- control/control.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/control/control.c b/control/control.c index 61068fdb5..5fc134b38 100644 --- a/control/control.c +++ b/control/control.c @@ -82,7 +82,6 @@ int __chameleon_init(int cores, int gpus) int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker) { CHAM_context_t *chamctxt; - int res = -1; /* Create context and insert in the context map */ chamctxt = chameleon_context_create(); @@ -114,9 +113,7 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker) } #endif - res = RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker ); - - return res == 0 ? CHAMELEON_SUCCESS : res; + return RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker ); } /** -- GitLab