Giter Site home page Giter Site logo

cpp_advanced_features's Introduction

Overview

The goal of this project is to provide small working examples demonstrating the incorporation of various library, code and github functionality into a larger code. All examples below assume a unix-like operating system and were run on Ubuntu release 16.04 LTS.

All examples presented here are written in c++ and outline any library dependencies along with command line instructions for how to observe the showcased functionality. Code to be entered on the command line is presented as: $ type_this_on_the_cmd_line.

The examples should generally be reviewed in order as they may assume knowledge of previous examples.

Libraries

MPICH

"MPICH is a high performance and widely portable implementation of the Message Passing Interface (MPI) standard." -MPICH website

Examples
To Do
  • building with various options: (after cmake is introduced, likely need to modify ex1)
    • ch3:nemesis vs. ch3:sock
    • --enable-debuginfo
    • optimization level
  • Debugging with Totalview

Doxygen

"Doxygen is the de facto standard tool for generating documentation from annotated C++ sources." -Doxygen website

Examples
To Do

Add examples usage of:

Presentation:

  • See the boostorg/hana github and doxygen generated html for an example of a professional project.

CMake

"CMake is an open-source, cross-platform family of tools designed to build, test and package software." -CMake website

Examples
To Do
  • Look into CTest (dashboard)
  • Use check_function_exists for: blas functions

Google Test

"Google Test is a unit testing library for the C++ programming language, based on the xUnit architecture." -Wikipedia

Examples
To Do
  • Usage of features outlined in the Advanced Guide:
    • ::testing::AssertionResult
    • Teaching Google Test How to Print Your Values
    • SCOPED_TRACE()
    • Sharing Resources Between Tests in the Same Test Case
    • Value Parameterized Tests
    • Typed Tests
    • Generating an XML Report
    • Turning Assertion Failures into Break-Points
    • Distributing Test Functions to Multiple Machines
  • combined with CTest, CMake and Boost (see this SO discussion)

CDash, CTest, valgrind, gcov

Eigen/Hypre/Petsc/Trilinos (To Do)

  • Eigen: Expression templates

blas (To Do)

Paraview (To Do)

Boost

  • stacktrace
  • Math
    • special functions
    • complex number functions
    • quaternion (hobby: 3D rotation investigation)
    • root finding, Polynomial and Rational Function Evaluation
  • Intrusive
  • MPI

GNU vs Clang (llvm) (Aditya mentioned potentially faster compile times for clang)

Code Functionality

Dynamic libraries (To Do)

Intrusive containers.

Automatic differentiation (To Do)

Templated functions (double/complex) for complex step verification, Explicit instantiation (To Do)

Flexible data types (float/double) (To Do)

Protected vs. Private class members (discussion of library modification without modifying the source because of allowed inheritance)

valarray vs vector

Use of restrict

Update list of inherited objects through corresponding list of base objects (Not sure if this is possible)

Github Functionality

Code coverage (To Do)

Build passing/failing (To Do)

License

The code is licensed under the GNU GPLv3.


cpp_advanced_features's People

Contributors

philipzwanenburg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.