Skip to content

Commit

Permalink
jekyll build from Action 2943dff
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcleod89 committed Dec 11, 2024
0 parents commit 7ff1f7c
Show file tree
Hide file tree
Showing 283 changed files with 69,562 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
307 changes: 307 additions & 0 deletions 01projects/index.html

Large diffs are not rendered by default.

553 changes: 553 additions & 0 deletions 01projects/sec01Git.html

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions 01projects/sec02IntroToCpp.html

Large diffs are not rendered by default.

355 changes: 355 additions & 0 deletions 02cpp1/index.html

Large diffs are not rendered by default.

409 changes: 409 additions & 0 deletions 02cpp1/sec01Types.html

Large diffs are not rendered by default.

668 changes: 668 additions & 0 deletions 02cpp1/sec02PassByValueOrReference.html

Large diffs are not rendered by default.

623 changes: 623 additions & 0 deletions 02cpp1/sec03ObjectOrientedProgramming.html

Large diffs are not rendered by default.

722 changes: 722 additions & 0 deletions 02cpp1/sec04StandardLibrary.html

Large diffs are not rendered by default.

717 changes: 717 additions & 0 deletions 02cpp1/sec05Pointers.html

Large diffs are not rendered by default.

344 changes: 344 additions & 0 deletions 03cpp2/index.html

Large diffs are not rendered by default.

597 changes: 597 additions & 0 deletions 03cpp2/sec01Exceptions.html

Large diffs are not rendered by default.

442 changes: 442 additions & 0 deletions 03cpp2/sec02ErrorHandling.html

Large diffs are not rendered by default.

407 changes: 407 additions & 0 deletions 03cpp2/sec03CMakeBasics.html

Large diffs are not rendered by default.

476 changes: 476 additions & 0 deletions 03cpp2/sec04UnitTesting.html

Large diffs are not rendered by default.

378 changes: 378 additions & 0 deletions 03cpp2/sec05SoftwareBuilds.html

Large diffs are not rendered by default.

422 changes: 422 additions & 0 deletions 03cpp2/sec06CMakeBackground.html

Large diffs are not rendered by default.

542 changes: 542 additions & 0 deletions 03cpp2/sec07CMakeHelloWorld.html

Large diffs are not rendered by default.

431 changes: 431 additions & 0 deletions 03cpp2/sec08BuildHelloWorld.html

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions 04cpp3/index.html

Large diffs are not rendered by default.

694 changes: 694 additions & 0 deletions 04cpp3/sec01Inheritance.html

Large diffs are not rendered by default.

734 changes: 734 additions & 0 deletions 04cpp3/sec03Templates.html

Large diffs are not rendered by default.

698 changes: 698 additions & 0 deletions 05libraries/ProgrammingParadigms.html

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions 05libraries/index.html

Large diffs are not rendered by default.

708 changes: 708 additions & 0 deletions 05libraries/sec01DesigningClasses.html

Large diffs are not rendered by default.

451 changes: 451 additions & 0 deletions 05libraries/sec03CppCodeDesign.html

Large diffs are not rendered by default.

354 changes: 354 additions & 0 deletions 06tooling/index.html

Large diffs are not rendered by default.

453 changes: 453 additions & 0 deletions 06tooling/sec00TimingAndTooling.html

Large diffs are not rendered by default.

511 changes: 511 additions & 0 deletions 06tooling/sec01ChoosingLibraries.html

Large diffs are not rendered by default.

418 changes: 418 additions & 0 deletions 06tooling/sec02LibraryBasics.html

Large diffs are not rendered by default.

438 changes: 438 additions & 0 deletions 06tooling/sec03LinkingLibraries.html

Large diffs are not rendered by default.

383 changes: 383 additions & 0 deletions 06tooling/sec04InstallingLibraries.html

Large diffs are not rendered by default.

350 changes: 350 additions & 0 deletions 06tooling/sec05Summary.html

Large diffs are not rendered by default.

Binary file added 07performance/img/CacheTranspose1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/CacheTranspose9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort _11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort _12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort _13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort _14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/insert_sort_9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07performance/img/merge_sort.jpg
Binary file added 07performance/img/merge_sort_1.jpg
Binary file added 07performance/img/merge_sort_2.jpg
Binary file added 07performance/img/merge_sort_3.jpg
Binary file added 07performance/img/merge_sort_4.jpg
Binary file added 07performance/img/merge_sort_6.jpg
Binary file added 07performance/img/merge_sort_7.jpg
Binary file added 07performance/img/merge_sort_8.jpg
Binary file added 07performance/img/merge_sort_9.jpg
356 changes: 356 additions & 0 deletions 07performance/index.html

