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

Comparing configsdp.txt (file contents):
Revision 1.17 by arta, Mon Dec 3 21:45:07 2012 UTC vs.
Revision 1.46 by arta, Tue Feb 10 04:00:37 2015 UTC

# Line 1 | Line 1
1   # This file contains JSOC_SDP-specific configuration information. It is used only if the '-sdp' flag is used
2 < # as an argument to the check-out script (checkoutDRMS.pl).
2 > # as an argument to the check-out script (checkoutDRMS.pl). To change the configuration at Stanford, edit
3 > # this file directly, and commit those changes to the source-tree repository.
4  
5 < # The lines in the __MAKE__ section define JSOC_SDP-specific make variables, targets, and rules. When
6 < # configproj.pl is run, it will process this section and create JSOC/localization/make_basic.mk. These are
5 > # The lines in the __PROJ_MK_RULES__ section define JSOC_SDP-specific make variables, targets, and rules. When
6 > # localize.py is run, it will process this section and create JSOC/localization/make_basic.mk. These are
7   # available to all JSOC_SDP projects.
8  
9 < # The lines in the __PROJ__ section define JSOC_SDP projects. When configproj.pl runs, file content will be
9 > # The lines in the __PROJ__ section define JSOC_SDP projects. When localize.py runs, file content will be
10   # added to JSOC/localization/Rules.mk and JSOC/localization/target.mk.
11  
12 < # The lines in the __LIBS__ section define default JSOC_SDP-specific third-party library configuration information.
13 < # These values apply to all code in both JSOC/base and JSOC/proj directories. Entries in config.local will override
14 < # these values. This section is read by moreconfigure.pl only - configproj.pl does not look at this section.
12 > # The lines in the __PROJCFG__ section define additional project-specific configuration. The code in this
13 > # section must be in a shell-scripting language, and will be executed as is.
14 >
15 > # The lines in the __MAKE__ section define global make variables to configure the make process. A subset of
16 > # these variables defines the locations of JSOC_SDP-specific third-party libraries. These values apply to all code
17 > # in both JSOC/base and JSOC/proj directories.
18 >
19 > __DEFS__
20 > q:SERVER                        hmidb
21 > q:DRMSPGPORT                    5432
22 > q:SUMS_DB_HOST                  hmidb3
23 > q:SUMPGPORT                     5434
24 > a:DRMS_LOCAL_SITE_CODE          0x0000
25 > q:DBNAME                        jsoc
26 > q:WEB_DBUSER                    apache
27 > q:POSTGRES_ADMIN                postgres
28 > q:SUMS_MANAGER                  production
29 > q:SUMS_GROUP                    SOI
30 > q:SUMLOG_BASEDIR                /usr/local/logs/SUM
31 > q:SUMBIN_BASEDIR                /usr/local/bin
32 > q:SUMSERVER                     k1
33 > # The number of SUMS process SETS to spawn. If this number is not 1, then the number of SUMS processes
34 > # is SUM_NUMSUM * 5 + 2.
35 > a:SUM_NUMSUM                    3
36 > a:SUM_MAXNUMSUM                 8
37 > p:SUMS_TAPE_AVAILABLE           1
38 > p:SUMS_MULTIPLE_PARTNSETS       1
39 > # No idea what this parameter means. It isn't used anywhere in our code, but for some reason
40 > # it is part of the config.local set, so we have to include it here.
41 > a:SUMS_DEBUG                    1
42 > q:PRODUSER_DBHOST               hmidb:5432
43 > q:PRODUSER_DBNAME               jsoc
44 > q:PRODUSER_PRODTAB              su_production.produsers
45 > q:PRODUSER_COLUSER              username
46 > q:SUMRM_PART_PERCENT_FREE       3
47 > q:SUMRM_SLEEP                   300
48 > # This is a file in SUMLOG_BASEDIR.
49 > q:SUMRM_LOG                     sum_rm.cfg
50 > q:SUMRM_MAIL                    sys2@solar2
51 > q:SUMRM_NOOP                        0
52 > q:SUMRM_USER                        production
53 > q:SUMRM_NORUN_START                 0
54 > q:SUMRM_NORUN_STOP              0
55 > # JMD
56 > p:JMD_IS_INSTALLED              0
57 > q:JMD_URL                       http://localhost:8080/JMD/JMD
58 > # Remote SUMS
59 > q:RS_SITE_TABLE                         drms.rs_sites
60 > q:RS_REQUEST_TABLE                      drms.rs_requests
61 > q:RS_SU_TABLE                           drms.rs_sus
62 > q:RS_DBNAME                             jsoc
63 > q:RS_DBHOST                             hmidb
64 > a:RS_DBPORT                             5432
65 > q:RS_DBUSER                             production
66 > q:RS_LOCKFILE                           /home/jsoc/locks/remotesums.lck
67 > q:RS_LOGDIR                             /home/jsoc/jsoclogs/rsums
68 > a:RS_DLTIMEOUT                          30
69 > a:RS_REQTIMEOUT                          5
70 > a:RS_MAXTHREADS                         32
71 > q:RS_BINPATH                            /home/jsoc/cvs/Development/JSOC/bin/linux_x86_64
72 > # White-list (access to internal stuff)
73 > a:WL_HASWL                              1
74 > q:WL_FILE                               /web/jsoc/htdocs/whitelist.txt
75 > # Bin paths
76 > q:BIN_EXPORT                            /home/jsoc/cvs/Development/JSOC/bin
77 > q:BIN_PY                                /home/jsoc/bin/linux_x86_64/activepython27
78 >
79  
80   __MAKE__
81 + # JSOC_SDP third-party libraries used by base
82 + # The parameters in this section are used to create make variables. For example, the line
83 + # 'POSTGRES_LIB = pq' will cause a make variable named POSTGRES_LIB to be created and to
84 + # be assigned the value 'pq'.
85 +
86 + # If the name in the left column contains a colon, then the name on the LHS is the parameter name. The RHS is
87 + # a description of which platforms or specific machines the parameter applies to. For example,
88 + # the name POSTGRES_INCS:X86_64 implies that the value of the parameter named POSTGRES_INCS is /usr/include
89 + # when make is run on a linux_x86_64 machine. The RHS string can contain either a platform identifier
90 + # (X86_64, IA32, AVX, or IA64) or it can be a string that identifies a particular machine, like d02.
91 + # If the string is not one of the defined platform identifiers, then it is considered a machine identifier.
92 + # A machine identifier can specify more than one machine. The name POSTGRES_INCS:hmidb specifies
93 + # all machines whose names contain the string 'hmidb'. So, for machines hmidb, hmidb2, and hmidb3, the
94 + # value of the POSTGRES_INCS parameter is /usr/local/pgsql/include.
95 + #
96 + # If the RHS is a platform identifier, then make compares the value of $JSOC_MACHINE (which is in
97 + # reality a misnomer, since it truly specifies the name of the machine platform, not the name
98 + # of the machine) to the platform name specified by the RHS string. For example,
99 + # if the RHS string is 'avx', then make compares $JSOC_MACHINE to
100 + # 'linux_avx', and if there is a match, then the parameter's value specified in the second column is assigned
101 + # to the make variable. If the RHS is a machine identifier, then make compares the value of $MACHTYPE
102 + # (another misnormer, since it is the name of the machine, not the name of some type of machine ) to
103 + # the machine names specified by the RHS. For example, if the RHS string is 'hmidb' then make
104 + # compares $MACHTYPE to 'hmidb', and if 'hmidb' is a substring of $MACHTYPE, then the parameter's
105 + # value specified in the second column is assigned to the make variable
106 + #
107 + # Blocks defined by the _CUST_/_ENDCUST_ tags are copied ver batim into the output make file.
108 +
109 + POSTGRES_LIB            pq
110 + CFITSIO_LIB             cfitsio
111 +
112 + POSTGRES_INCS:X86_64    /usr/include
113 + POSTGRES_INCS:IA32      /usr/include
114 + POSTGRES_INCS:AVX       /usr/include
115 + POSTGRES_INCS:IA64      /usr/include/pgsql
116 + POSTGRES_INCS:j1       /usr/include/pgsql
117 + POSTGRES_INCS:d02      /usr/include/pgsql
118 + POSTGRES_INCS:hmidb    /usr/local/pgsql/include
119 + POSTGRES_INCS:cl1n0    __POSTGRES_DEVELOP_NOT_INSTALLED__
120 + POSTGRES_INCS:dcs      /usr/include/pgsql
121 +
122 + POSTGRES_LIBS:X86_64    /usr/lib64
123 + POSTGRES_LIBS:IA32      /usr/lib
124 + POSTGRES_LIBS:AVX       /usr/lib64
125 + POSTGRES_LIBS:IA64      /usr/lib
126 + POSTGRES_LIBS:j1       /usr/lib64
127 + POSTGRES_LIBS:d02      /usr/lib
128 + POSTGRES_LIBS:hmidb    /usr/lib64
129 + POSTGRES_LIBS:cl1n0    /usr/lib64
130 + POSTGRES_LIBS:dcs      /usr/lib64
131 +
132 + CFITSIO_INCS:X86_64     /home/jsoc/include
133 + CFITSIO_INCS:IA32       /home/jsoc/include
134 + CFITSIO_INCS:AVX        /home/jsoc/avx/include
135 + CFITSIO_INCS:IA64       /home/jsoc/include
136 + CFITSIO_INCS:j1         /home/jsoc/include
137 + CFITSIO_INCS:d02        __CFITSIO_NOT_INSTALLED__
138 + CFITSIO_INCS:hmidb      /home/jsoc/include
139 + CFITSIO_INCS:cl1n0      /home/jsoc/include
140 + CFITSIO_INCS:dcs        /home/jsoc/include
141 +
142 + CFITSIO_LIBS:X86_64     /home/jsoc/lib/linux-x86_64
143 + CFITSIO_LIBS:IA32       /home/jsoc/lib/linux-ia32
144 + CFITSIO_LIBS:AVX        /home/jsoc/avx/lib
145 + CFITSIO_LIBS:IA64       /home/jsoc/lib/linux-ia64
146 + CFITSIO_LIBS:j1         /home/jsoc/lib/linux-x86_64
147 + CFITSIO_LIBS:d02        __CFITSIO_NOT_INSTALLED__
148 + CFITSIO_LIBS:hmidb      /home/jsoc/lib/linux-x86_64
149 + CFITSIO_LIBS:cl1n0      /home/jsoc/lib/linux-x86_64
150 + CFITSIO_LIBS:dcs        /home/jsoc/lib/linux-x86_64
151 +
152 + FFTW_INCS:X86_64        /home/jsoc/include
153 + FFTW_INCS:IA32          /home/jsoc/include
154 + FFTW_INCS:AVX           /home/jsoc/avx/include
155 + FFTW_INCS:IA64          /home/jsoc/include
156 +
157 + FFTW_LIBS:X86_64        /home/jsoc/lib/linux-x86_64
158 + FFTW_LIBS:IA32          /home/jsoc/lib/linux-ia32
159 + FFTW_LIBS:AVX           /home/jsoc/avx/lib
160 + FFTW_LIBS:IA64          /home/jsoc/lib/linux-x86_64
161 +
162 + GSL_INCS:X86_64         /home/jsoc/include
163 + GSL_INCS:IA32           /home/jsoc/include
164 + GSL_INCS:AVX            /home/jsoc/avx/include
165 + GSL_INCS:IA64           /home/jsoc/include
166 +
167 + GSL_LIBS:X86_64         /home/jsoc/lib/linux-x86_64
168 + GSL_LIBS:IA32           /home/jsoc/lib/linux-ia32
169 + GSL_LIBS:AVX            /home/jsoc/avx/lib
170 + GSL_LIBS:IA64           /home/jsoc/lib/linux-x86_64
171 +
172 + MPI_INCS:X86_64         /home/jsoc/mpich2/include
173 + MPI_INCS:IA32          
174 + MPI_INCS:AVX            /home/jsoc/avx/include
175 + MPI_INCS:IA64          
176 +
177 + MPI_LIBS:X86_64         /home/jsoc/mpich2/lib
178 + MPI_LIBS:AVX            /home/jsoc/avx/lib
179 +
180 + MPI_PATH:X86_64         /home/jsoc/mpich2/bin
181 + MPI_PATH:AVX            /home/jsoc/avx/bin
182 +
183 + TAR_INCS:X86_64         /home/jsoc/include
184 + TAR_INCS:IA32           /home/jsoc/include
185 + TAR_INCS:AVX            /home/jsoc/avx/include
186 + TAR_INCS:IA64           /home/jsoc/include
187 +
188 + TAR_LIBS:X86_64         /home/jsoc/lib/linux-x86_64
189 + TAR_LIBS:IA32           /home/jsoc/lib/linux-ia32
190 + TAR_LIBS:AVX            /home/jsoc/lib/linux_avx
191 + TAR_LIBS:IA64           /home/jsoc/lib/linux-ia64
192 +
193 + # Set custom make file to tell the make system that the gcc cfitsio library is called
194 + # libcfitsio_gcc.a
195 + _CUST_
196 + ifeq ($(COMPILER), gcc)
197 +    ifeq ($(JSOC_MACHINE), linux_x86_64)
198 +    CFITSIO_LIB = cfitsio_gcc
199 +    endif
200 + endif
201 + _ENDCUST_
202 +
203 + __PROJ_MK_RULES__
204   $(CEXESUMS):                    $(LIBSUMSAPI) $(LIBSUM) $(LIBDSTRUCT)
205   $(MODEXESUMS):                  $(LIBSUMSAPI) $(LIBSUM)
206  
207   $(MODEXEDROBJ):                 CF_TGT := $(CF_TGT) -I$(SRCDIR)/proj/libs/dr
208   $(MODEXEDR) $(MODEXEDR_SOCK):   $(LIBDR)
21 CUSTOMSW := $(CUSTOMSW) -DTRACKSHADOWS
22 __END__
209   __PROJ__
210   <?xml version='1.0'?>
211   <projects>
# Line 62 | Line 248 | __PROJ__
248          </filters>
249     </proj>
250     <proj>
251 +        <name>mhd_32daily</name>
252 +        <subdirs>
253 +                <subdir>apps</subdir>
254 +        </subdirs>
255 +   </proj>
256 +   <proj>
257 +        <name>mhd_64cr</name>
258 +        <subdirs>
259 +                <subdir>apps</subdir>
260 +        </subdirs>
261 +   </proj>
262 +   <proj>
263          <name>util</name>
264          <subdirs>
265               <subdir>apps</subdir>    
# Line 107 | Line 305 | __PROJ__
305     <proj>
306          <name>globalhs</name>
307          <subdirs>
308 <            <subdir>apps/src</subdir>
308 >            <subdir>apps</subdir>
309 >            <subdir>libs/dtgf</subdir>
310 >            <subdir>libs/inv2d</subdir>
311 >            <subdir>libs/pkbgn</subdir>
312 >            <subdir>libs/projection</subdir>
313          </subdirs>
314          <filters>
315               <filter>
# Line 148 | Line 350 | __PROJ__
350          <subdirs>
351               <subdir>apps</subdir>
352          </subdirs>
353 +        <filters>
354 +             <filter>
355 +                  <name>COMPILER</name>
356 +                  <value>icc</value>
357 +             </filter>
358 +       </filters>
359     </proj>
360    <proj>
361          <name>farside</name>
# Line 196 | Line 404 | __PROJ__
404          <subdirs>
405              <subdir>apps</subdir>
406          </subdirs>
407 +        <filters>
408 +             <filter>
409 +                  <name>COMPILER</name>
410 +                  <value>icc</value>
411 +             </filter>
412 +       </filters>
413     </proj>
414     <proj>
415          <name>vfisv</name>
# Line 209 | Line 423 | __PROJ__
423              <subdir>apps</subdir>
424          </subdirs>
425     </proj>
426 +   <proj>
427 +        <name>cgem</name>
428 +        <subdirs>
429 +             <subdir>apps</subdir>
430 +             <subdir>lorentz/apps</subdir>
431 +        </subdirs>
432 +        <filters>
433 +             <filter>
434 +                  <name>COMPILER</name>
435 +                  <value>icc</value>
436 +             </filter>
437 +       </filters>
438 +   </proj>
439   </projects>
213 __END__
440   __PROJCFG__
441   #! /bin/csh -f
442  
443 < # Project-specific configuration (like adding links to scripts to the $JSOCROOT/scripts
218 < # directory).
219 <
220 < 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" \;
221 < __END__
222 < __LIBS__
223 < # JSOC_SDP third-party libraries used by base
224 <    POSTGRES_LIB = pq
225 <    CFITSIO_LIB = cfitsio
226 <
227 <    ifeq ($(JSOC_MACHINE), linux_avx)
228 <      POSTGRES_INCS = /usr/include
229 <      POSTGRES_LIBS = /usr/lib64
230 <      CFITSIO_INCS = /home/jsoc/avx/include
231 <      CFITSIO_LIBS = /home/jsoc/avx/lib
232 <    endif
233 <
234 <    ifeq ($(JSOC_MACHINE), linux_x86_64)
235 <      POSTGRES_INCS = /usr/include
236 <      POSTGRES_LIBS = /usr/lib64
237 <      CFITSIO_INCS = /home/jsoc/include
238 <      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
239 <    endif
240 <
241 <    ifeq ($(JSOC_MACHINE), linux_ia32)
242 <      POSTGRES_INCS = /usr/include
243 <      POSTGRES_LIBS = /usr/lib
244 <      CFITSIO_INCS = /home/jsoc/include
245 <      CFITSIO_LIBS = /home/jsoc/lib/linux-ia32
246 <    endif
247 <
248 <    ifeq ($(JSOC_MACHINE), linux_ia64)
249 <      POSTGRES_INCS = /usr/include/pgsql
250 <      POSTGRES_LIBS = /usr/lib
251 <      CFITSIO_INCS = /home/jsoc/include
252 <      CFITSIO_LIBS = /home/jsoc/lib/linux-ia64
253 <    endif
254 <
255 < # JSOC_SDP third-party libraries used by the project directories
443 > set PERLBIN = ""
444  
445 <    ifeq ($(JSOC_MACHINE), linux_ia32)
446 <      FFTW_INCS = /home/jsoc/include
447 <      FFTW_LIBS = /home/jsoc/lib/linux-ia32
448 <      GSL_INCS = /home/jsoc/include
449 <      GSL_LIBS = /home/jsoc/lib/linux-ia32
262 <    endif
263 <    
264 <    ifeq ($(JSOC_MACHINE), linux_ia64)
265 <      FFTW_INCS = /home/jsoc/include
266 <      FFTW_LIBS = /home/jsoc/lib/linux-x86_64
267 <      GSL_INCS = /home/jsoc/include
268 <      GSL_LIBS = /home/jsoc/lib/linux-x86_64
269 <    endif
270 <
271 <    ifeq ($(JSOC_MACHINE), linux_x86_64)
272 <      FFTW_INCS = /home/jsoc/include
273 <      FFTW_LIBS = /home/jsoc/lib/linux-x86_64
274 <      GSL_INCS = /home/jsoc/include
275 <      GSL_LIBS = /home/jsoc/lib/linux-x86_64
276 <      MPI_INCS = /home/jsoc/mpich2/include
277 <      MPI_LIBS = /home/jsoc/mpich2/lib
278 <      MPI_PATH = /home/jsoc/mpich2/bin
279 <    endif
280 <
281 <    ifeq ($(JSOC_MACHINE), linux_avx)
282 <      FFTW_INCS = /home/jsoc/avx/include
283 <      FFTW_LIBS = /home/jsoc/avx/lib
284 <      GSL_INCS = /home/jsoc/avx/include
285 <      GSL_LIBS = /home/jsoc/avx/lib
286 <      MPI_INCS = /home/jsoc/avx/include
287 <      MPI_LIBS = /home/jsoc/avx/lib
288 <      MPI_PATH = /home/jsoc/avx/bin
289 <    endif
290 <
291 < # Try to specialize for non-default machines
292 <    ifeq ($(MACHTYPE), j1)
293 <      POSTGRES_INCS = /usr/include/pgsql
294 <      POSTGRES_LIBS = /usr/lib64
295 <      CFITSIO_INCS = /home/jsoc/include
296 <      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
297 <    endif
298 <
299 <    ifeq ($(MACHTYPE), d02)
300 <      POSTGRES_INCS = /usr/include/pgsql
301 <      POSTGRES_LIBS = /usr/lib
302 <      CFITSIO_INCS = __CFITSIO_NOT_INSTALLED__
303 <      CFITSIO_LIBS = __CFITSIO_NOT_INSTALLED__
304 <   endif
305 <
306 <    ifeq ($(MACHTYPE), dbserver)
307 <      POSTGRES_INCS = /usr/local/pgsql/include
308 <      POSTGRES_LIBS = /usr/lib64
309 <      CFITSIO_INCS = /home/jsoc/include
310 <      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
311 <    endif
312 <
313 <    ifeq ($(MACHTYPE), cluster)
314 <      POSTGRES_INCS = __POSTGRES_DEVELOP_NOT_INSTALLED__
315 <      POSTGRES_LIBS = /usr/lib64
316 <      CFITSIO_INCS = /home/jsoc/include
317 <      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
445 > if ($PERLBIN == "") then
446 >    if (-x /home/jsoc/bin/linux_x86_64/activeperl) then
447 >        set PERLBIN = "/home/jsoc/bin/linux_x86_64/activeperl"
448 >    else
449 >        set PERLBIN = "perl"
450      endif
451 + endif
452  
453 <    ifeq ($(MACHTYPE), dcs)
454 <      POSTGRES_INCS = /usr/include/pgsql
455 <      POSTGRES_LIBS = /usr/lib64
323 <      CFITSIO_INCS = /home/jsoc/include
324 <      CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64
325 <    endif
326 < # Set custom make file to tell the make system that the gcc cfitsio library is called
327 < # libcfitsio_gcc.a
328 <    ifeq ($(COMPILER), gcc)
329 <      ifeq ($(JSOC_MACHINE), linux_x86_64)
330 <        CFITSIO_LIB = cfitsio_gcc
331 <      endif
332 <    endif
333 < __END__
453 > # Project-specific configuration (like adding links to scripts to the $JSOCROOT/scripts
454 > # directory).
455 > find ../proj/lev0/scripts -mindepth 1 -path \*CVS -prune -o -print | ${PERLBIN} -MFile::Basename -n -e 'my($bn) = basename($_); chomp($bn); my($path) = $_; chomp($path); if (!(-e $bn)) { `ln -s $_`; if ($? >> 8 == 0) { print "   " . $path . " OK\n"; } else { print "   " . $path . " ERROR - could not create link\n"; } }'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines