-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.csh
125 lines (107 loc) · 3.53 KB
/
setup.csh
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
alias PREPEND 'setenv \!^ {\!:2}:{$\!^}'
####### DIFX VERSION ########################
setenv DIFX_VERSION trunk
####### ROOT PATHS ##########################
setenv DIFXROOT /usr/local/difx
setenv DIFX_PREFIX $DIFXROOT
setenv PGPLOTDIR
setenv IPPROOT /opt/intel
####### MPI SOFTWARE AND COMPILER ###########
setenv DIFXMPIDIR /usr
setenv MPICXX $DIFXMPIDIR/bin/mpicxx
####### LIBRARY PATHS #######################
####### Uncomment and modify if needed, #####
####### such as 64-bit OpenSuSE #############
# setenv IPP_LIBRARY_PATH $IPPROOT/ipp/lib/intel64:$IPPROOT/compiler/lib/intel64
# setenv MPI_LIBRARY_PATH $DIFXMPIDIR/lib64
####### USE GFORTRAN IN PREFERENCE TO G77? ##
####### Comment out if not desired ##########
setenv USEGFORTRAN "yes"
####### PERL VERSION/SUBVERSION #############
set perlver="5"
set perlsver="5.10.1"
if ($?PERL5LIB) then
PREPEND PERL5LIB ${DIFXROOT}/share/perl/$perlver
else
setenv PERL5LIB ${DIFXROOT}/share/perl/$perlver
endif
####### PORTS FOR DIFXMESSAGE ###############
# Uncomment these to enable DIFX_MESSAGES
setenv DIFX_MESSAGE_GROUP 224.2.2.1
setenv DIFX_MESSAGE_PORT 50201
setenv DIFX_BINARY_GROUP 224.2.2.1
setenv DIFX_BINARY_PORT 50202
####### CALC SERVER NAME #########
setenv CALC_SERVER localhost
####### HOPS ENVIRONMENT #########
# uncomment/modify these lines if you have enabled HOPS
# or alternatively be sure to source $DIFXROOT/bin/hops.bash
# setenv GS_DEVICE x11
# setenv PGPLOT_TYPE /xw
# setenv DEF_CONTROL /dev/null
# setenv DATADIR /tmp
# setenv HOPS_DOCS ${DIFXROOT}/share/hops
# setenv PROGDOC ${HOPS_DOCS}/vhelp
# setenv AHELP ${HOPS_DOCS}/vhelp/aedit
# setenv TEXT ${HOPS_DOCS}/text
####### MPI RUNTIME OPTIONS #################
####### Uncomment and modify if needed, #####
####### such as Open MPI 1.8.4 ##############
# setenv DIFX_MPIRUNOPTIONS "--mca mpi_yield_when_idle 1 --mca rmaps seq"
####### No User configurable values below here
####### Operating System, use $OSTYPE
set OSTYPE5=`echo $OSTYPE | awk '{print substr($0,1,5)}'`
set OSTYPE6=`echo $OSTYPE | awk '{print substr($0,1,6)}'`
if ( $OSTYPE5 == "linux" ) then
set OS="linux"
else if ( $OSTYPE6 == "darwin" ) then
set OS="darwin"
else
echo "Warning supported O/S $OSTYPE";
exit 1
endif
setenv DIFXOS $OS
####### 32/64 BIT DEPENDENT MODIFICATIONS ###
set arch=`uname -m`
if ( $arch == "i386" || $arch == "i686" ) then #32 bit
setenv DIFXBITS 32
else if ( $arch == "x86_64" ) then #64 bit
setenv DIFXBITS 64
else
echo "Unknown architecture $arch - leaving paths unaltered"
endif
####### LIBRARY/EXECUTABLE PATHS ############
PREPEND PATH ${DIFXMPIDIR}/bin
PREPEND PATH ${DIFXROOT}/bin
if $?IPP_LIBRARY_PATH then
PREPEND LD_LIBRARY_PATH $IPP_LIBRARY_PATH
endif
if $?MPI_LIBRARY_PATH then
PREPEND LD_LIBRARY_PATH $MPI_LIBRARY_PATH
endif
if ($DIFXOS == "darwin") then
PREPEND DYLD_LIBRARY_PATH ${DIFXROOT}/lib
PREPEND DYLD_LIBRARY_PATH ${PGPLOTDIR}
else
PREPEND LD_LIBRARY_PATH ${DIFXROOT}/lib
PREPEND LD_LIBRARY_PATH ${PGPLOTDIR}
if ( $arch == "x86_64" ) then #64 bit
PREPEND LD_LIBRARY_PATH ${DIFXROOT}/lib64
endif
endif
if ($?PKG_CONFIG_PATH) then
PREPEND PKG_CONFIG_PATH ${DIFXROOT}/lib/pkgconfig
else
setenv PKG_CONFIG_PATH ${DIFXROOT}/lib/pkgconfig
endif
if ($?PYTHONPATH) then
PREPEND PYTHONPATH $DIFXROOT/lib/python
else
setenv PYTHONPATH $DIFXROOT/lib/python
endif
if ( $arch == "x86_64" ) then #64 bit
PREPEND PKG_CONFIG_PATH ${DIFXROOT}/lib64/pkgconfig
PREPEND PYTHONPATH $DIFXROOT/lib64/python
endif
echo " DiFX version $DIFX_VERSION is selected"
unalias PREPEND