Large diffs are not rendered by default.

352 changes: 352 additions & 0 deletions 07performance/sec00Motivation.html

Large diffs are not rendered by default.

640 changes: 640 additions & 0 deletions 07performance/sec01Complexity.html

Large diffs are not rendered by default.

509 changes: 509 additions & 0 deletions 07performance/sec02Memory.html

Large diffs are not rendered by default.

719 changes: 719 additions & 0 deletions 07performance/sec03Optimisation.html

Large diffs are not rendered by default.

361 changes: 361 additions & 0 deletions 08openmp/01_parallel_programming.html

Large diffs are not rendered by default.

1,233 changes: 1,233 additions & 0 deletions 08openmp/02_intro_openmp.html

Large diffs are not rendered by default.

739 changes: 739 additions & 0 deletions 08openmp/03_fractal_example.html

Large diffs are not rendered by default.

488 changes: 488 additions & 0 deletions 08openmp/04_cache_performance.html

Large diffs are not rendered by default.

309 changes: 309 additions & 0 deletions 08openmp/05_summary.html

Large diffs are not rendered by default.

Binary file added 08openmp/img/cfd.png
Binary file added 08openmp/img/fork_join.jpg
Binary file added 08openmp/img/fork_join.png
Binary file added 08openmp/img/mandelbrot.jpg
Binary file added 08openmp/img/moores_law.png
Binary file added 08openmp/img/neural_net.jpg
Binary file added 08openmp/img/pi_integration.png
Binary file added 08openmp/img/strong_scaling.png
Binary file added 08openmp/img/text_mandel.png
323 changes: 323 additions & 0 deletions 08openmp/index.html

Large diffs are not rendered by default.

Binary file added 09distributed_computing/images/GOL_Processes.jpg
Binary file added 09distributed_computing/images/Simple_Cluster.jpg
305 changes: 305 additions & 0 deletions 09distributed_computing/index.html

Large diffs are not rendered by default.

507 changes: 507 additions & 0 deletions 09distributed_computing/sec01DistributedMemoryModels.html

Large diffs are not rendered by default.

817 changes: 817 additions & 0 deletions 09distributed_computing/sec02ProgrammingWithMPI.html

Large diffs are not rendered by default.

423 changes: 423 additions & 0 deletions 10parallel_algorithms/AsynchronousMPI.html

Large diffs are not rendered by default.

580 changes: 580 additions & 0 deletions 10parallel_algorithms/WorkDepth.html

Large diffs are not rendered by default.

Binary file added 10parallel_algorithms/images/Batch1.png
Binary file added 10parallel_algorithms/images/MapCircuit.png
Binary file added 10parallel_algorithms/images/PartialScan.png
Binary file added 10parallel_algorithms/images/PartialScan2.png
Binary file added 10parallel_algorithms/images/PartialScan3.png
Binary file added 10parallel_algorithms/images/Pipeline.png
Binary file added 10parallel_algorithms/images/ReduceCircuit.png
Binary file added 10parallel_algorithms/images/SimpleCircuit.png
305 changes: 305 additions & 0 deletions 10parallel_algorithms/index.html

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:jammy-20221130

COPY .github/texlive /
RUN apt-get update -y; DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y $(cat /requirements.txt)

COPY .github/python /
RUN apt-get install -y python3 python3-pip python-is-python3; pip install -r /requirements.txt

COPY Gemfile /
RUN apt-get install -y ruby-full; gem install bundler; bundle check || bundle install --jobs=4 --retry=3; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
79 changes: 79 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
research-computing-with-cpp
===========================

Deployed at:

http://github-pages.ucl.ac.uk/research-computing-with-cpp


How to build the lessons locally
-----------------------------------

Clone and build the various output files (that step will need some dependencies)
``` bash
git clone https://github.com/UCL-RITS/research-computing-with-cpp
cd research-computing-with-cpp
./build.sh
```

Then you can proceed to build the website locally. The easiest is via docker.

```bash
mkdir ../bundle # To don't download every single time the ruby dependencies
docker run --rm --volume="$PWD:/srv/jekyll" --volume="$PWD/../bundle:/usr/local/bundle" -it jekyll/jekyll:4 jekyll build
python -m http.server -d _site
```

Dependencies
-------------

All the dependencies are set in the `.github/{texlive,python}/requirements.txt` for an ubuntu machine.

