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
d65dd711
Commit
d65dd711
authored
6 years ago
by
Xin Li
Browse files
Options
Downloads
Patches
Plain Diff
updated intro_lab instruction
parent
4650ec4d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
intro_lab/README.md
+5
-9
5 additions, 9 deletions
intro_lab/README.md
with
5 additions
and
9 deletions
intro_lab/README.md
+
5
−
9
View file @
d65dd711
...
@@ -22,24 +22,20 @@ To compile your C OpenMP code using the default Cray compilers:
...
@@ -22,24 +22,20 @@ To compile your C OpenMP code using the default Cray compilers:
cc -O2 -openmp -lm name_source.c -o name_exec
cc -O2 -openmp -lm name_source.c -o name_exec
```
```
In Fortran, you need to use the Intel compiler. On Beskow, you first need to
Alternatively, compile your C OpenMP code using GNU compilers:
switch first from Cray to Intel compiler with:
```
```
module swap PrgEnv-cray PrgEnv-intel
module swap PrgEnv-cray PrgEnv-gnu
cc -O2 -fopenmp -lm name_source.c -o name_exec
```
```
and then
compile
with:
In Fortran, it is recommended to use the Intel
compile
r
```
```
module swap PrgEnv-cray PrgEnv-intel
ftn -fpp -O2 -openmp -lm name_source.f90 -o name_exec
ftn -fpp -O2 -openmp -lm name_source.f90 -o name_exec
```
```
<!---
**Very Important**
: Do not copy and paste from this document to your terminal
since the - symbol will create problems when compiling.
-->
To run your code on Beskow, you will need to have an interactive allocation:
To run your code on Beskow, you will need to have an interactive allocation:
```
```
...
...
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