Giter Club home page Giter Club logo

icnc's Introduction

##Intel(R) Concurrent Collections for C++

Parallelism without the Pain

The CnC homepage is here: https://icnc.github.io

###Prerequisites

###Building CnC You need cmake to prepare building the CnC libraries from source. A python script is provided for your convenience to build the package:

cd <cnc_src_root>
python make_kit.py

It will create a tbz package for you in directory <cnc_src_root>/kit.pkg where you also find an "installation" of CnC under <cnc_src_root>/kit.pkg/cnc/current

You can specify the MPI root/install-dir with "--mpi=<mpiroot>. Also try "python make_kt.py -h" for more options.

####Building CnC using CnC directly You can of course drive cmake yourself. It is recommended to avoid in-source builds and to do something like

cd <cnc_src_root>
mkdir build
cd build
cmake <options> ..

Primary <options> for building the CnC libraries are

  • Build libraries to use MPI (distributed memory): -DBUILD_LIBS_FOR_MPI=TRUE
  • Build libraries for profiling with Intel(R) Trace Analyzer and Collector: -DBUILD_LIBS_FOR_ITAC=TRUE
  • See generic options below

After successfully running cmake you can you use preferred build tool to build the libraries: On Linux, just type 'make', On Windows use the tool according to the generator you selected above.

The libraries will be build in the "build" directory, on Linux in "lib", on Windows you'll find them in "Debug" or "Release".

###Building CnC samples Building samples also requires cmake.

cd <cnc_src_root>
mkdir build
cd build
cmake <options> ..

Primary <options> for building samples are

  • Specify CnC install/root directory: -DCNCROOT=<path_to_cnc>
  • Enable distributed memory: -DDIST_CNC=TRUE
  • Enable hooks for tracing with Intel(R) Trace Analyzer and Collector: -DUSE_ITAC=TRUE
  • See generic options below

After successfully running cmake you can you use preferred build tool to build the samples: On Linux, just type 'make', On Windows use the tool according to the generator you selected above.

###Generic cmake options

  • Linux*: Select optimized or debug build mode: -DCMAKE_BUILD_TYPE=[Release|Debug]
  • Windows*: Select appropriate generator
    • For nmake: -G "NMake Makefiles"
    • For Visual Studio 2010 32bit: -G "Visual Studio 10"
    • For Visual Studio 2010 64bit: -G "Visual Studio 10 Win64"
    • For Visual Studio 2011 32bit: -G "Visual Studio 11"
    • For Visual Studio 2011 64bit: -G "Visual Studio 11 Win64"
    • For Visual Studio 2012 32bit: -G "Visual Studio 12"
    • For Visual Studio 2012 64bit: -G "Visual Studio 12 Win64"
  • Specify TBB install/root directory: -DTBBROOT=<path_to_tbb> (defaults to $TBBROOT)
  • Specify MPI install/root directory: -DMPIROOT=<path_to_mpi> (defaults to $I_MPI_ROOT)
  • Specify ITAC install/root directory: -DITACROOT=<path_to_itac> (defaults to $VT_ROOT)

###Testing See tests/ReadMe.txt.

###Code documentation Most header files start with a description of the functionality of the given module. As this is a template library, most code is actually in header files.

###Source structure All header files which are need to write a CnC application with pre-compiled libraries resides in the cnc directory. Internal headers are in cnc/internal, internals for distributed memory can be found in cnc/internal/dist. Anything else is in src.

Every class has its own header-file (and sometimes also a cpp file).

###Your contribution is welcome!

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.