Skip to content

Commit

Permalink
add README and changelog for v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Feb 13, 2024
1 parent 347ce31 commit b2ed6e1
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
72 changes: 72 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Lightweight Communication Wrapper (LCW)
A flexible communication wrapper layer.

## Authors

- \@JiakunYan ([email protected])

## Overview

The Lightweight Communication Wrapper (LCW) is designed to be a common denominator of multiple communication
libraries. It is originated as a minimum communication interface to efficiently support
Asynchronous Many-Task Systems (AMTs) while with the expectation to also be applicable to a broad array of
applications. It can also be viewed as a testbed to evaluate different communication libraries in the contexts
of multithreaded, irregular, fine-grained communications. The major features of its API includes
- Communication backend selection during runtime.
- The communication device abstraction.
- One-sided dynamic put primitives.
- Two-sided send/recv primitives.
- Queue-based completion notification mechanisms.
- Explicit progress functions.

The actual API and (some) documentation are located in [lcw.hpp](src/api/lcw.hpp).

Currently, it has the following communication backend implementation
- [MPI](https://www.mpi-forum.org/)
- [LCI](https://github.com/uiuc-hpc/LC)

Currently, it supports the following clients
- [HPX](https://github.com/STEllAR-GROUP/hpx) (The HPX/LCW backend sits in a
[special fork branch](https://github.com/uiuc-hpc/hpx/tree/lcw-pp). It has
not been merged to the HPX master branch.)

## Installation
LCW depends on LCT (The Lightweight Communication Tools), which is co-located with
[LCI](https://github.com/uiuc-hpc/LC) (Check LCI's `LCI_WITH_LCT_ONLY` cmake variable).
LCT does not have any special dependents and should be easy to install.

After that,
```
cmake .
make
make install
```

### Important CMake variables
- `CMAKE_INSTALL_PREFIX=/path/to/install`: Where to install LCW
- This is the same across all the cmake projects.
- `LCW_DEBUG=ON/OFF`: Enable/disable the debug mode (more assertions and logs).
The default value is `OFF`.
- `LCW_TRY_ENABLE_BACKEND_LCI`: whether to try to find LCI and, if found, enable the LCI backend.
The default value is `ON`.
- `LCW_TRY_ENABLE_BACKEND_MPI`: whether to try to find MPI and, if found, enable the MPI backend.
The default value is `ON`.

## Run LCI applications

We use the same mechanisms as MPI to launch LCW processes, so you can use the same way
you run MPI applications to run LCW applications. Typically, it would be `mpirun` or
`srun`. For example,
```
mpirun -n 2 ./hello_world
```
or
```
srun -n 2 ./hello_world
```

## Write an LCI program

See [examples](examples) for some example code.

See [lcw.hpp](src/api/lcw.hpp) for public APIs.
5 changes: 5 additions & 0 deletions doc/changelog_0_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change log for LCW v0.1

## Major Changes
- Complete the first version of the LCI and MPI backends.
- Complete the LCW multithreaded pingpong benchmarks.

0 comments on commit b2ed6e1

Please sign in to comment.