GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UCL/research-computing-with-cpp: UCL-ARC *C++ for Research* course

BranchesTags
Open more actions menu

Latest commit

 

History

1,149 Commits
1,149 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
01projects
01projects
 
 
02cpp1
02cpp1
 
 
03cpp2
03cpp2
 
 
04cpp3
04cpp3
 
 
05libraries
05libraries
 
 
06tooling
06tooling
 
 
07performance
07performance
 
 
08openmp
08openmp
 
 
09distributed_computing
09distributed_computing
 
 
10parallel_algorithms
10parallel_algorithms
 
 
_includes
_includes
 
 
_plugins
_plugins
 
 
cmake
cmake
 
 
site-styles
site-styles
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Dockerfile
Dockerfile
 
 
Gemfile
Gemfile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
build.sh
build.sh
 
 
cover.md
cover.md
 
 
index.md
index.md
 
 
liquify.rb
liquify.rb
 
 
pyproject.toml
pyproject.toml
 
 
report.latex
report.latex
 
 

Repository files navigation

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)

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.

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. So, for g++ version 7, we would run the build command as:

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

About

UCL-ARC *C++ for Research* course

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

Topics

c-plus-pluscoursegpumpiopenmpucl

Resources

Readme
Activity
Custom properties

Stars

31 stars

Watchers

31 watching

Forks

20 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.