# Taskflow

> Header-only C++ library for task-parallel programs on CPUs and GPUs

Source: https://talira.ai/catalog/taskflow-7twzmg5m
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / concurrency](https://talira.ai/categories/libraries/concurrency), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Platforms: linux, windows, macos[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Tsung-Wei Huang](https://talira.ai/orgs/tsung-wei-huang.md)

Taskflow is a header-only C++20 library for writing task-parallel programs as graphs of tasks with dependencies. Tasks can spawn subflows, branch and loop with control-flow tasks, compose other task graphs and launch asynchronous tasks with dynamic dependencies, and an executor runs a graph once, several times or until a condition holds. It includes parallel algorithms (for_each, reduce, sort, pipelines), GPU tasks through NVIDIA CUDA Graph, a built-in profiler (TFProf) and DOT export for GraphViz. It runs on Linux, Windows and macOS with GCC, Clang, MSVC, Apple Clang, nvcc and Intel's compilers. Its author is Tsung-Wei Huang at the University of Wisconsin at Madison.

## Links

- Website: https://taskflow.github.io/
- GitHub: https://github.com/taskflow/taskflow
- Docs: https://taskflow.github.io/taskflow/index.html

## Problems it solves

- run dependent C++ tasks in parallel across all CPU cores
- parallelise loops, reductions and sorts in C++ without writing thread code
- mix CPU and GPU work in one C++ task graph

## Features

- Header-only: include the headers and compile
- Task graphs with dependencies, subflows and composition
- Control-flow tasks for branches and loops
- Asynchronous tasks with dynamic dependencies
- Parallel for_each, reduce, sort and pipelines
- GPU tasks through NVIDIA CUDA Graph
- TFProf profiler and DOT export for GraphViz

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.53, adoption 0.82, momentum 0.63, community 0.87, backing 0.30, extensibility 0.00.

- last commit 46 days ago
- 12 commits in the last 90 days
- latest release v4.1.0 5 months ago
- 12.3k GitHub stars
- 148 contributors
- accepts sponsorship (Github)
- backed by Tsung-Wei Huang

## Related

- Works with [C++](https://talira.ai/catalog/c-1n2509q6.md)

## Alternatives

- [RcppParallel](https://talira.ai/catalog/rcppparallel-x1krdytn.md): Parallel programming tools for Rcpp code in R packages

## Sources

[^1]: https://github.com/taskflow/taskflow/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/taskflow/taskflow/blob/master/README.md (checked 28 Nov 2026)
