Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

noparallel.c

Go to the documentation of this file.
00001 /*===========================================================================*
00002  * noparallel.c                                                              *
00003  *                                                                           *
00004  *      would be procedures to make encoder to run in parallel -- except     *
00005  *      this machine doesn't have sockets, so we can only run sequentially   *
00006  *      so this file has dummy procedures which lets it compile              *
00007  *                                                                           *
00008  * EXPORTED PROCEDURES:                                                      *
00009  *      StartIOServer                                                        *
00010  *      StartCombineServer                                                   *
00011  *      SendRemoteFrame                                                      *
00012  *      GetRemoteFrame                                                       *
00013  *      StartMasterServer                                                    *
00014  *      NotifyMasterDone                                                     *
00015  *                                                                           *
00016  *===========================================================================*/
00017 
00018 /*
00019  * Copyright (c) 1995 The Regents of the University of California.
00020  * All rights reserved.
00021  *
00022  * Permission to use, copy, modify, and distribute this software and its
00023  * documentation for any purpose, without fee, and without written agreement is
00024  * hereby granted, provided that the above copyright notice and the following
00025  * two paragraphs appear in all copies of this software.
00026  *
00027  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
00028  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
00029  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
00030  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031  *
00032  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
00033  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
00034  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
00035  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
00036  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
00037  */
00038 
00039 /*  
00040  *  $Header: /misc/elrond0/share/cvs/AFNI/src/mpeg_encodedir/noparallel.c,v 1.4 2004/04/02 15:12:40 rwcox Exp $
00041  *  $Log: noparallel.c,v $
00042  *  Revision 1.4  2004/04/02 15:12:40  rwcox
00043  *  Cput
00044  *
00045  *  Revision 1.3  2003/12/23 13:50:08  rwcox
00046  *  Cput
00047  *
00048  *  Revision 1.2  2003/12/03 14:46:14  rwcox
00049  *  Cput
00050  *
00051  *  Revision 1.1  2001/12/17 16:11:55  rwcox
00052  *  Cadd
00053  *
00054  * Revision 1.6  1995/05/12  00:00:06  smoot
00055  * sco defined check
00056  *
00057  * Revision 1.5  1995/01/19  23:08:58  eyhung
00058  * Changed copyrights
00059  *
00060  * Revision 1.4  1994/11/14  22:33:31  smoot
00061  * added ifdef for Linux
00062  *
00063  * Revision 1.3  1994/11/12  02:11:55  keving
00064  * nothing
00065  *
00066  * Revision 1.2  1993/12/22  19:19:01  keving
00067  * nothing
00068  *
00069  * Revision 1.2  1993/12/22  19:19:01  keving
00070  * nothing
00071  *
00072  * Revision 1.1  1993/07/22  22:23:43  keving
00073  * nothing
00074  *
00075  * Revision 1.1  1993/06/30  20:06:09  keving
00076  * nothing
00077  *
00078  */
00079 
00080 
00081 /*==============*
00082  * HEADER FILES *
00083  *==============*/
00084 
00085 #include "all.h"
00086 #include "mtypes.h"
00087 #include "parallel.h"
00088 #include "frame.h"
00089 #ifdef LINUX
00090 #include <time.h>
00091 #endif
00092 #if defined(sco)
00093 #include <time.h>
00094 #endif
00095 
00096 
00097 /*==================*
00098  * GLOBAL VARIABLES *
00099  *==================*/
00100 
00101 int parallelTestFrames = 10;
00102 int parallelTimeChunks = 60;
00103 char *IOhostName;
00104 int ioPortNumber;
00105 int combinePortNumber;
00106 int decodePortNumber;
00107 boolean niceProcesses = FALSE;
00108 boolean forceIalign = FALSE;
00109 int         machineNumber = -1;
00110 boolean remoteIO = FALSE;
00111 boolean separateConversion;
00112 time_t  IOtime = 0;
00113 
00114 
00115 /*=====================*
00116  * EXPORTED PROCEDURES *
00117  *=====================*/
00118 
00119                         /*=================*
00120                          * IO SERVER STUFF *
00121                          *=================*/
00122 
00123 
00124 void
00125 SetIOConvert(separate)
00126     boolean separate;
00127 {
00128     /* do nothing -- this may be called during non-parallel execution */
00129 }
00130 
00131 
00132 void
00133 SetParallelPerfect()
00134 {
00135     /* do nothing -- this may be called during non-parallel execution */
00136 }
00137 
00138 
00139 void
00140 SetRemoteShell(shell)
00141     char *shell;
00142 {
00143     /* do nothing -- this may be called during non-parallel execution */
00144 }
00145 
00146 
00147 /* StartIOServer
00148  */ 
00149 void
00150 StartIOServer(numInputFiles, parallelHostName, portNum)
00151     int numInputFiles;
00152     char *parallelHostName;
00153     int portNum;
00154 {
00155     fprintf(stdout, "ERROR:  (StartIOServer) This machine can NOT run parallel version\n");
00156     exit(1);
00157 }
00158 
00159 
00160 void
00161 StartCombineServer(numInputFiles, outputFileName, parallelHostName, portNum)
00162     int numInputFiles;
00163     char *outputFileName;
00164     char *parallelHostName;
00165     int portNum;
00166 {
00167     fprintf(stdout, "ERROR:  (StartCombineServer) This machine can NOT run parallel version\n");
00168     exit(1);
00169 }
00170 
00171 
00172 void
00173 NoteFrameDone(frameStart, frameEnd)
00174     int frameStart;
00175     int frameEnd;
00176 {
00177     fprintf(stdout, "ERROR:  (NoteFrameDone) This machine can NOT run parallel version\n");
00178     exit(1);
00179 }
00180 
00181 /* SendRemoteFrame
00182  */
00183 void
00184 SendRemoteFrame(frameNumber, bb)
00185     int frameNumber;
00186     BitBucket *bb;
00187 {
00188     fprintf(stdout, "ERROR:  (SendRemoteFrame) This machine can NOT run parallel version\n");
00189     exit(1);
00190 }
00191 
00192 
00193 /* GetRemoteFrame
00194  */
00195 void
00196 GetRemoteFrame(frame, frameNumber)
00197     MpegFrame *frame;
00198     int frameNumber;
00199 {
00200     fprintf(stdout, "ERROR:  (GetRemoteFrame) This machine can NOT run parallel version\n");
00201     exit(1);
00202 }
00203 
00204 
00205 void
00206 WaitForOutputFile(number)
00207     int number;
00208 {
00209     fprintf(stdout, "ERROR:  (WaitForOutputFile) This machine can NOT run parallel version\n");
00210     exit(1);
00211 }
00212 
00213 
00214                         /*=======================*
00215                          * PARALLEL SERVER STUFF *
00216                          *=======================*/
00217 
00218 
00219 /* StartMasterServer
00220  */
00221 void
00222 StartMasterServer(numInputFiles, paramFile, outputFileName)
00223     int numInputFiles;
00224     char *paramFile;
00225     char *outputFileName;
00226 {
00227     fprintf(stdout, "ERROR:  (StartMasterServer) This machine can NOT run parallel version\n");
00228     exit(1);
00229 }
00230 
00231 
00232 /* NotifyMasterDone
00233  */
00234 boolean
00235 NotifyMasterDone(hostName, portNum, machineNumber, seconds, frameStart,
00236                  frameEnd)
00237     char *hostName;
00238     int portNum;
00239     int machineNumber;
00240     int seconds;
00241     int *frameStart;
00242     int *frameEnd;
00243 {
00244     fprintf(stdout, "ERROR:  (NotifyMasterDone) This machine can NOT run parallel version\n");
00245     exit(1);
00246 }
00247 
00248 
00249 void
00250 StartDecodeServer(numInputFiles, decodeFileName, parallelHostName, portNum)
00251     int numInputFiles;
00252     char *decodeFileName;
00253     char *parallelHostName;
00254     int portNum;
00255 {
00256     fprintf(stdout, "ERROR:  (StartDecodeServer) This machine can NOT run parallel version\n");
00257     exit(1);
00258 }
00259 
00260 
00261 void
00262 NotifyDecodeServerReady(id)
00263     int id;
00264 {
00265     fprintf(stdout, "ERROR:  (NotifyDecodeServerReady) This machine can NOT run parallel version\n");
00266     exit(1);
00267 }
00268 
00269 
00270 void
00271 WaitForDecodedFrame(id)
00272     int id;
00273 {
00274     fprintf(stdout, "ERROR:  (WaitForDecodedFrame) This machine can NOT run parallel version\n");
00275     exit(1);
00276 }
00277 
00278 void
00279 SendDecodedFrame(frame)
00280     MpegFrame *frame;
00281 {
00282     fprintf(stdout, "ERROR:  (SendDecodedFrame) This machine can NOT run parallel version\n");
00283     exit(1);
00284 }
00285 
00286 void
00287 GetRemoteDecodedRefFrame(frame, frameNumber)
00288     MpegFrame *frame;
00289     int frameNumber;
00290 {
00291     fprintf(stdout, "ERROR:  (GetRemoteDecodedRefFrame) This machine can NOT run parallel version\n");
00292     exit(1);
00293 }
 

Powered by Plone

This site conforms to the following standards: