Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Compiling code and using MPI - lecture
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
Model registry
Operate
Environments
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
SCITAS
Courses
Compiling code and using MPI
Compiling code and using MPI - lecture
Commits
a51632d1
Commit
a51632d1
authored
9 months ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Last minute changes
parent
ab08813a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/intro/intro.tex
+3
-4
3 additions, 4 deletions
src/intro/intro.tex
src/mpi/mpi.tex
+3
-3
3 additions, 3 deletions
src/mpi/mpi.tex
with
6 additions
and
7 deletions
src/intro/intro.tex
+
3
−
4
View file @
a51632d1
...
@@ -37,13 +37,12 @@
...
@@ -37,13 +37,12 @@
\url
{
https://go.epfl.ch/Compiling-code-and-using-MPI-Exercises
}
\url
{
https://go.epfl.ch/Compiling-code-and-using-MPI-Exercises
}
\item
For your convenience you can copy the slides and exercises directly from
\\
\item
For your convenience you can copy the slides and exercises directly from
\\
\begin{bashcode}
\begin{bashcode}
(cluster)
$
> cp
-
r
/
scratch
/
examples
/
compiling
_
codes .
$
> cp
-
r
/
work
/
scitas
-
share
/
compiling
-
code
-
and
-
using
-
mpi
-
exercises .
(
local
)
$
> scp <username>@<helvetios>.epfl.ch:/scratch/examples/compiling
_
codes/SCM
_
slides.pdf .
\end
{
bashcode
}
\end
{
bashcode
}
\item
Prepare your environment
\item
Prepare your environment
\begin
{
bashcode
}
\begin
{
bashcode
}
(cluster)
$
> module purge
$
> module purge
(
cluster
)
$
> module load gcc
$
> module load gcc
\end
{
bashcode
}
\end
{
bashcode
}
\end
{
itemize
}
\end
{
itemize
}
\end
{
frame
}
\end
{
frame
}
...
...
This diff is collapsed.
Click to expand it.
src/mpi/mpi.tex
+
3
−
3
View file @
a51632d1
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
\item
In a shared memory model, all data is visible to all threads
\item
In a shared memory model, all data is visible to all threads
\item
All the threads can read and write to the same memory space, which
\item
All the threads can read and write to the same memory space, which
can be problematic if it happens at the same time!
can be problematic if it happens at the same time!
\item
Limited to one
CPU
\item
Limited to one
node
\item
Multi-threading is often implemented using OpenMP (in HPC codes)
\item
Multi-threading is often implemented using OpenMP (in HPC codes)
\end{itemize}
\end{itemize}
\pause
\pause
...
@@ -225,9 +225,9 @@
...
@@ -225,9 +225,9 @@
\item
Syntax is compiler dependent
\item
Syntax is compiler dependent
\begin{itemize}
\begin{itemize}
\item
\cmd
{
gcc -fopenmp mycode.c
}
\item
\cmd
{
gcc -fopenmp mycode.c
}
\item
\cmd
{
icc -qopenmp mycode.c
}
\item
\cmd
{
gfortran -fopenmp mycode.f95
}
\item
\cmd
{
gfortran -fopenmp mycode.f95
}
\item
\cmd
{
ifort -qopenmp mycode.f95
}
\item
\cmd
{
icx -fopenmp mycode.c
}
\item
\cmd
{
ifortx -fopenmp mycode.f95
}
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
...
...
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