Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

List of Examples

To build examples see a page hosted on Read the Docs.

Basic examples

STL Container with Custom Allocator

In the examples below, we occasionally use STL-compatible containers exist in metall/container/ for better readability. Those containers are just alias of the corresponding containers in Boost.Container and do not have Metall-specific features. Therefore, the data structures in the examples below are more like how to use STL containers with custom allocators rather than how to use containers with just Metall.

Metall (advanced)

Metall's Original Container

Graph

Concurrent Data Structure (experimental implementation)

Fallback Allocator

MPI (experimental implementation)

  • mpi_create.cpp and mpi_open.cpp

  • Use Metall with MPI program (each process creates its own Metall object).

  • Metall does not support multi-process, i.e., there is no inter-process synchronization mechanism in Metall. Metall assumes that each process access a different memory region. The examples above shows how to use Metall with MPI.

  • One can set a MPI CXX compiler to use by using 'MPI_CXX_COMPILE' CMake option.

C API