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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdc-summer-school
openmp-lab-exercises
Commits
f593a6c4
Commit
f593a6c4
authored
3 years ago
by
Xin Li
Browse files
Options
Downloads
Patches
Plain Diff
updated advanced_lab
parent
5c835a4d
Branches
2021
Branches containing commit
Tags
2021
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
advanced_lab/c/Makefile
+7
-9
7 additions, 9 deletions
advanced_lab/c/Makefile
advanced_lab/c/shwater2d.c
+18
-18
18 additions, 18 deletions
advanced_lab/c/shwater2d.c
advanced_lab/f90/Makefile
+7
-12
7 additions, 12 deletions
advanced_lab/f90/Makefile
with
32 additions
and
39 deletions
advanced_lab/c/Makefile
+
7
−
9
View file @
f593a6c4
CC
=
cc
ifeq
($(CRAY_PRGENVCRAY), loaded)
CFLAGS
=
-O2
-openmp
else
ifeq
($(CRAY_PRGENVINTEL), loaded)
CFLAGS
=
-O2
-openmp
-D_Float128
=
__float128
else
ifeq
($(CRAY_PRGENVGNU), loaded)
# for GNU compiler
CC
=
gcc
CFLAGS
=
-O2
-fopenmp
else
CFLAGS
=
-O2
endif
# for Intel compiler
#CC = icc
#CFLAGS = -O2 -qopenmp
SRC
=
vtk_export.c shwater2d.c
OBJS
=
${
SRC:.c
=
.o
}
DEST
=
shwater2d
...
...
This diff is collapsed.
Click to expand it.
advanced_lab/c/shwater2d.c
+
18
−
18
View file @
f593a6c4
This diff is collapsed.
Click to expand it.
advanced_lab/f90/Makefile
+
7
−
12
View file @
f593a6c4
FC
=
ftn
ifeq
($(CRAY_PRGENVCRAY), loaded)
FFLAGS
=
-O2
-openmp
else
ifeq
($(CRAY_PRGENVINTEL), loaded)
FFLAGS
=
-O2
-openmp
else
ifeq
($(CRAY_PRGENVGNU), loaded)
ifeq
($(shell expr $(GCC_VERSION) '<' 5.0), 1)
$(
error
Unsupported GCC version, use at least v5.x
(
module swap gcc gcc/5.1.0
))
endif
# for GNU compiler
FC
=
gfortran
FFLAGS
=
-O2
-fopenmp
else
FFLAGS
=
-O2
endif
# for Intel compiler
#FC = ifort
#FFLAGS = -O2 -fopenmp
SRC
=
vtk_export.f90 shwater2d.f90
OBJS
=
${
SRC:.f90
=
.o
}
DEST
=
shwater2d
...
...
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