Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNAPSE

SYNAPSE is a programming model and compiler frontend for task-level dataflow systems.

Repository Layout

python/synapse/          Python package source
python/synapse/frontend  Source capture and frontend parser utilities
examples/                Small frontend examples
tests/                   Pytest tests
mlir/neura/              Downstream NEURA / Taskflow compiler stack

Setup

Create or activate a Python environment, then install SYNAPSE in editable mode from the repository root:

cd $PROJECT_PATH/synapse
python -m pip install -e .

Editable install only needs to be done once per environment. After that, changes under python/synapse/ are picked up directly.

For tests, install pytest:

python -m pip install pytest

Run The GEMM Parser Example

cd $PROJECT_PATH/synapse
python examples/gemm.py

The example parses a plain Python GEMM function and prints its Python AST. At this stage, the GEMM function is not executed; SYNAPSE only reads its source.

Run Tests

cd $PROJECT_PATH/synapse
pytest -q

The current tests check that the frontend parser can capture a Python GEMM function and expose the expected AST nodes.

About

A Dataflow Programming Model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages