Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pafiX
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
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
Holger Grosshans
pafiX
Commits
a8ee43d0
Commit
a8ee43d0
authored
5 years ago
by
Holger Grosshans
Browse files
Options
Downloads
Patches
Plain Diff
modified: src/makefile
modified: src/parallel.f90
parent
9f6acc68
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/makefile
+2
-2
2 additions, 2 deletions
src/makefile
src/parallel.f90
+5
-3
5 additions, 3 deletions
src/parallel.f90
with
7 additions
and
5 deletions
src/makefile
+
2
−
2
View file @
a8ee43d0
...
...
@@ -15,9 +15,9 @@ INC =
# gcc:
CMP
=
mpifort
#O3: optimization
#
FLAGS = -O3 -mcmodel=medium
FLAGS
=
-O3
-mcmodel
=
medium
#debugging:
FLAGS
=
-g3
-O0
-fbounds-check
-mcmodel
=
medium
-fimplicit-none
-fcheck
=
all
-fbacktrace
-floop-nest-optimize
-ffpe-trap
=
invalid,zero,overflow
-Wconversion
-fno-tree-vectorize
#
FLAGS = -g3 -O0 -fbounds-check -mcmodel=medium -fimplicit-none -fcheck=all -fbacktrace -floop-nest-optimize -ffpe-trap=invalid,zero,overflow -Wconversion -fno-tree-vectorize
FFLAGS
=
-c
$(
FLAGS
)
...
...
This diff is collapsed.
Click to expand it.
src/parallel.f90
+
5
−
3
View file @
a8ee43d0
...
...
@@ -298,6 +298,7 @@
!
! myvar=myvar/nrprocs
syncSum
=
myvar
if
(
myid
.ne.
0
)
then
call
mpi_isend
(
myvar
,
1
,
mpi_pr
,
0
,
0
,
mpi_comm_world
,
rs
,
mpierr
)
call
mpi_wait
(
rs
,
mpistatus
,
mpierr
)
...
...
@@ -307,7 +308,7 @@
do
1
proc
=
1
,
nrprocs
-1
call
mpi_irecv
(
myvar2
,
1
,
mpi_pr
,
proc
,
0
,
mpi_comm_world
,
rr
,
mpierr
)
call
mpi_wait
(
rr
,
mpistatus
,
mpierr
)
syncSum
=
myvar
+
myvar2
syncSum
=
syncSum
+
myvar2
1
enddo
endif
...
...
@@ -358,7 +359,7 @@
do
1
proc
=
1
,
nrprocs
-1
call
mpi_irecv
(
myvar2
,
1
,
mpi_integer
,
proc
,
0
,
mpi_comm_world
,
rr
,
mpierr
)
call
mpi_wait
(
rr
,
mpistatus
,
mpierr
)
syncSumI
=
myvar
+
myvar2
syncSumI
=
syncSumI
+
myvar2
1
enddo
endif
...
...
@@ -398,6 +399,7 @@
!
! myvar=myvar/nrprocs
syncSumI
=
myvar
if
(
myid
.ne.
0
)
then
call
mpi_isend
(
myvar
,
1
,
mpi_pr
,
0
,
0
,
mpi_comm_world
,
rs
,
mpierr
)
call
mpi_wait
(
rs
,
mpistatus
,
mpierr
)
...
...
@@ -407,7 +409,7 @@
do
1
proc
=
1
,
nrprocs
-1
call
mpi_irecv
(
myvar2
,
1
,
mpi_pr
,
proc
,
0
,
mpi_comm_world
,
rr
,
mpierr
)
call
mpi_wait
(
rr
,
mpistatus
,
mpierr
)
syncAv
=
myvar
+
myvar2
syncAv
=
syncAv
+
myvar2
1
enddo
syncAv
=
syncAv
/
nrprocs
endif
...
...
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