Skip to content

timspainUCL/research-computing-with-cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

research-computing-with-cpp

Deployed at:

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

We normally build these locally on a Mac. We use g++ installed via homebrew. So, for g++ version 7, we would:

git clone https://github.com/UCL-RITS/research-computing-with-cpp
cd research-computing-with-cpp
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 liquid
    • gem install jekyll
    • gem install redcarpet
  • Other utilities:
    • brew install wget

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

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.0%
  • Fortran 11.2%
  • CMake 2.8%
  • C 2.1%
  • Cuda 1.3%
  • Shell 0.2%
  • Other 0.4%