On a Mac, we use g++ installed via [homebrew](https://brew.sh/). So, for g++ version 7, we would run the build command as:

``` bash
CC=gcc-7 CXX=g++-7 ./build.sh
```

The explicit compiler selection is needed on Mac OS for OpenMP (and possibly MPI)
examples to build. Update the version number as necessary.

You will need to have a bunch of stuff installed in order for the build to succeed.
For Mac:
* Libraries:
* `brew install boost`
* For building MPI and OpenMP examples:
* `brew install open-mpi`
* `brew install gcc`
* Ruby stuff:
* `brew install ruby`
* `gem install jekyll --version '~> 4'`
* `gem install kramdown --version '~> 2.3.1'
* `gem install jekyll-remote-theme`
`
* Other utilities:
* `brew install wget`
* Python libraries:
* `matplotlib` (plus several other scientific python libraries)

A full LaTeX distribution needs to be available to generate a PDF version of the course notes by the build script.

Alternatively, you can build the docker container available and build the site through it:

```
$ docker build -t rcpp
$ docker run -it --rm --volume=$PWD:/root rcpp:latest bash
# cd
# ITK_DIR=/usr/lib/InsightToolkit ./build.sh
# make _site
```

Then in folder _site, you'll have the `html`'s.
Or, for a shortcut: `make preview`



See https://github.com/UCL-RITS/research-computing-with-cpp/blob/master/01cpp/index.md for an example of how to reference a C file, CMake file, and run an executable

And https://github.com/UCL-RITS/research-computing-with-cpp/tree/master/01cpp/cpp/hello
for the corresponding code
73 changes: 73 additions & 0 deletions assets/css/jekyll-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
div#slidelink {
float: right;
}

.hll { background-color: #ffffcc }
.c { color: #999988; font-style: italic } /* Comment */
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
.k { color: #000000; font-weight: bold } /* Keyword */
.o { color: #000000; font-weight: bold } /* Operator */
.cm { color: #999988; font-style: italic } /* Comment.Multiline */
.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
.c1 { color: #999988; font-style: italic } /* Comment.Single */
.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.ge { color: #000000; font-style: italic } /* Generic.Emph */
.gr { color: #aa0000 } /* Generic.Error */
.gh { color: #999999 } /* Generic.Heading */
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.go { color: #888888 } /* Generic.Output */
.gp { color: #555555 } /* Generic.Prompt */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: #aaaaaa } /* Generic.Subheading */
.gt { color: #aa0000 } /* Generic.Traceback */
.kc { color: #000000; font-weight: bold } /* Keyword.Constant */
.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
.kt { color: #445588; font-weight: bold } /* Keyword.Type */
.m { color: #009999 } /* Literal.Number */
.s { color: #d01040 } /* Literal.String */
.na { color: #008080 } /* Name.Attribute */
.nb { color: #0086B3 } /* Name.Builtin */
.nc { color: #445588; font-weight: bold } /* Name.Class */
.no { color: #008080 } /* Name.Constant */
.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
.ni { color: #800080 } /* Name.Entity */
.ne { color: #990000; font-weight: bold } /* Name.Exception */
.nf { color: #990000; font-weight: bold } /* Name.Function */
.nl { color: #990000; font-weight: bold } /* Name.Label */
.nn { color: #555555 } /* Name.Namespace */
.nt { color: #000080 } /* Name.Tag */
.nv { color: #008080 } /* Name.Variable */
.ow { color: #000000; font-weight: bold } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #009999 } /* Literal.Number.Float */
.mh { color: #009999 } /* Literal.Number.Hex */
.mi { color: #009999 } /* Literal.Number.Integer */
.mo { color: #009999 } /* Literal.Number.Oct */
.sb { color: #d01040 } /* Literal.String.Backtick */
.sc { color: #d01040 } /* Literal.String.Char */
.sd { color: #d01040 } /* Literal.String.Doc */
.s2 { color: #d01040 } /* Literal.String.Double */
.se { color: #d01040 } /* Literal.String.Escape */
.sh { color: #d01040 } /* Literal.String.Heredoc */
.si { color: #d01040 } /* Literal.String.Interpol */
.sx { color: #d01040 } /* Literal.String.Other */
.sr { color: #009926 } /* Literal.String.Regex */
.s1 { color: #d01040 } /* Literal.String.Single */
.ss { color: #990073 } /* Literal.String.Symbol */
.bp { color: #999999 } /* Name.Builtin.Pseudo */
.vc { color: #008080 } /* Name.Variable.Class */
.vg { color: #008080 } /* Name.Variable.Global */
.vi { color: #008080 } /* Name.Variable.Instance */
.il { color: #009999 } /* Literal.Number.Integer.Long */
.photograph {
background-color: #007e9e;
}
.header--mobile {
background-color: #007e9e;
border-bottom-color: #007e9e;
}

1 change: 1 addition & 0 deletions assets/css/print.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading

0 comments on commit 7ff1f7c

Please sign in to comment.