Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
Applications
STREAM
Commits
5d77d6dd
Commit
5d77d6dd
authored
Feb 04, 2015
by
Jeff Hammond
Browse files
use OpenMP (and GCC 4.9 explicitly)
parent
4f7116ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
5d77d6dd
CC
=
gcc
CC
=
gcc
-4.9
CFLAGS
=
-O2
CFLAGS
=
-O2
-fopenmp
F
F
=
gfortran
F
C
=
gfortran
-4.9
FFLAGS
=
-O2
FFLAGS
=
-O2
-fopenmp
all
:
stream_f.exe stream_c.exe
all
:
stream_f.exe stream_c.exe
stream_f.exe
:
stream.f mysecond.o
stream_f.exe
:
stream.f mysecond.o
$(CC)
$(CFLAGS)
-c
mysecond.c
$(CC)
$(CFLAGS)
-c
mysecond.c
$(F
F
)
$(FFLAGS)
-c
stream.f
$(F
C
)
$(FFLAGS)
-c
stream.f
$(F
F
)
$(FFLAGS)
stream.o mysecond.o
-o
stream_f.exe
$(F
C
)
$(FFLAGS)
stream.o mysecond.o
-o
stream_f.exe
stream_c.exe
:
stream.c
stream_c.exe
:
stream.c
$(CC)
$(CFLAGS)
stream.c
-o
stream_c.exe
$(CC)
$(CFLAGS)
stream.c
-o
stream_c.exe
...
...
stream.f
View file @
5d77d6dd
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
*
IMPLICIT
NONE
*
IMPLICIT
NONE
C
..
Parameters
..
C
..
Parameters
..
INTEGER
n
,
offset
,
ndim
,
ntimes
INTEGER
n
,
offset
,
ndim
,
ntimes
PARAMETER
(
n
=
2000000
,
offset
=
0
,
ndim
=
n
+
offset
,
ntimes
=
10
)
PARAMETER
(
n
=
2000000
0
,
offset
=
0
,
ndim
=
n
+
offset
,
ntimes
=
10
)
C
..
C
..
C
..
Local
Scalars
..
C
..
Local
Scalars
..
DOUBLE PRECISION
scalar
,
t
DOUBLE PRECISION
scalar
,
t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment