dbg_control.c
来自「mpi并行计算的c++代码 可用vc或gcc编译通过 可以用来搭建并行计算试验环」· C语言 代码 · 共 36 行
C
36 行
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */#include "mpiimpl.h"#include <string.h>#define MAX_DEBUG_NAME 256/* This routine checks the argument against the value of the environment variable MPICH_DEBUG_ITEM, and if they are the same, returns 1. Otherwise, returns 0.*/int MPIR_IDebug( const char *str ){ static int needEnvValue = 1; const char *d; static char debugName[MAX_DEBUG_NAME]; if (needEnvValue) { d = getenv( "MPICH_DEBUG_ITEM" ); if (d) { /* Make a copy */ MPIU_Strncpy( debugName, d, MAX_DEBUG_NAME ); } else { debugName[0] = 0; } needEnvValue = 0; } return strcmp( debugName, str ) == 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?