ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/configsdp.txt
(Generate patch)

Comparing configsdp.txt (file contents):
Revision 1.19 by jim, Thu Mar 7 23:14:12 2013 UTC vs.
Revision 1.29 by kehcheng, Fri Mar 21 18:59:34 2014 UTC

# Line 1 | Line 1
1 + # ART - test2 CVS admin locking.
2 + # KEHCHENG - test3
3   # This file contains JSOC_SDP-specific configuration information. It is used only if the '-sdp' flag is used
4 < # as an argument to the check-out script (checkoutDRMS.pl).
4 > # as an argument to the check-out script (checkoutDRMS.pl). To change the configuration at Stanford, edit
5 > # this file directly, and commit those changes to the source-tree repository.
6  
7 < # The lines in the __MAKE__ section define JSOC_SDP-specific make variables, targets, and rules. When
8 < # configproj.pl is run, it will process this section and create JSOC/localization/make_basic.mk. These are
7 > # The lines in the __PROJ_MK_RULES__ section define JSOC_SDP-specific make variables, targets, and rules. When
8 > # localize.py is run, it will process this section and create JSOC/localization/make_basic.mk. These are
9   # available to all JSOC_SDP projects.
10  
11 < # The lines in the __PROJ__ section define JSOC_SDP projects. When configproj.pl runs, file content will be
11 > # The lines in the __PROJ__ section define JSOC_SDP projects. When localize.py runs, file content will be
12   # added to JSOC/localization/Rules.mk and JSOC/localization/target.mk.
13  
14 < # The lines in the __LIBS__ section define default JSOC_SDP-specific third-party library configuration information.
15 < # These values apply to all code in both JSOC/base and JSOC/proj directories. Entries in config.local will override
16 < # these values. This section is read by moreconfigure.pl only - configproj.pl does not look at this section.
14 > # The lines in the __PROJCFG__ section define additional project-specific configuration. The code in this
15 > # section must be in a shell-scripting language, and will be executed as is.
16 >
17 > # The lines in the __MAKE__ section define global make variables to configure the make process. A subset of
18 > # these variables defines the locations of JSOC_SDP-specific third-party libraries. These values apply to all code
19 > # in both JSOC/base and JSOC/proj directories.
20 >
21 > __DEFS__
22 > q:SERVER                        hmidb
23 > q:DRMSPGPORT                    5432
24 > q:SUMS_DB_HOST                  hmidb3
25 > q:SUMPGPORT                     5434
26 > a:DRMS_LOCAL_SITE_CODE          0x0000
27 > q:DBNAME                        jsoc
28 >
29 > q:POSTGRES_ADMIN                postgres
30 > q:SUMS_MANAGER                  production
31 > # This seems like a bad idea to make the UID a parameter. Why not just convert the SUM_MANAGER value
32 > # to a UID when needed? If the UID of the SUM_MANAGER changes, we have to change the UID here.
33 > q:SUMS_MANAGER_UID              388
34 > q:SUMS_GROUP                    SOI
35 > q:SUMLOG_BASEDIR                /usr/local/logs/SUM
36 > q:SUMBIN_BASEDIR                /usr/local/bin
37 > q:SUMSERVER                     k1
38 > # The number of SUMS process SETS to spawn. If this number is not 1, then the number of SUMS processes
39 > # is SUM_NUMSUM * 5 + 2.
40 > a:SUM_NUMSUM                    3
41 > a:SUM_MAXNUMSUM                 8
42 > p:SUMS_TAPE_AVAILABLE           1
43 > p:SUMS_MULTIPLE_PARTNSETS       1
44 > # No idea what this parameter means. It isn't used anywhere in our code, but for some reason
45 > # it is part of the config.local set, so we have to include it here.
46 > a:SUMS_DEBUG                    1
47 > q:PRODUSER_DBHOST               hmidb:5432
48 > q:PRODUSER_DBNAME               jsoc
49 > q:PRODUSER_PRODTAB              su_production.produsers
50 > q:PRODUSER_COLUSER              username
51 > q:SUMRM_PART_PERCENT_FREE       3
52 > q:SUMRM_SLEEP                   300
53 > # This is a file in SUMLOG_BASEDIR.
54 > q:SUMRM_LOG                     sum_rm.cfg
55 > q:SUMRM_MAIL                    sys2@solar2
56 > q:SUMRM_NOOP                        0
57 > q:SUMRM_USER                        production
58 > q:SUMRM_NORUN_START                 0
59 > q:SUMRM_NORUN_STOP              0
60  
61   __MAKE__
62 + # JSOC_SDP third-party libraries used by base
63 + # The parameters in this section are used to create make variables. For example, the line
64 + # 'POSTGRES_LIB = pq' will cause a make variable named POSTGRES_LIB to be created and to
65 + # be assigned the value 'pq'.
66 +
67 + # If the name in the left column contains a colon, then the name on the LHS is the parameter name. The RHS is
68 + # a description of which platforms or specific machines the parameter applies to. For example,
69 + # the name POSTGRES_INCS:X86_64 implies that the value of the parameter named POSTGRES_INCS is /usr/include
70 + # when make is run on a linux_x86_64 machine. The RHS string can contain either a platform identifier
71 + # (X86_64, IA32, AVX, or IA64) or it can be a string that identifies a particular machine, like d02.
72 + # If the string is not one of the defined platform identifiers, then it is considered a machine identifier.
73 + # A machine identifier can specify more than one machine. The name POSTGRES_INCS:hmidb specifies
74 + # all machines whose names contain the string 'hmidb'. So, for machines hmidb, hmidb2, and hmidb3, the
75 + # value of the POSTGRES_INCS parameter is /usr/local/pgsql/include.
76 + #
77 + # If the RHS is a platform identifier, then make compares the value of $JSOC_MACHINE (which is in
78 + # reality a misnomer, since it truly specifies the name of the machine platform, not the name
79 + # of the machine) to the platform name specified by the RHS string. For example,
80 + # if the RHS string is 'avx', then make compares $JSOC_MACHINE to
81 + # 'linux_avx', and if there is a match, then the parameter's value specified in the second column is assigned
82 + # to the make variable. If the RHS is a machine identifier, then make compares the value of $MACHTYPE
83 + # (another misnormer, since it is the name of the machine, not the name of some type of machine ) to
84 + # the machine names specified by the RHS. For example, if the RHS string is 'hmidb' then make
85 + # compares $MACHTYPE to 'hmidb', and if 'hmidb' is a substring of $MACHTYPE, then the parameter's
86 + # value specified in the second column is assigned to the make variable
87 + #
88 + # Blocks defined by the _CUST_/_ENDCUST_ tags are copied ver batim into the output make file.
89 +
90 + POSTGRES_LIB            pq
91 + CFITSIO_LIB             cfitsio
92 +
93 + POSTGRES_INCS:X86_64    /usr/include
94 + POSTGRES_INCS:IA32      /usr/include
95 + POSTGRES_INCS:AVX       /usr/include
96 + POSTGRES_INCS:IA64      /usr/include/pgsql
97 + POSTGRES_INCS:j1       /usr/include/pgsql
98 + POSTGRES_INCS:d02      /usr/include/pgsql
99 + POSTGRES_INCS:hmidb    /usr/local/pgsql/include
100 + POSTGRES_INCS:cl1n0    __POSTGRES_DEVELOP_NOT_INSTALLED__
101 + POSTGRES_INCS:dcs      /usr/include/pgsql
102 +
103 + POSTGRES_LIBS:X86_64    /usr/lib64
104 + POSTGRES_LIBS:IA32      /usr/lib
105 + POSTGRES_LIBS:AVX       /usr/lib64
106 + POSTGRES_LIBS:IA64      /usr/lib
107 + POSTGRES_LIBS:j1       /usr/lib64
108 + POSTGRES_LIBS:d02      /usr/lib
109 + POSTGRES_LIBS:hmidb    /usr/lib64
110 + POSTGRES_LIBS:cl1n0    /usr/lib64
111 + POSTGRES_LIBS:dcs      /usr/lib64
112 +
113 + CFITSIO_INCS:X86_64     /home/jsoc/include
114 + CFITSIO_INCS:IA32       /home/jsoc/include
115 + CFITSIO_INCS:AVX        /home/jsoc/avx/include
116 + CFITSIO_INCS:IA64       /home/jsoc/include
117 + CFITSIO_INCS:j1         /home/jsoc/include
118 + CFITSIO_INCS:d02        __CFITSIO_NOT_INSTALLED__
119 + CFITSIO_INCS:hmidb      /home/jsoc/include
120 + CFITSIO_INCS:cl1n0      /home/jsoc/include
121 + CFITSIO_INCS:dcs        /home/jsoc/include
122 +
123 + CFITSIO_LIBS:X86_64     /home/jsoc/lib/linux-x86_64
124 + CFITSIO_LIBS:IA32       /home/jsoc/lib/linux-ia32
125 + CFITSIO_LIBS:AVX        /home/jsoc/avx/lib
126 + CFITSIO_LIBS:IA64       /home/jsoc/lib/linux-ia64
127 + CFITSIO_LIBS:j1         /home/jsoc/lib/linux-x86_64
128 + CFITSIO_LIBS:d02        __CFITSIO_NOT_INSTALLED__
129 + CFITSIO_LIBS:hmidb      /home/jsoc/lib/linux-x86_64
130 + CFITSIO_LIBS:cl1n0      /home/jsoc/lib/linux-x86_64
131 + CFITSIO_LIBS:dcs        /home/jsoc/lib/linux-x86_64
132 +
133 + FFTW_INCS:X86_64        /home/jsoc/include
134 + FFTW_INCS:IA32          /home/jsoc/include
135 + FFTW_INCS:AVX           /home/jsoc/avx/include
136 + FFTW_INCS:IA64          /home/jsoc/include
137 +
138 + FFTW_LIBS:X86_64        /home/jsoc/lib/linux-x86_64
139 + FFTW_LIBS:IA32          /home/jsoc/lib/linux-ia32
140 + FFTW_LIBS:AVX           /home/jsoc/avx/lib
141 + FFTW_LIBS:IA64          /home/jsoc/lib/linux-x86_64
142 +
143 + GSL_INCS:X86_64         /home/jsoc/include
144 + GSL_INCS:IA32           /home/jsoc/include
145 + GSL_INCS:AVX            /home/jsoc/avx/include
146 + GSL_INCS:IA64           /home/jsoc/include
147 +
148 + GSL_LIBS:X86_64         /home/jsoc/lib/linux-x86_64
149 + GSL_LIBS:IA32           /home/jsoc/lib/linux-ia32
150 + GSL_LIBS:AVX            /home/jsoc/avx/lib
151 + GSL_LIBS:IA64           /home/jsoc/lib/linux-x86_64
152 +
153 + MPI_INCS:X86_64         /home/jsoc/mpich2/include
154 + MPI_INCS:IA32          
155 + MPI_INCS:AVX            /home/jsoc/avx/include
156 + MPI_INCS:IA64          
157 +
158 + MPI_LIBS:X86_64         /home/jsoc/mpich2/lib
159 + MPI_LIBS:AVX            /home/jsoc/avx/lib
160 +
161 + MPI_PATH:X86_64         /home/jsoc/mpich2/bin
162 + MPI_PATH:AVX            /home/jsoc/avx/bin
163 +
164 + # Set custom make file to tell the make system that the gcc cfitsio library is called
165 + # libcfitsio_gcc.a
166 + _CUST_
167 + ifeq ($(COMPILER), gcc)
168 +    ifeq ($(JSOC_MACHINE), linux_x86_64)
169 +    CFITSIO_LIB = cfitsio_gcc
170 +    endif
171 + endif
172 + _ENDCUST_
173 +
174 + __PROJ_MK_RULES__
175   $(CEXESUMS):                    $(LIBSUMSAPI) $(LIBSUM) $(LIBDSTRUCT)
176   $(MODEXESUMS):                  $(LIBSUMSAPI) $(LIBSUM)
177  
178   $(MODEXEDROBJ):                 CF_TGT := $(CF_TGT) -I$(SRCDIR)/proj/libs/dr
179   $(MODEXEDR) $(MODEXEDR_SOCK):   $(LIBDR)
21 __END__
180   __PROJ__
181   <?xml version='1.0'?>
182   <projects>
# Line 61 | Line 219 | __PROJ__
219          </filters>
220     </proj>
221     <proj>
222 +        <name>mhd_64cr</name>
223 +        <subdirs>
224 +                <subdir>apps</subdir>
225 +        </subdirs>
226 +   </proj>
227 +   <proj>
228          <name>util</name>
229          <subdirs>
230               <subdir>apps</subdir>    
# Line 106 | Line 270 | __PROJ__
270     <proj>
271          <name>globalhs</name>
272          <subdirs>
273 <            <subdir>apps/src</subdir>
273 >            <subdir>apps</subdir>
274 >            <subdir>libs/dtgf</subdir>
275 >            <subdir>libs/pkbgn</subdir>
276 >            <subdir>libs/projection</subdir>
277          </subdirs>
278          <filters>
279               <filter>
# Line 220 | Line 387 | __PROJ__
387              <subdir>apps</subdir>
388          </subdirs>
389     </proj>
390 +   <proj>
391 +        <name>cgem</name>
392 +        <subdirs>
393 +             <subdir>apps</subdir>
394 +             <subdir>lorentz/apps</subdir>
395 +        </subdirs>
396 +        <filters>
397 +             <filter>
398 +                  <name>COMPILER</name>
399 +                  <value>icc</value>
400 +             </filter>
401 +       </filters>
402 +   </proj>
403   </projects>
224 __END__
404   __PROJCFG__
405   #! /bin/csh -f
406  
# Line 229 | Line 408 | __PROJCFG__
408   # directory).
409  
410   find ../proj/lev0/scripts -mindepth 1 \( -path \*CVS -prune -o -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \;
232 __END__
233 __LIBS__
234 # JSOC_SDP third-party libraries used by base
235    POSTGRES_LIB = pq
236    CFITSIO_LIB = cfitsio
411  
238    ifeq ($(JSOC_MACHINE), linux_avx)
239      POSTGRES_INCS = /usr/include
240      POSTGRES_LIBS = /usr/lib64
241      CFITSIO_INCS = /home/jsoc/avx/include
242      CFITSIO_LIBS = /home/jsoc/avx/lib
243    endif
244
245    ifeq ($(JSOC_MACHINE), linux_x86_64)
246      POSTGRES_INCS = /usr/include
247      POSTGRES_LIBS = /usr/lib64
248      CFITSIO_INCS = /home/jsoc/include
249      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
250    endif
251
252    ifeq ($(JSOC_MACHINE), linux_ia32)
253      POSTGRES_INCS = /usr/include
254      POSTGRES_LIBS = /usr/lib
255      CFITSIO_INCS = /home/jsoc/include
256      CFITSIO_LIBS = /home/jsoc/lib/linux-ia32
257    endif
258
259    ifeq ($(JSOC_MACHINE), linux_ia64)
260      POSTGRES_INCS = /usr/include/pgsql
261      POSTGRES_LIBS = /usr/lib
262      CFITSIO_INCS = /home/jsoc/include
263      CFITSIO_LIBS = /home/jsoc/lib/linux-ia64
264    endif
265
266 # JSOC_SDP third-party libraries used by the project directories
267
268    ifeq ($(JSOC_MACHINE), linux_ia32)
269      FFTW_INCS = /home/jsoc/include
270      FFTW_LIBS = /home/jsoc/lib/linux-ia32
271      GSL_INCS = /home/jsoc/include
272      GSL_LIBS = /home/jsoc/lib/linux-ia32
273    endif
274    
275    ifeq ($(JSOC_MACHINE), linux_ia64)
276      FFTW_INCS = /home/jsoc/include
277      FFTW_LIBS = /home/jsoc/lib/linux-x86_64
278      GSL_INCS = /home/jsoc/include
279      GSL_LIBS = /home/jsoc/lib/linux-x86_64
280    endif
281
282    ifeq ($(JSOC_MACHINE), linux_x86_64)
283      FFTW_INCS = /home/jsoc/include
284      FFTW_LIBS = /home/jsoc/lib/linux-x86_64
285      GSL_INCS = /home/jsoc/include
286      GSL_LIBS = /home/jsoc/lib/linux-x86_64
287      MPI_INCS = /home/jsoc/mpich2/include
288      MPI_LIBS = /home/jsoc/mpich2/lib
289      MPI_PATH = /home/jsoc/mpich2/bin
290    endif
291
292    ifeq ($(JSOC_MACHINE), linux_avx)
293      FFTW_INCS = /home/jsoc/avx/include
294      FFTW_LIBS = /home/jsoc/avx/lib
295      GSL_INCS = /home/jsoc/avx/include
296      GSL_LIBS = /home/jsoc/avx/lib
297      MPI_INCS = /home/jsoc/avx/include
298      MPI_LIBS = /home/jsoc/avx/lib
299      MPI_PATH = /home/jsoc/avx/bin
300    endif
301
302 # Try to specialize for non-default machines
303    ifeq ($(MACHTYPE), j1)
304      POSTGRES_INCS = /usr/include/pgsql
305      POSTGRES_LIBS = /usr/lib64
306      CFITSIO_INCS = /home/jsoc/include
307      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
308    endif
309
310    ifeq ($(MACHTYPE), d02)
311      POSTGRES_INCS = /usr/include/pgsql
312      POSTGRES_LIBS = /usr/lib
313      CFITSIO_INCS = __CFITSIO_NOT_INSTALLED__
314      CFITSIO_LIBS = __CFITSIO_NOT_INSTALLED__
315   endif
316
317    ifeq ($(MACHTYPE), dbserver)
318      POSTGRES_INCS = /usr/local/pgsql/include
319      POSTGRES_LIBS = /usr/lib64
320      CFITSIO_INCS = /home/jsoc/include
321      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
322    endif
323
324    ifeq ($(MACHTYPE), cluster)
325      POSTGRES_INCS = __POSTGRES_DEVELOP_NOT_INSTALLED__
326      POSTGRES_LIBS = /usr/lib64
327      CFITSIO_INCS = /home/jsoc/include
328      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
329    endif
330
331    ifeq ($(MACHTYPE), dcs)
332      POSTGRES_INCS = /usr/include/pgsql
333      POSTGRES_LIBS = /usr/lib64
334      CFITSIO_INCS = /home/jsoc/include
335      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
336    endif
337 # Set custom make file to tell the make system that the gcc cfitsio library is called
338 # libcfitsio_gcc.a
339    ifeq ($(COMPILER), gcc)
340      ifeq ($(JSOC_MACHINE), linux_x86_64)
341        CFITSIO_LIB = cfitsio_gcc
342      endif
343    endif
344 __END__

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines