⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vrun_internals.c

📁 Path MPICH-V for MPICH the MPI Implementation
💻 C
字号:
/*  MPICH-V3  Copyright (C) 2002, 2003 Groupe Cluster et Grid, LRI, Universite de Paris Sud  This file is part of MPICH-V3.  MPICH-V3 is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation; either version 2 of the License, or  (at your option) any later version.  MPICH-V3 is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License for more details.  You should have received a copy of the GNU General Public License  along with MPICH-V3; if not, write to the Free Software  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  $Id: vrun_internals.c,v 1.3 2004/05/17 13:40:14 collin Exp $*/#include "vrun_versions.h"/* This file contains functions that can be used by any version of MPICH-V */void getConnectionFrom(int *socket) {}void parseArguments(int argc, char **argv, JS *js1) {  boolean b;  int c;  JS * js;  static struct option long_options[] = {    {"debug", required_argument, NULL, 'd'},    {"debugfile", required_argument, NULL, 'b'},    {"checkpointing", required_argument, NULL, 'c'},  };  js = (JS *)malloc(sizeof(JS));  strcpy(js->debugFile, "");  js->checkpointFrequency = 0;    if (argc < NUM_ARGS) {    printf("%s error: not enough arguments\n", argv[0]);    printUsage();    b = false;  } else {    b = true;    while ((c = getopt_long_only(argc, argv, options, long_options, NULL)) != -1) {      switch(c) {        case 'f':	  strcpy(js->vpgfile, optarg);	  break;	case 'g':	  js->jobId = atoi(optarg);	  break;	case 'p':	  js->dispatcherPort = atoi(optarg);	  break;	case 'd':	  strcpy(js->debugCommand, optarg);	  break;	case 'b':	  strcpy(js->debugFile, optarg);	  break;	case 'c':	  js->checkpointFrequency = atoi(optarg);	  break;	default:	  b = false;      }    }  }  memcpy((void *)js1, (void *)js, sizeof(JS));  return(b);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -