From 9f83405c78779809e26d9fe3b699e4087f1296c0 Mon Sep 17 00:00:00 2001 From: Rolf vandeVaart Date: Wed, 16 Oct 2013 16:39:19 +0000 Subject: [PATCH] Fix one more corner case initialization issue. This commit was SVN r29443. --- ompi/mca/common/cuda/common_cuda.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/common/cuda/common_cuda.c b/ompi/mca/common/cuda/common_cuda.c index 1a95e44c8c..7ea3c27a7c 100644 --- a/ompi/mca/common/cuda/common_cuda.c +++ b/ompi/mca/common/cuda/common_cuda.c @@ -231,6 +231,9 @@ int mca_common_cuda_stage_one_init(void) int errsize; bool stage_one_init_passed = false; + if (true == stage_one_init_complete) { + return 0; + } stage_one_init_complete = true; /* Set different levels of verbosity in the cuda related code. */