Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openmp-lab-exercises
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdc-summer-school
openmp-lab-exercises
Commits
f1064260
Commit
f1064260
authored
7 years ago
by
Xin Li
Browse files
Options
Downloads
Patches
Plain Diff
added error checking in fortran
parent
0049bb86
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
intro_lab/solutions/pi_loop.f90
+2
-1
2 additions, 1 deletion
intro_lab/solutions/pi_loop.f90
intro_lab/solutions/pi_spmd_final.f90
+2
-1
2 additions, 1 deletion
intro_lab/solutions/pi_spmd_final.f90
intro_lab/solutions/pi_spmd_simple.f90
+2
-1
2 additions, 1 deletion
intro_lab/solutions/pi_spmd_simple.f90
with
6 additions
and
3 deletions
intro_lab/solutions/pi_loop.f90
+
2
−
1
View file @
f1064260
...
...
@@ -48,7 +48,8 @@ do num_threads = 1, MAX_THREADS
pi
=
step
*
raw_sum
run_time
=
OMP_GET_WTIME
()
-
start_time
print
'(" pi is ", f12.6, " in ", f12.6, " seconds and ", i0, " threads")'
,
pi
,
run_time
,
num_threads
print
'(" pi is ", f12.6, " in ", f12.6, " seconds and ", i0, " threads. Error = ", e15.6)'
,
&
pi
,
run_time
,
num_threads
,
abs
(
3.14159265358979323846D0
-
pi
)
enddo
...
...
This diff is collapsed.
Click to expand it.
intro_lab/solutions/pi_spmd_final.f90
+
2
−
1
View file @
f1064260
...
...
@@ -58,7 +58,8 @@ do num_threads = 1, MAX_THREADS
pi
=
step
*
full_sum
run_time
=
OMP_GET_WTIME
()
-
start_time
print
'(" pi is ", f12.6, " in ", f12.6, " seconds and ", i0, " threads")'
,
pi
,
run_time
,
num_threads
print
'(" pi is ", f12.6, " in ", f12.6, " seconds and ", i0, " threads. Error = ", e15.6)'
,
&
pi
,
run_time
,
num_threads
,
abs
(
3.14159265358979323846D0
-
pi
)
enddo
...
...
This diff is collapsed.
Click to expand it.
intro_lab/solutions/pi_spmd_simple.f90
+
2
−
1
View file @
f1064260
...
...
@@ -59,7 +59,8 @@ do num_threads = 1, MAX_THREADS
pi
=
step
*
full_sum
run_time
=
OMP_GET_WTIME
()
-
start_time
print
'(" pi is ", f12.6, " in ", f12.6, " seconds and ", i0, " threads")'
,
pi
,
run_time
,
num_threads
print
'(" pi is ", f12.6, " in ", f12.6, " seconds and ", i0, " threads. Error = ", e15.6)'
,
&
pi
,
run_time
,
num_threads
,
abs
(
3.14159265358979323846D0
-
pi
)
enddo
...
...
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