From befcd8b63e21447a93996c2093e091b11ad3f5d4 Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Fri, 26 Jul 2013 17:44:10 +0000 Subject: [PATCH] Disable mpi_param_check by default if parameter checking is compiled out. cmr=v1.7.3:reviewer=rhc This commit was SVN r28960. --- ompi/runtime/ompi_mpi_params.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ompi/runtime/ompi_mpi_params.c b/ompi/runtime/ompi_mpi_params.c index 889adda793..67a243801f 100644 --- a/ompi/runtime/ompi_mpi_params.c +++ b/ompi/runtime/ompi_mpi_params.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology @@ -80,9 +81,10 @@ int ompi_mpi_register_params(void) { int value; - /* Whether we want MPI API function parameter checking or not */ + /* Whether we want MPI API function parameter checking or not. Disable this by default if + parameter checking is compiled out. */ - ompi_mpi_param_check = true; + ompi_mpi_param_check = !!(MPI_PARAM_CHECK); (void) mca_base_var_register("ompi", "mpi", NULL, "param_check", "Whether you want MPI API parameters checked at run-time or not. Possible values are 0 (no checking) and 1 (perform checking at run-time)", MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,