Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
mpim-sw
libcdi
Commits
6b6c3b42
Commit
6b6c3b42
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
config/default-mpi: added hama.
parent
f4189b48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!34
Version 2.2.0
,
!25
M214003/develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/default-mpi
+37
-12
37 additions, 12 deletions
config/default-mpi
with
37 additions
and
12 deletions
config/default-mpi
+
37
−
12
View file @
6b6c3b42
...
...
@@ -2,27 +2,52 @@
#
# default configuration options and compiler flags for different hosts
#
CONFPATH
=
`
echo
$0
|
cut
-c
1-6
`
if
[
"
$CONFPATH
"
!=
"../../"
]
;
then
CONFPATH
=
'./'
fi
#
set
-x
if
test
-z
"
$1
"
;
then
HOSTNAME
=
`
hostname
`
else
HOSTNAME
=
$1
fi
set
-x
cwd
=
`
pwd
-P
`
srcd
=
"
$(
readlink
-f
${
0
}
)
"
srcd
=
"
${
srcd
%/config/default-mpi
}
"
if
[[
"
$cwd
"
=
~
"^
${
srcd
}
/.
\+
"
]]
;
then
echo
"A build directory that is a sub-directory of the source directory is unsupported!"
>
&2
exit
1
elif
[[
"
$srcd
"
=
"
$cwd
"
]]
;
then
confpath
=
.
else
confpath
=
"
${
srcd
}
"
fi
#
case
"
${
HOSTNAME
}
"
in
hama
*
)
YAXT_ROOT
=
/Users/m214003/local/yaxt
MPI_LAUNCH
=
"
$(
which mpirun
)
"
CDILIBS
=
"--disable-iso-c-interface
\
--enable-maintainer-mode
\
--enable-mpi
\
--enable-option-checking=fatal
\
--with-szlib=
$HOME
/local
\
--with-fdb5=
$HOME
/src/fdb
\
--with-eccodes=
$HOME
/local/eccodes-2.27
\
--with-netcdf=
$HOME
/local/netcdf-c-4.9.0"
PREFIX
=
"--prefix=
$HOME
/local/cdi"
LD_ADD
=
"-Wl,-rpath,
$HOME
/local/eccodes-2.27/lib -Wl,-rpath,
$HOME
/src/fdb/lib"
${
CONFPATH
}
configure
$CONFIG_OPTS
$PREFIX
$CDILIBS
LDFLAGS
=
"
$LD_ADD
$LDFLAGS
"
\
MPI_LAUNCH
=
"
${
MPI_LAUNCH
}
"
\
PKG_CONFIG_PATH
=
"
${
YAXT_ROOT
}
/lib/pkgconfig"
\
FC
=
mpif90
\
CC
=
mpicc
CFLAGS
=
"-g -pipe -D_REENTRANT -Wall -Wwrite-strings -W -Wfloat-equal -pedantic -O3"
;;
# powerpc-ibm-aix6.1.0.0
blizzard
*
|
passat
*
)
cwd
=
`
pwd
-P
`
srcd
=
"
$(
readlink
-f
${
0
}
)
"
srcd
=
"
${
srcd
%/config/default-mpi
}
"
if
[[
"
$cwd
"
=
~
"^
${
srcd
}
/.
\+
"
]]
;
then
echo
"A build directory that is a sub-directory of the source directory is unsupported!"
>
&2
exit
1
elif
[[
"
$srcd
"
=
"
$cwd
"
]]
;
then
confpath
=
.
else
confpath
=
"
${
srcd
}
"
fi
export
MP_PROCS
=
1
export
MP_HOSTFILE
=
"
${
cwd
}
/hostfile"
hostname
>
"
$MP_HOSTFILE
"
...
...
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