This repository has been archived by the owner on Aug 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile.sys
1278 lines (1051 loc) · 35.6 KB
/
makefile.sys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
########################################################################
#
# This file contains 'make' macros and definitions for a
# pre-defined set of system types that may be selected
# by the "SYS=..." value in the file 'makefile.setup'.
#
# The pre-defined system 'types' included in this file are:
#
# System type Description
# ----------- -----------
#
# linux LC Intel(itanium/xeon) linux systems
# using native Intel compilers.
# (THUNDER, MCR, ALC, ILX, ACE, QUEEN, LILAC...)
#
# linux.opteron LC Intel(64-bit opteron) linux systems
# using native Intel compilers.
# (YANA, ZEUS, RHEA, ATLAS, PRISM...)
#
# linux.pc Generic linux PC
#
# aix LC IBM aix systems using native compilers
# (ICE, BERG, PURPLE, UM, UP, UV...)
#
# bgl LC BlueGene/Light system using xl* compilers
# (BGL)
#
# bgl.gcc LC BlueGene/Light system using gcc compiler
# (BGL)
#
# ubgl LC BlueGene/Light system
# (UBGL)
#
# bgp LC BlueGene/P systems
# (DAWN, DAWNDEV)
#
# dec LC DEC systems using native compilers and MPI
#
# dec.mpich LC DEC systems using mpich
#
# titans LLNL parallel linux cluster
#
# mcr LC parallel linux cluster using intel copilers
# with floating-point exceptions enabled
# (MCR, PENGRA)
#
# mc-cc Stanford ME Linux system using intel compilers
#
# wcr Stanford ME Linux system using intel compilers
#
# cygwin Stanford Linux emulator for Windows PC
#
# franklin NERSC Cray XT4 system
#
# mac MacBook Pro
#
# gcc Linux systems using gnu compilers
########################################################
#
# System type: linux
#
# LC Intel(itanium/xeon) linux systems using native
# Intel compilers.
#
# Systems: thunder, mcr, alc, ilx, ace, queen,
# lilac, etc...
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.linux = mpiicc
CPP_PARALLEL.linux = mpiicpc
CCFLAG_PARALLEL.linux = -DPARALLEL=1
CPPFLAG_PARALLEL.linux =
CC_SERIAL.linux = icc
CPP_SERIAL.linux = icpc
CCFLAG_SERIAL.linux =
CPPFLAG_SERIAL.linux =
F90.linux = ifort
F90_OPTS.linux =
F90_LIB.linux = -lifcore
CC.linux = $(CC_$(MODE).linux)
CPP.linux = $(CPP_$(MODE).linux)
CCFLAG.linux = $(CCFLAG_$(MODE).linux)
CPPFLAG.linux = $(CPPFLAG_$(MODE).linux)
XLIB_LIBDIR.linux = /usr/X11R6/lib
XLIB_LIB.linux = -L$(XLIB_LIBDIR.linux) -lX11 -lpthread
XLIB_INCS.linux =
MPI_LIBDIR.linux =
MPI_LIB.linux = -lmpich
MPI_INCS.linux =
HDF_LIBDIR.linux = -Xlinker -rpath -Xlinker \
/usr/local/tools/hdf5-intel-serial/lib \
-L/usr/local/tools/hdf5-intel-serial/lib
HDF_LIB.linux = $(HDF_LIBDIR.linux) -lhdf5 -lhdf5_hl
HDF_INCS.linux = -I/usr/local/tools/hdf5-intel-serial/include
OPENMP_FLAG.linux = -openmp
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.linux = -lm
INCS_PARALLEL.linux =
LIB_SERIAL.linux = -lm
INCS_SERIAL.linux =
########################################################
#
# System type: linux.opteron
#
# LC Intel(opteron) linux systems using native
# Intel compilers.
#
# Systems: yana, zeus, rhea, atlas, prism, etc...
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
# Periodically compile with the following options just to
# see what needs to be cleaned up in the code:
# -Wmissing-prototypes
# -Wunused-variable
# -Wunused-function
# -Wuninitialized
#
CC_PARALLEL.linux.opteron = mpiicc
CPP_PARALLEL.linux.opteron = mpiicpc
CCFLAG_PARALLEL.linux.opteron = -DPARALLEL=1 -Wno-unknown-pragmas
CPPFLAG_PARALLEL.linux.opteron =
CC_SERIAL.linux.opteron = icc -Wno-unknown-pragmas
CPP_SERIAL.linux.opteron = icpc
CCFLAG_SERIAL.linux.opteron =
CPPFLAG_SERIAL.linux.opteron =
F90.linux.opteron = ifort
F90_OPTS.linux.opteron =
F90_LIB.linux.opteron = -lifcore
CC.linux.opteron = $(CC_$(MODE).linux.opteron)
CPP.linux.opteron = $(CPP_$(MODE).linux.opteron)
CCFLAG.linux.opteron = $(CCFLAG_$(MODE).linux.opteron)
CPPFLAG.linux.opteron = $(CPPFLAG_$(MODE).linux.opteron)
XLIB_LIBDIR.linux.opteron = /usr/X11R6/lib64
XLIB_LIB.linux.opteron = -L$(XLIB_LIBDIR.linux.opteron) -lX11 -lpthread
XLIB_INCS.linux.opteron =
MPI_LIBDIR.linux.opteron =
MPI_LIB.linux.opteron = -lmpich
MPI_INCS.linux.opteron =
HDF_LIBDIR.linux.opteron = -Xlinker -rpath -Xlinker \
/usr/local/tools/hdf5-intel-serial/lib \
-L/usr/local/tools/hdf5-intel-serial/lib
HDF_LIB.linux.opteron = $(HDF_LIBDIR.linux.opteron) -lhdf5 -lhdf5_hl
HDF_INCS.linux.opteron = -I/usr/local/tools/hdf5-intel-serial/include
OPENMP_FLAG.linux.opteron = -openmp
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.linux.opteron = -lm
INCS_PARALLEL.linux.opteron =
LIB_SERIAL.linux.opteron = -lm
INCS_SERIAL.linux.opteron =
########################################################
#
# System type: linux.pc
#
# Generic linux PC
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.linux.pc = mpicc
CPP_PARALLEL.linux.pc = mpiCC
CCFLAG_PARALLEL.linux.pc = -DPARALLEL=1
CPPFLAG_PARALLEL.linux.pc =
CC_SERIAL.linux.pc = cc
CPP_SERIAL.linux.pc = c++
CCFLAG_SERIAL.linux.pc =
CPPFLAG_SERIAL.linux.pc =
F90.linux.pc = ifort
F90_OPTS.linux.pc =
F90_LIB.linux.pc = -lifcore
CC.linux.pc = $(CC_$(MODE).linux.pc)
CPP.linux.pc = $(CPP_$(MODE).linux.pc)
CCFLAG.linux.pc = $(CCFLAG_$(MODE).linux.pc)
CPPFLAG.linux.pc = $(CPPFLAG_$(MODE).linux.pc)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.linux.pc = /usr/X11R6/lib
XLIB_LIB.linux.pc = -L$(XLIB_LIBDIR.linux.pc) -lX11 -lpthread
XLIB_INCS.linux.pc =
MPI_LIBDIR.linux.pc =
MPI_LIB.linux.pc =
MPI_INCS.linux.pc =
HDF_LIBDIR.linux.pc = -Xlinker -rpath -Xlinker \
/usr/local/tools/hdf5-intel-serial/lib \
-L/usr/local/tools/hdf5-intel-serial/lib
HDF_LIB.linux.pc = $(HDF_LIBDIR.linux.pc) -lhdf5 -lhdf5_hl
HDF_INCS.linux.pc = -I/usr/local/tools/hdf5-intel-serial/include
OPENMP_FLAG.linux.pc = -fopenmp
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.linux.pc = -lm
INCS_PARALLEL.linux.pc =
LIB_SERIAL.linux.pc = -lm
INCS_SERIAL.linux.pc =
########################################################
#
# System type: aix
#
# LC IBM aix systems using native compilers
#
# Systems: ice, berg, purple, um, up, uv, etc...
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
# NOTE: enabling -qflttrap is expensive, so unless there are problems
# that require debugging, leave it turned off.
#
CC_PARALLEL.aix = mpcc_r
CPP_PARALLEL.aix = mpCC_r
CCFLAG_PARALLEL.aix = -DPARALLEL=1 -qstrict
# -qflttrap=enable:imprecise:overflow:underflow:zerodivide:invalid
CPPFLAG_PARALLEL.aix =
CC_SERIAL.aix = xlc_r
CPP_SERIAL.aix = xlC_r
CCFLAG_SERIAL.aix = -qstrict
# -qflttrap=enable:imprecise:overflow:underflow:zerodivide:invalid
CPPFLAG_SERIAL.aix =
F90.aix = f90
F90_OPTS.aix = -qmbcs -qextname -qstrict
# -qflttrap=enable:imprecise:overflow:underflow:zerodivide:invalid
F90_LIB.aix = -lf
CC.aix = $(CC_$(MODE).aix)
CPP.aix = $(CPP_$(MODE).aix)
CCFLAG.aix = $(CCFLAG_$(MODE).aix)
CPPFLAG.aix = $(CPPFLAG_$(MODE).aix)
XLIB_LIBDIR.aix = /usr/local/X11R6.3
XLIB_LIB.aix = -L$(XLIB_LIBDIR.aix) -lX11 -lpthread
XLIB_INCS.aix =
MPI_LIBDIR.aix =
MPI_LIB.aix =
MPI_INCS.aix =
HDF_LIBDIR.aix = -L/usr/local/tools/hdf5/hdf5-1.6.5/serial/lib
HDF_LIB.aix = $(HDF_LIBDIR.aix) -lhdf5 -lhdf5_hl
HDF_INCS.aix = -I/usr/local/tools/hdf5/hdf5-1.6.5/serial/include
OPENMP_FLAG.aix = -qsmp=omp
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.aix = -lmass
INCS_PARALLEL.aix =
LIB_SERIAL.aix = -lmass
INCS_SERIAL.aix =
########################################################
#
# System type: bgl
#
# LC BlueGene/Light system
#
# Systems: bgl
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.bgl = /usr/local/bin/mpxlc
CPP_PARALLEL.bgl = /usr/local/bin/mpxlC
CCFLAG_PARALLEL.bgl = -D_BGL -DPARALLEL=1 -qarch=440 \
-qstrict -qcpluscmt
CPPFLAG_PARALLEL.bgl = -D_BGL
CC_SERIAL.bgl = gcc
CPP_SERIAL.bgl = g++
CCFLAG_SERIAL.bgl = -D_BGL
CPPFLAG_SERIAL.bgl = -D_BGL
F90.bgl = /usr/local/bin/mpxlf90
F90_OPTS.bgl = -qextname -qstrict -qfree=f90 -qarch=440
F90_LIB.bgl = -L/opt/ibmcmp/xlsmp/bg/1.6/blrts_lib \
-L/opt/ibmcmp/xlmass/bg/4.3/blrts_lib \
-L/opt/ibmcmp/xlf/bg/10.1/blrts_lib \
-lxlf90 -lxlopt -lxlomp_ser -lxl -lxlfmath
CC.bgl = $(CC_$(MODE).bgl)
CPP.bgl = $(CPP_$(MODE).bgl)
CCFLAG.bgl = $(CCFLAG_$(MODE).bgl)
CPPFLAG.bgl = $(CPPFLAG_$(MODE).bgl)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.bgl =
XLIB_LIB.bgl =
XLIB_INCS.bgl =
MPI_LIBDIR.bgl =
MPI_LIB.bgl =
MPI_INCS.bgl =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.bgl =
INCS_PARALLEL.bgl =
LIB_SERIAL.bgl = -lm
INCS_SERIAL.bgl =
########################################################
#
# System type: MAC
#
# MacBook Pro system using gcc compiler
#
# Systems: mac
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.mac = mpicc
CPP_PARALLEL.mac = mpiCC
CCFLAG_PARALLEL.mac = -longdouble -DLONGDOUBLE -DPARALLEL=1
CPPFLAG_PARALLEL.mac = -D_NOLOCK -D_CYGWIN
CC_SERIAL.mac = gcc
CPP_SERIAL.mac = g++
CCFLAG_SERIAL.mac = -DLONGDOUBLE
CPPFLAG_SERIAL.mac = -D_mac
#CPPFLAG_SERIAL.mac = -D_NOLOCK -D_CYGWIN
F90.mac = gfortran
F90_OPTS.mac =
F90_LIB.mac = -lgfortran
CC.mac = $(CC_$(MODE).mac)
CPP.mac = $(CPP_$(MODE).mac)
CCFLAG.mac = $(CCFLAG_$(MODE).mac)
CPPFLAG.mac = $(CPPFLAG_$(MODE).mac)
XLIB_LIBDIR.mac = /usr/X11R6/lib
XLIB_LIB.mac = -L$(XLIB_LIBDIR.mac) -lX11 -lpthread
XLIB_INCS.mac = -I/usr/X11R6/include
MPI_LIBDIR.mac = -L/export/apps/mvapich/intel/lib
MPI_LIB.mac = -lmpich
MPI_INCS.mac =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.mac =
INCS_PARALLEL.mac =
LIB_SERIAL.mac =
INCS_SERIAL.mac =
########################################################
#
# System type: bgl.gcc
#
# LC BlueGene/Light system using gcc compiler
#
# Systems: bgl
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.bgl.gcc = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc
CPP_PARALLEL.bgl.gcc = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++
CCFLAG_PARALLEL.bgl.gcc = -D_BGL -DPARALLEL=1
CPPFLAG_PARALLEL.bgl.gcc = -D_BGL
CC_SERIAL.bgl.gcc = gcc
CPP_SERIAL.bgl.gcc = g++
CCFLAG_SERIAL.bgl.gcc = -D_BGL
CPPFLAG_SERIAL.bgl.gcc = -D_BGL
F90.bgl.gcc = blrts_xlf90
F90_OPTS.bgl.gcc = -qextname -qstrict -qfree=f90
F90_LIB.bgl.gcc = -L/opt/ibmcmp/xlsmp/bg/1.6/blrts_lib \
-L/opt/ibmcmp/xlf/bg/10.1/blrts_lib \
-lxlf90 -lxlopt -lxlomp_ser -lxl -lxlfmath
CC.bgl.gcc = $(CC_$(MODE).bgl.gcc)
CPP.bgl.gcc = $(CPP_$(MODE).bgl.gcc)
CCFLAG.bgl.gcc = $(CCFLAG_$(MODE).bgl.gcc)
CPPFLAG.bgl.gcc = $(CPPFLAG_$(MODE).bgl.gcc)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.bgl.gcc =
XLIB_LIB.bgl.gcc =
XLIB_INCS.bgl.gcc =
MPI_LIBDIR.bgl.gcc =
MPI_LIB.bgl.gcc =
MPI_INCS.bgl.gcc =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.bgl.gcc = -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts \
-lmsglayer.rts -lrts.rts -ldevices.rts
INCS_PARALLEL.bgl.gcc = -I/bgl/BlueLight/ppcfloor/bglsys/include
LIB_SERIAL.bgl.gcc = -lm
INCS_SERIAL.bgl.gcc =
########################################################
#
# System type: ubgl
#
# LC BlueGene/Light systems
#
# Systems: ubgl
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.ubgl = /usr/local/bin/mpxlc
CPP_PARALLEL.ubgl = /usr/local/bin/mpxlC
CCFLAG_PARALLEL.ubgl = -D_BGL -DPARALLEL=1 -qarch=440 \
-qstrict -qcpluscmt
CPPFLAG_PARALLEL.ubgl = -D_BGL
CC_SERIAL.ubgl = gcc
CPP_SERIAL.ubgl = g++
CCFLAG_SERIAL.ubgl = -D_BGL
CPPFLAG_SERIAL.ubgl = -D_BGL
F90.ubgl = /usr/local/bin/mpxlf90
F90_OPTS.ubgl = -qextname -qstrict -qfree=f90 -qarch=440
F90_LIB.ubgl = -L/usr/local/tools/xl/xl.9-11.PTF2/opt/ibmcmp/xlsmp/bg/1.7/blrts_lib -L/usr/local/tools/xl/xl.9-11.PTF2/opt/ibmcmp/xlmass/bg/4.4/blrts_lib -L/usr/local/tools/xl/xl.9-11.PTF2/opt/ibmcmp/xlf/bg/11.1/blrts_lib \
-lxlf90 -lxlopt -lxlomp_ser -lxl -lxlfmath
CC.ubgl = $(CC_$(MODE).ubgl)
CPP.ubgl = $(CPP_$(MODE).ubgl)
CCFLAG.ubgl = $(CCFLAG_$(MODE).ubgl)
CPPFLAG.ubgl = $(CPPFLAG_$(MODE).ubgl)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.ubgl =
XLIB_LIB.ubgl =
XLIB_INCS.ubgl =
MPI_LIBDIR.ubgl =
MPI_LIB.ubgl =
MPI_INCS.ubgl =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.ubgl = -lmass
INCS_PARALLEL.ubgl =
LIB_SERIAL.ubgl = -lm
INCS_SERIAL.ubgl =
########################################################
#
# System type: bgp
#
# LC BG/P systems
#
# Systems: dawn, dawndev
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.bgp = /usr/local/bin/mpixlc_r
CPP_PARALLEL.bgp = /usr/local/bin/mpixlcxx_r
#
# NOTES: -qflttrap="..." is very costly (~30% more expensive), but
# does force aborts on numeric errors which helps
# during testing.
# -qarch=450d requires -qtune=450, [-O3|-O4|-O5],
# needs 16-byte alignment, but cannot be combined
# with -qflttrap. Slight gains, but not much
#
# For testing, use:
# -qarch=450 -qtune=450 -qhot \
# -qflttrap=enable:imprecise:invalid:overflow:underflow:zerodivide
#
# For production, use:
# -qarch=450d -qtune=450 -qhot
#
CCFLAG_PARALLEL.bgp = -D_BGP -DPARALLEL=1 \
-qarch=450d -qtune=450 -qhot \
-qstrict -qcpluscmt
CPPFLAG_PARALLEL.bgp = -D_BGP -DPARALLEL=1 \
-qarch=450d -qtune=450 -qhot \
-qstrict
CC_SERIAL.bgp = xlc_r
CPP_SERIAL.bgp = xlC_r
CCFLAG_SERIAL.bgp = -D_BGP -qstrict
CPPFLAG_SERIAL.bgp = -D_BGP -qstrict
F90.bgp = /usr/local/bin/bgxlf90_r
F90_OPTS.bgp =
F90_LIB.bgp =
CC.bgp = $(CC_$(MODE).bgp)
CPP.bgp = $(CPP_$(MODE).bgp)
CCFLAG.bgp = $(CCFLAG_$(MODE).bgp)
CPPFLAG.bgp = $(CPPFLAG_$(MODE).bgp)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.bgp =
XLIB_LIB.bgp =
XLIB_INCS.bgp =
MPI_LIBDIR.bgp =
MPI_LIB.bgp =
MPI_INCS.bgp =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.bgp = -lmass
INCS_PARALLEL.bgp = -I/bgsys/drivers/ppcfloor/arch/include
LIB_SERIAL.bgp = -lmass
INCS_SERIAL.bgp =
#
# The "-qsmp=omp" assumes -O2 optimization. For debugging, try
# "-qsmp=omp:noopt" to turn of optimization of parallelized code.
#
OPENMP_FLAG.bgp = -qsmp=omp
########################################################
#
# System type: dec
#
# LC DEC systems using native compilers and MPI
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.dec = cc
CPP_PARALLEL.dec = cxx
CCFLAG_PARALLEL.dec = -DPARALLEL=1
CPPFLAG_PARALLEL.dec = -pthread
CC_SERIAL.dec = cc
CPP_SERIAL.dec = cxx
CCFLAG_SERIAL.dec =
CPPFLAG_SERIAL.dec = -pthread
F90.dec = f90
F90_OPTS.dec =
F90_LIB.dec = -lfor
CC.dec = $(CC_$(MODE).dec)
CPP.dec = $(CPP_$(MODE).dec)
CCFLAG.dec = $(CCFLAG_$(MODE).dec)
CPPFLAG.dec = $(CPPFLAG_$(MODE).dec)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.dec = /usr/X11R6/lib
XLIB_LIB.dec = -L$(XLIB_LIBDIR.dec) -lX11 -lpthread
XLIB_INCS.dec =
MPI_LIBDIR.dec =
MPI_LIB.dec = -lmpi -lrt -lpthread
MPI_INCS.dec =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.dec = -lm
INCS_PARALLEL.dec =
LIB_SERIAL.dec = -lm
INCS_SERIAL.dec =
########################################################
#
# System type: dec.mpich
#
# LC DEC systems using mpich
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.dec.mpich = mpicc
CPP_PARALLEL.dec.mpich = mpiCC
CCFLAG_PARALLEL.dec.mpich = -DPARALLEL=1
CPPFLAG_PARALLEL.dec.mpich = -pthread
CC_SERIAL.dec.mpich = cc
CPP_SERIAL.dec.mpich = c++
CCFLAG_SERIAL.dec.mpich =
CPPFLAG_SERIAL.dec.mpich = -pthread
F90.dec.mpich = f90
F90_OPTS.dec.mpich =
F90_LIB.dec.mpich = -lfor
CC.dec.mpich = $(CC_$(MODE).dec.mpich)
CPP.dec.mpich = $(CPP_$(MODE).dec.mpich)
CCFLAG.dec.mpich = $(CCFLAG_$(MODE).dec.mpich)
CPPFLAG.dec.mpich = $(CPPFLAG_$(MODE).dec.mpich)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.dec.mpich = /usr/X11R6/lib
XLIB_LIB.dec.mpich = -L$(XLIB_LIBDIR.dec.mpich) -lX11 -lpthread
XLIB_INCS.dec.mpich =
MPI_LIBDIR.dec.mpich =
MPI_LIB.dec.mpich = -lmpich -lpthread
MPI_INCS.dec.mpich =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.dec.mpich = -lm
INCS_PARALLEL.dec.mpich =
LIB_SERIAL.dec.mpich = -lm
INCS_SERIAL.dec.mpich =
########################################################
#
# System type: titans
#
# LLNL parallel linux cluster
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.titans = mpicc
CPP_PARALLEL.titans = mpiCC
CCFLAG_PARALLEL.titans = -DPARALLEL=1
CPPFLAG_PARALLEL.titans =
CC_SERIAL.titans = cc
CPP_SERIAL.titans = c++
CCFLAG_SERIAL.titans =
CPPFLAG_SERIAL.titans =
F90.titans =
F90_OPTS.titans =
F90_LIB.titans =
CC.titans = $(CC_$(MODE).titans)
CPP.titans = $(CPP_$(MODE).titans)
CCFLAG.titans = $(CCFLAG_$(MODE).titans)
CPPFLAG.titans = $(CPPFLAG_$(MODE).titans)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.titans = /usr/X11R6/lib
XLIB_LIB.titans = -L$(XLIB_LIBDIR.titans) -lX11 -lpthread
XLIB_INCS.titans =
MPI_LIBDIR.titans = /usr/rels/mpich/lib
MPI_LIB.titans = -L$(MPI_LIBDIR.titans) -lmpich
MPI_INCS.titans = -I/usr/rels/mpich/include
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.titans = -lm
INCS_PARALLEL.titans =
LIB_SERIAL.titans = -lm
########################################################
#
# System type: mcr (mcr, pengra)
#
# LC parallel linux cluster using intel copilers with
# floating-point exceptions enabled
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.mcr = mpiicc
CPP_PARALLEL.mcr = mpiicpc
CCFLAG_PARALLEL.mcr = -DFPES_ON -DPARALLEL=1
CPPFLAG_PARALLEL.mcr =
CC_SERIAL.mcr = icc
CPP_SERIAL.mcr = icpc
CCFLAG_SERIAL.mcr = -DFPES_ON
CPPFLAG_SERIAL.mcr =
F90.mcr = ifort
F90_OPTS.mcr =
F90_LIB.mcr = -lifcore
CC.mcr = $(CC_$(MODE).mcr)
CPP.mcr = $(CPP_$(MODE).mcr)
CCFLAG.mcr = $(CCFLAG_$(MODE).mcr)
CPPFLAG.mcr = $(CPPFLAG_$(MODE).mcr)
#
# Identify library and paths for X-Windows, and MPI
# if available
#
XLIB_LIBDIR.mcr = /usr/X11R6/lib
XLIB_LIB.mcr = -L$(XLIB_LIBDIR.mcr) -lX11 -lpthread
XLIB_INCS.mcr =
MPI_LIBDIR.mcr =
MPI_LIB.mcr = -lmpi -lrt -lpthread
MPI_INCS.mcr =
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.mcr = -L/usr/local/tools/fpu/lib -lfpcontrol -lm
INCS_PARALLEL.mcr = -I/usr/local/include \
-I/usr/local/tools/fpu/include
LIB_SERIAL.mcr = -L/usr/local/tools/fpu/lib -lfpcontrol -lm
INCS_SERIAL.mcr = -I/usr/local/include -I/usr/local/tools/fpu/include
OPENMP_FLAG.mcr = -openmp
########################################################
#
# System type: wcr
#
# Stanford ME linux system using intel compilers
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.wcr = /share/apps/mvapich/intel/bin/mpicc
CPP_PARALLEL.wcr = /share/apps/mvapich/intel/bin/mpiCC
CCFLAG_PARALLEL.wcr = -DPARALLEL=1 -I/export/apps/mvapich/intel/include
CPPFLAG_PARALLEL.wcr = -I/export/apps/mvapich/intel/include
CC_SERIAL.wcr = icc
CPP_SERIAL.wcr = icpc
CCFLAG_SERIAL.wcr =
CPPFLAG_SERIAL.wcr =
F90.wcr = ifort
F90_OPTS.wcr =
F90_LIB.wcr = -lifcore
CC.wcr = $(CC_$(MODE).wcr)
CPP.wcr = $(CPP_$(MODE).wcr)
CCFLAG.wcr = $(CCFLAG_$(MODE).wcr)
CPPFLAG.wcr = $(CPPFLAG_$(MODE).wcr)
XLIB_LIBDIR.wcr = /usr/X11R6/lib64
XLIB_LIB.wcr = -L$(XLIB_LIBDIR.wcr) -lX11 -lpthread
XLIB_INCS.wcr =
MPI_LIBDIR.wcr = -L/export/apps/mvapich/intel/lib
MPI_LIB.wcr = -lmpich
MPI_INCS.wcr =
HDF_LIBDIR.wcr =
HDF_LIB.wcr =
HDF_INCS.wcr =
OPENMP_FLAG.wcr = -openmp
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.wcr = -lm
INCS_PARALLEL.wcr =
LIB_SERIAL.wcr =-L/opt/fftw-3.1.2/intel/lib -lm
INCS_SERIAL.wcr =
########################################################
#
# System type: mc2
#
# Stanford ME linux system using intel compilers
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.mc2 = mpicc
CPP_PARALLEL.mc2 = mpic++
CCFLAG_PARALLEL.mc2 = -DPARALLEL=1
CPPFLAG_PARALLEL.mc2 =
#CCFLAG_PARALLEL.mc2 = -DPARALLEL=1 -fPIC -shared -Wl,--no-undefined
#CPPFLAG_PARALLEL.mc2 = -fPIC -shared -Wl,--no-undefined
CC_SERIAL.mc2 = icc
# CC_SERIAL.mc2 = icc -profile-functions -profile-loops=all -profile-loops-report=2
CPP_SERIAL.mc2 = icpc
CCFLAG_SERIAL.mc2 =
CPPFLAG_SERIAL.mc2 =
#CCFLAG_SERIAL.mc2 = -fPIC -shared -Wl,--no-undefined
#CPPFLAG_SERIAL.mc2 = -fPIC -shared -Wl,--no-undefined
F90.mc2 = ifort
F90_OPTS.mc2 =
F90_LIB.mc2 = -lifcore
CC.mc2 = $(CC_$(MODE).mc2)
CPP.mc2 = $(CPP_$(MODE).mc2)
CCFLAG.mc2 = $(CCFLAG_$(MODE).mc2)
CPPFLAG.mc2 = $(CPPFLAG_$(MODE).mc2)
XLIB_LIBDIR.mc2 = /usr/X11R6/lib64
XLIB_LIB.mc2 = -L$(XLIB_LIBDIR.wcr) -lX11 -lpthread
XLIB_INCS.mc2 =
MPI_LIBDIR.mc2 = -L/export/apps/mvapich/intel/lib
MPI_LIB.mc2 = -lmpich
MPI_INCS.mc2 =
HDF_LIBDIR.mc2 =
HDF_LIB.mc2 =
HDF_INCS.mc2 =
OPENMP_FLAG.mc2 = -openmp
#
# Identify any additional libraries and paths needed for compilation
# on this system type
#
LIB_PARALLEL.mc2 = -lm
INCS_PARALLEL.mc2 =
LIB_SERIAL.mc2 =-L/opt/fftw-3.1.2/intel/lib -lm
INCS_SERIAL.mc2 =
########################################################
#
# System type: mc-cc
#
# Stanford ME linux system using intel compilers
#
########################################################
#
# Define parallel and serial compilers and compiler flags
# and set the default compiler based on the execution mode
# (defined by user in makefile)
#
CC_PARALLEL.mc-cc = icc
CPP_PARALLEL.mc-cc = icc
CCFLAG_PARALLEL.mc-cc = -DPARALLEL=1 -I/export/apps/mvapich/intel/include
CPPFLAG_PARALLEL.mc-cc =
CC_SERIAL.mc-cc = icc
CPP_SERIAL.mc-cc = icpc