Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DOUAR WSMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUGG
DOUAR WSMP
Commits
fa4a757e
Commit
fa4a757e
authored
15 years ago
by
Douglas Guptill
Browse files
Options
Downloads
Patches
Plain Diff
tweaks
parent
de1e7d7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+8
-7
8 additions, 7 deletions
Makefile
Makefile.p690
+50
-37
50 additions, 37 deletions
Makefile.p690
with
58 additions
and
44 deletions
Makefile
+
8
−
7
View file @
fa4a757e
NAME
=
douar
include
Makefile.p690
BIN
=
$(
NAME
)$(
BITS
)
OBJECTS
=
\
module_threads.o
\
...
...
@@ -73,20 +74,20 @@ DOUAR.o \
write_global_output.o vrm.o
all
:
$(
NAME)$(BITS
)
$(NAME)
$(BI
TS
)
:
subdirs $(OBJECTS)
$(
F90
)
$(
FLAGS
)
$(
OPTIONS
)
$(
OBJECTS
)
$(
LIBS
)
-o
$(
NAME
)$(
BITS
)
\
>
$(
NAME
)$(
BITS
)
.link 2>&1
all
:
$(
BIN
)
$(BI
N
)
:
subdirs $(OBJECTS)
$(
F90
)
$(
F
FLAGS
)
$(
OPTIONS
)
$(
OBJECTS
)
$(
LIBS
)
-o
$(
BIN
)
\
>
$(
BIN
)
.link 2>&1
echo
"--"
echo
"compiler output...."
more
$(
COMPILE_OUT
)
echo
"--"
echo
"linker output...."
more
$(
NAME
)$(
BITS
)
.link
more
$(
BIN
)
.link
.PHONY
:
install
install
:
mv
-f
$(
NAME
)$(
BITS
)
bin
mv
-f
$(
BIN
)
bin
subdirs
:
cd
CASCADE
;
make all
...
...
@@ -109,5 +110,5 @@ clean: objclean
cd
NN
;
make
$@
cd
OCTREE
;
make
$@
cd
RESAMPLE
;
make
$@
rm
-f
$(
NAME
)$(
BITS
)
$(
NAME
)
$(
BI
TS
)
.link
rm
-f
$(
BIN
)
$(
BI
N
)
.link
This diff is collapsed.
Click to expand it.
Makefile.p690
+
50
−
37
View file @
fa4a757e
# Define our compilers
# Define our compilers
.................................
#
F90
=
mpxlf90_r
F77
=
mpxlf_r
CC
=
mpcc_r
CC
=
mpcc_r
X11
=
/usr/lpp/X11
# wsmp lives here.
#
WSMP_DIR
=
/home/beaumnt1/software/wsmp/lib/Power4
# for 32 bit compile
# for 32 bit compile..................................
#
AR
=
ar
BITS
=
-q32
OPTIONS
=
-bmaxdata
:0x80000000
-bhalt
:0
-bnoquiet
PGPLOT
=
/home/beaumnt1/software/pgplot-5.2.2
WSMP_LIB
=
-L
$(
WSMP_DIR
)
-lpwsmp
# for 64 bit compile
# for 64 bit compile..................................
#
AR
=
ar
-X
64
BITS
=
-q64
OPTIONS
=
-b
64
-bmaxdata
:0x80000000
-bhalt
:0
-bnoquiet
...
...
@@ -22,65 +25,75 @@ PGPLOT = /home/beaumnt1/software/pgplot-5.2.2-q64
WSMP_LIB
=
-L
$(
WSMP_DIR
)
-lpwsmp64
# Define FORTRAN compiler flags
# Define FORTRAN compiler flags.......................
#
# I would like to add -u here, but Wow! Just try it.
# FLAGS = -O3 -qstrict -Q -qarch=auto -qtune=auto -qfloat=nomaf:nofold
# Trouble on the p690; time to get serious.
# douar bombs quickly; removing inexact
# Signal generated for floating-point exception:
# FP inexact
# So we'll take that one out.
# -qflttrap=overflow:underflow:zerodivide:invalid:inexact:enable
# douar bombs quickly; removing qflttrap=inexact
# -qport options might be worth looking at later
# -qwarn64 casues interesting messages in NN
#
# for xlf 8.1
# -qflttrap=overflow:underflow:zerodivide:invalid:enable
# for xlf 10.1
# -qflttrap=overflow:underflow:zerodivide:invalid:NANQ:enable
# take -qextchk out for the final compile
FLAGS
=
-O2
-qmaxmem
=
-1
-qstrict
-Q
$(
BITS
)
-qarch
=
pwr4
-qtune
=
pwr4
\
FFLAGS
=
-g
-O2
-qstrict
-Q
$(
BITS
)
-qarch
=
auto
-qtune
=
auto
-qmaxmem
=
-1
\
-qcheck
-qwarn64
\
-qfloat
=
nomaf:nofold:norsqrt:strictnmaf
\
-qflttrap
=
overflow:underflow:zerodivide:invalid:enable
\
-qflttrap
=
overflow:underflow:zerodivide:invalid:
NANQ:
enable
\
-qsigtrap
\
-qhalt
=
s
-qextchk
# Define C compiler flags
# Define C compiler flags.............................
#
# take -qextchk out for the final compile
CFLAGS
=
-O2
-qstrict
-Q
$(
BITS
)
-qarch
=
pwr4
-qtune
=
pwr4
\
CFLAGS
=
-g
-O2
-qstrict
-Q
$(
BITS
)
-qarch
=
auto
-qtune
=
auto
\
-qcheck
-qwarn64
\
-qfloat
=
nomaf:nofold:norsqrt
\
-qflttrap
=
overflow:underflow:zerodivide:invalid:enable
\
-qflttrap
=
overflow:underflow:zerodivide:invalid:
NANQ:
enable
\
-qhalt
=
e
-qextchk
# libs removed on p690...
# -lacml
LIBS
=
\
-LOCTREE
-lOctree
$(
BITS
)
\
-LNN
-lnn
$(
BITS
)
\
-LCASCADE
-lcascade
$(
BITS
)
\
-LRESAMPLE
-lresample
$(
BITS
)
\
$(
WSMP_LIB
)
\
-L
$(
X11
)
-lX11
\
-L
$(
PGPLOT
)
-lpgplot
\
-lpthread
# compile rules
# compile rules.......................................
#
COMPILE_OUT
=
$(
NAME
)$(
BITS
)
.compile
.SUFFIXES
:
.SUFFIXES
:
.o .c .f .f90
.f90.o
:
@
echo
"--"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"xlf is
`
which xlf
`
"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"
$(
F90
)
-qsuffix=f=f90
$(
FLAGS
)
$(
INCLUDE
)
-c
$<
"
>>
$(
COMPILE_OUT
)
2>&1
$(
F90
)
-qsuffix
=
f
=
f90
$(
FLAGS
)
$(
INCLUDE
)
-c
$<
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"--"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"xlf is
`
which xlf
`
"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"
$(
F90
)
-qsuffix=f=f90
$(
F
FLAGS
)
-c
$<
"
>>
$(
COMPILE_OUT
)
2>&1
$(
F90
)
-qsuffix
=
f
=
f90
$(
F
FLAGS
)
-c
$<
>>
$(
COMPILE_OUT
)
2>&1
.f.o
:
@
echo
"--"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"xlf is
`
which xlf
`
"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"
$(
F77
)
-qsuffix=f=f
$(
FLAGS
)
-c
$<
"
>>
$(
COMPILE_OUT
)
2>&1
$(
F77
)
-qsuffix
=
f
=
f
$(
FLAGS
)
-c
$<
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"
$(
F77
)
-qsuffix=f=f
$(
F
FLAGS
)
-c
$<
"
>>
$(
COMPILE_OUT
)
2>&1
$(
F77
)
-qsuffix
=
f
=
f
$(
F
FLAGS
)
-c
$<
>>
$(
COMPILE_OUT
)
2>&1
.c.o
:
@
echo
"--"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"cc is
`
which cc
`
"
>>
$(
COMPILE_OUT
)
2>&1
@
echo
"
$(
CC
)
$(
CFLAGS
)
-c
$<
"
>>
$(
COMPILE_OUT
)
2>&1
$(
CC
)
$(
CFLAGS
)
-c
$<
>>
$(
COMPILE_OUT
)
2>&1
# Libraries................
#
# libs removed on p690...
# -lacml
# -lpthread
LIBS
=
\
-LOCTREE
-lOctree
$(
BITS
)
\
-LCASCADE
-lcascade
$(
BITS
)
\
-LRESAMPLE
-lresample
$(
BITS
)
\
-LNN
-lnn
$(
BITS
)
\
$(
WSMP_LIB
)
\
-L
$(
PGPLOT
)
-lpgplot
\
-L
/usr/lpp/X11
-lX11
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment