2
.\"___INFO__MARK_BEGIN__
4
.\" Copyright: 2004 by Sun Microsystems, Inc.
8
.\" $RCSfile$ Last Update: $Date$ Revision: $Revision$
11
.\" Some handy macro definitions [from Tom Christensen's man(1) manual page].
13
.de SB \" small and bold
14
.if !"\\$1"" \\s-2\\fB\&\\$1\\s0\\fR\\$2 \\$3 \\$4 \\$5
17
.de T \" switch to typewriter font
18
.ft CW \" probably want CW if you don't have TA font
21
.de TY \" put $1 in typewriter font
30
.de M \" man page reference
31
\\fI\\$1\\fR\\|(\\$2)\\$3
33
.TH QMAKE 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
35
qmake \- distributed parallel make, scheduling by xxQS_NAMExx.
47
is a parallel, distributed
49
utility. Scheduling of the parallel
51
tasks is done by xxQS_NAMExx. It is based on
53
(GNU make), version 3.78.1. Both xxQS_NAMExx and
55
command line options can be specified. They are separated by "--".
57
All xxQS_NAMExx options valid with
65
for a description of all xxQS_NAMExx command line options.
68
manual page describes the
74
makefiles corresponds to
76
and is described in the "GNU Make Manual".
78
A typical qmake call will use the xxQS_NAMExx command line options
79
-cwd to have a scheduled make started in the current working directory on
80
the execution host, -v PATH if the xxQS_NAMExx environment is not setup
81
in the users .cshrc or .profile shell resource file and request slots in a
82
parallel environment (see
86
If no resource request (xxQS_NAMExx command line option -l) is specified,
87
qmake will use the environment variable SGE_ARCH to request the same architecture
88
for task execution as has the submit host.
89
If SGE_ARCH is set, the architecture specified in SGE_ARCH will be requested by
90
inserting the option -l arch=$SGE_ARCH into the command line options.
91
If SGE_ARCH is not set, the make tasks can be executed on any available architecture.
92
As this is critical for typical make (compile) jobs, a warning will be output.
95
has two different modes for allocating xxQS_NAMExx resources for the parallel
98
1. Allocation of resources using a parallel environment. If the -pe option is
99
used on the qmake command line, a parallel job is scheduled by xxQS_NAMExx.
100
The make rules are executed as tasks within this parallel job.
102
2. Dynamic allocation of resources. If no parallel environment is requested
103
when submitting a qmake job, each make rule will generate an individual
104
xxQS_NAMExx qrsh job.
105
All resource requests given to qmake will be inherited by the jobs processing
108
In dynamic allocation mode, additional resource requests for individual rules
109
can be specified by preceding the rule by the definition of an environment
110
variable SGE_RREQ. The rule then takes the form
111
SGE_RREQ="<request>" <rule>, e.g.
112
SGE_RREQ="-l lic=1" cc -c ...
113
If such makefile rules are executed in a make utility other than qmake, the environment variable SGE_RREQ will be set in the environment established for the rule's execution - without any effect.
118
qmake -cwd -v PATH -pe compiling 1-10 --
122
will request between 1 and 10 slots in parallel environment "compiling".
123
If the SGE_ARCH environment variable is set to the machines architecture, a
124
resource request will be inserted into the qmake command line to start the
125
qmake job on the same architecture as the submit host. The
128
inherit the complete environment of the calling shell. It will execute
129
as many parallel tasks as slots have been granted by xxQS_NAMExx.
133
qmake -l arch=sol-sparc -cwd -v PATH -- -j 4
137
will submit each make rule as an individual qrsh job. A maximum of 4 tasks will be processed in parallel.
138
The qmake job will be started on a machine of architecture sol-sparc, this
139
resource request will also be inherited by the make tasks, i.e. all jobs
140
created for the execution of make tasks will request the architecture sol-sparc.
142
If the following Makefile is submitted with the above command line, additional
143
resource requests will be made for individual rules:
144
For the compile and link rules, compiler licenses (comp) and linker licenses (link) will be requested, in
145
addition to the resource request made for the whole job (-l arch=sol-sparc) on the command line.
152
rm -f test main.o functions.o
154
test: main.o functions.o
155
SGE_RREQ="-l link=1" ld -o test main.o functions.o
158
SGE_RREQ="-l comp=1" cc -c -DALIASPATH=\"/usr/local/share/locale:.\" -o main.o main.c
160
functions.o: functions.c
161
SGE_RREQ="-l comp=1" cc -c -DALIASPATH=\"/usr/local/share/locale:.\" -o functions.o functions.c
168
qmake -cwd -v PATH -l arch=sol-sparc64 -pe make 3 --
172
will request 3 parallel
174
tasks to be executed on hosts of
175
architecture "sol-sparc64". The submit may be done on a host of any
191
qsub -cwd -v PATH -pe make 1-10 [further xxqs_name_sxx options] <script>
196
will inherit the resources granted for the job submitted above under
197
parallel environment "make".
200
.SH "ENVIRONMENTAL VARIABLES"
202
.IP "\fBxxQS_NAME_Sxx_ROOT\fP" 1.5i
203
Specifies the location of the xxQS_NAMExx standard configuration
206
.IP "\fBxxQS_NAME_Sxx_CELL\fP" 1.5i
207
If set, specifies the default xxQS_NAMExx cell. To address a xxQS_NAMExx
210
uses (in the order of precedence):
214
The name of the cell specified in the environment
215
variable xxQS_NAME_Sxx_CELL, if it is set.
217
The name of the default cell, i.e. \fBdefault\fP.
222
.IP "\fBxxQS_NAME_Sxx_DEBUG_LEVEL\fP" 1.5i
223
If set, specifies that debug information
224
should be written to stderr. In addition the level of
225
detail in which debug information is generated is defined.
227
.IP "\fBSGE_ARCH\fP" 1.5i
228
The architecture of the submit host. If this variable is set in
229
the submission environment, qmake
230
will request the given architecture for job execution (see DESCRIPTION above).
236
Very low file server performance may lead to problems on depending files.
238
Example: Host a compiles a.c to a.o, host b compiles b.c to b.o, host c
239
shall link program c from a.o and b.o. In case of very bad NFS
240
performance, host c might not yet see files a.o and b.o.
242
.SS Multiple commands in one rule
243
If multiple commands are executed in one rule, the makefile has to
244
ensure that they are handled as one command line.
258
Building libx.a will fail, if the commands are executed in parallel
259
(and possibly on different hosts). Write the following instead:
265
cd x ; ar ru libx.a x.o
289
(GNU make manpage) and
290
.I The GNU Make Manual
291
in <xxqs_name_sxx_root>/3rd_party/qmake.
296
contains portions of Gnu Make (\fIgmake\fP), which
297
is the copyright of the Free Software Foundation,
298
Inc., Boston, MA, and is protected by the Gnu General Public License.
301
.M xxqs_name_sxx_intro 1
302
and the information provided in <xxqs_name_sxx_root>/3rd_party/qmake
303
for a statement of further rights and permissions.