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
577b6de6
Commit
577b6de6
authored
3 years ago
by
Mathieu Peybernes
Browse files
Options
Downloads
Patches
Plain Diff
Updata for cmake use
parent
ba8fd6a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/serial/serial.tex
+35
-0
35 additions, 0 deletions
src/serial/serial.tex
with
35 additions
and
0 deletions
src/serial/serial.tex
+
35
−
0
View file @
577b6de6
...
...
@@ -265,6 +265,41 @@ prepend_path("INCLUDE","/ssoft/spack/arvine/v1/opt/spack/linux-rhel7-skylake_avx
% minted options app={firstline=1,
% lastline=40}]{examples/compilationWithMakefile}
\end{frame}
\begin{frame}
[t,fragile]
\frametitle
{
Compilation
}
\framesubtitle
{
CMake example
}
\bashfile
[title={examples/compilationWithCmake/CMakeLists.txt}]
{
examples/compilationWithCmake/CMakeLists.txt
}
% minted options app={firstline=1,
% lastline=40}]{examples/compilationWithMakefile}
\end{frame}
\begin{frame}
[t,fragile]
\frametitle
{
Compilation
}
\framesubtitle
{
CMake use
}
\begin{itemize}
\item
Go to directory
\cmd
{
examples/compilationWithCmake
}
\item
\cmd
{
mkdir build
}
\item
\cmd
{
cd build
}
\item
\cmd
{
cmake ..
}
\item
\cmd
{
make
}
\end{itemize}
\begin{consoleoutput}
$
cmake ..
--
The C compiler identification is GNU
8
.
4
.
0
--
Check for working C compiler:
/
ssoft
/
...
/
gcc
-
4
.
8
.
5
/
gcc
-
8
.
4
.
0
-
fgpbrrd
26
pxv
56
imea
5
tnqj
67
vxh
3
a
64
/
bin
/
gcc
--
Check for working C compiler:
/
ssoft
/
...
/
gcc
-
4
.
8
.
5
/
gcc
-
8
.
4
.
0
-
fgpbrrd
26
pxv
56
imea
5
tnqj
67
vxh
3
a
64
/
bin
/
gcc
--
works
--
Detecting C compiler ABI info
--
Detecting C compiler ABI info
-
done
--
Detecting C compile features
--
Detecting C compile features
-
done
--
Configuring done
--
Generating done
--
Build files have been written to:
/
home
/
peyberne
/
Codes
/
SCM
-
lecture
/
examples
/
compilationWithCmake
/
build
\end
{
consoleoutput
}
% minted options app={firstline=1,
% lastline=40}]{examples/compilationWithMakefile}
\end
{
frame
}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../../SCM_slides"
...
...
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