Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpi-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
mpi-lab-exercises
Commits
ec8d5715
Commit
ec8d5715
authored
5 years ago
by
Kjartan Thor Wikfeldt
Browse files
Options
Downloads
Patches
Plain Diff
add compiling instructions
parent
8026dc77
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+28
-1
28 additions, 1 deletion
README.md
with
28 additions
and
1 deletion
README.md
+
28
−
1
View file @
ec8d5715
...
@@ -22,8 +22,35 @@ The Cray automatically loads several [modules](https://www.pdc.kth.se/support/do
...
@@ -22,8 +22,35 @@ The Cray automatically loads several [modules](https://www.pdc.kth.se/support/do
-
Heimdal -
[
Kerberos commands
](
https://www.pdc.kth.se/support/documents/login/login.html#general-information-about-kerberos
)
-
Heimdal -
[
Kerberos commands
](
https://www.pdc.kth.se/support/documents/login/login.html#general-information-about-kerberos
)
-
OpenAFS -
[
AFS commands
](
https://www.pdc.kth.se/support/documents/data_management/afs.html
)
-
OpenAFS -
[
AFS commands
](
https://www.pdc.kth.se/support/documents/data_management/afs.html
)
-
SLURM -
[
batch jobs
](
https://www.pdc.kth.se/support/documents/run_jobs/queueing_jobs.html
)
and
[
interactive jobs
](
https://www.pdc.kth.se/support/documents/run_jobs/run_interactively.html
)
-
SLURM -
[
batch jobs
](
https://www.pdc.kth.se/support/documents/run_jobs/queueing_jobs.html
)
and
[
interactive jobs
](
https://www.pdc.kth.se/support/documents/run_jobs/run_interactively.html
)
-
Software development -
[
Programming environment
s and c
ompilers
](
https://www.pdc.kth.se/support/documents/software_development/development.html
)
-
Programming environment
-
[
C
ompilers
for software development
](
https://www.pdc.kth.se/support/documents/software_development/development.html
)
# Compiling MPI programs on Beskow
By default the cray compiler is loaded into your environment. In order to use another compiler you have to swap compiler modules:
```
module swap PrgEnv-cray PrgEnv-gnu
```
or
```
module swap PrgEnv-cray PrgEnv-intel
```
On Beskow one should always use the
*compiler wrappers*
`cc`
,
`CC`
or
`ftn`
(for C, C++ and Fortran codes, respectively),
which will automatically link to MPI libraries and linear
algebra libraries like BLAS, LAPACK, etc.
Examples:
```
# Fortran
ftn [flags] source.f90
# C
cc [flags] source.c
# C++
CC [flags] source.cpp
```
# Running MPI programs on Beskow
# Running MPI programs on Beskow
...
...
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