condor_compile(1) [debian man page]
condor_compile(1) General Commands Manual condor_compile(1) Name condor_compile create - a relinked executable for submission to the Standard Universe Synopsis condor_compile cc | CC | gcc | f77 | g++ | ld | make | ... Description Use condor_compile to relink a program with the Condor libraries for submission into Condor's Standard Universe. The Condor libraries pro- vide the program with additional support, such as the capability to checkpoint, which is required in Condor's Standard Universe mode of operation. condor_compile requires access to the source or object code of the program to be submitted; if source or object code for the program is not available (i.e. only an executable binary, or if it is a shell script), then the program must submitted into Condor's Vanilla Universe. See the reference page for condor_submitand/or consult the "Condor Users and Administrators Manual" for further informa- tion. To use condor_compile, simply enter "condor_compile" followed by whatever you would normally enter to compile or link your application. Any resulting executables will have the Condor libraries linked in. For example: condor_compile cc -O -o myprogram.condor file1.c file2.c ... will produce a binary "myprogram.condor" which is relinked for Condor, capable of checkpoint/migration/remote-system-calls, and ready to submit to the Standard Universe. If the Condor administrator has opted to fully install condor_compile, then condor_compilecan be followed by practically any command or program, including make or shell-script programs. For example, the following would all work: condor_compile make condor_compile make install condor_compile f77 -O mysolver.f condor_compile /bin/csh compile-me-shellscript If the Condor administrator has opted to only do a partial install of condor_compile, the you are restricted to following condor_compile- with one of these programs: cc (the system C compiler) c89 (POSIX compliant C compiler, on some systems) CC (the system C++ compiler) f77 (the system FORTRAN compiler) gcc (the GNU C compiler) g++ (the GNU C++ compiler) g77 (the GNU FORTRAN compiler) ld (the system linker) NOTE: If you use explicitly call ``ld'' when you normally create your binary, simply use: condor_compile ld <ld arguments and options> instead. Exit Status condor_compileis a script that executes specified compilers and/or linkers. If an error is encountered before calling these other programs, condor_compilewill exit with a status value of 1 (one). Otherwise, the exit status will be that given by the executed program. Author Condor Team, University of Wisconsin-Madison Copyright Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved. Licensed under the Apache License, Version 2.0. See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu September 2012 condor_compile(1)
Check Out this Related Man Page
condor_run(1) General Commands Manual condor_run(1) Name condor_run Submit - a shell command-line as a Condor job Synopsis condor_run [-u universe] "shell command" Description condor_run bundles a shell command line into a Condor job and submits the job. The condor_run command waits for the Condor job to complete, writes the job's output to the terminal, and exits with the exit status of the Condor job. No output appears until the job completes. Enclose the shell command line in double quote marks, so it may be passed to condor_runwithout modification. condor_runwill not read input from the terminal while the job executes. If the shell command line requires input, redirect the input from a file, as illustrated by the example % condor_run "myprog < input.data" condor_runjobs rely on a shared file system for access to any necessary input files. The current working directory of the job must be accessible to the machine within the Condor pool where the job runs. Specialized environment variables may be used to specify requirements for the machine where the job may run. CONDOR_ARCH Specifies the architecture of the required platform. Values will be the same as the Arch machine ClassAd attribute. CONDOR_OPSYS Specifies the operating system of the required platform. Values will be the same as the OpSys machine ClassAd attribute. CONDOR_REQUIREMENTS Specifies any additional requirements for the Condor job. It is recommended that the value defined for CONDOR_REQUIREMENTS be enclosed in parenthesis. When one or more of these environment variables is specified, the job is submitted with: Requirements = $CONDOR_REQUIREMENTS && Arch == $CONDOR_ARCH && OpSys == $CONDOR_OPSYS Without these environment variables, the job receives the default requirements expression, which requests a machine of the same platform as the machine on which condor_runis executed. All environment variables set when condor_runis executed will be included in the environment of the Condor job. condor_runremoves the Condor job from the queue and deletes its temporary files, if condor_runis killed before the Condor job completes. Options -u universe Submit the job under the specified universe. The default is vanilla. While any universe may be specified, only the vanilla, standard, scheduler, and local universes result in a submit description file that may work properly. Examples condor_runmay be used to compile an executable on a different platform. As an example, first set the environment variables for the required platform: % setenv CONDOR_ARCH "SUN4u" % setenv CONDOR_OPSYS "SOLARIS28" Then, use condor_runto submit the compilation as in the following three examples. % condor_run "f77 -O -o myprog myprog.f" or % condor_run "make" or % condor_run "condor_compile cc -o myprog.condor myprog.c" Files condor_runcreates the following temporary files in the user's working directory. The placeholder <pid> is replaced by the process id of condor_run. .condor_run .<pid> A shell script containing the shell command line. .condor_submit.<pid> The submit description file for the job. .condor_log.<pid> The Condor job's log file; it is monitored by condor_run , to determine when the job exits. .condor_out.<pid> The output of the Condor job before it is output to the terminal. .condor_error.<pid> Any error messages for the Condor job before they are output to the terminal. condor_run removes these files when the job completes. However, if condor_run fails, it is possible that these files will remain in the user's working directory, and the Condor job may remain in the queue. General Remarks condor_runis intended for submitting simple shell command lines to Condor. It does not provide the full functionality of condor_submit. Therefore, some condor_submiterrors and system failures may not be handled correctly. All processes specified within the single shell command line will be executed on the single machine matched with the job. Condor will not distribute multiple processes of a command line pipe across multiple machines. condor_runwill use the shell specified in the SHELL environment variable, if one exists. Otherwise, it will use /bin/shto execute the shell command-line. By default, condor_runexpects Perl to be installed in /usr/bin/perl . If Perl is installed in another path, ask the Condor administrator to edit the path in the condor_runscript, or explicitly call Perl from the command line: % perl path-to-condor/bin/condor_run "shell-cmd" Exit Status condor_runexits with a status value of 0 (zero) upon complete success. The exit status of condor_runwill be non-zero upon failure. The exit status in the case of a single error due to a system call will be the error number ( errno ) of the failed call. Author Condor Team, University of Wisconsin-Madison Copyright Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved. Licensed under the Apache License, Version 2.0. See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu September 2012 condor_run(1)