开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 37

李鑫哲/cpp-taskflow

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (3)
标签 (20)
master
dev
fib
v3.10.0
v3.9.0
v3.8.0
v3.7.0
v3.6.0
v3.5.0
v3.4.0
v3.3.0
v3.2.0
v3.1.0
v3.0.0
v2.7.0
v2.6.0
v2.5.0
v2.4.0
v2.3.1
v2.3.0
v2.2.0
v2.1.0
v2.0.0
master
分支 (3)
标签 (20)
master
dev
fib
v3.10.0
v3.9.0
v3.8.0
v3.7.0
v3.6.0
v3.5.0
v3.4.0
v3.3.0
v3.2.0
v3.1.0
v3.0.0
v2.7.0
v2.6.0
v2.5.0
v2.4.0
v2.3.1
v2.3.0
v2.2.0
v2.1.0
v2.0.0
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (3)
标签 (20)
master
dev
fib
v3.10.0
v3.9.0
v3.8.0
v3.7.0
v3.6.0
v3.5.0
v3.4.0
v3.3.0
v3.2.0
v3.1.0
v3.0.0
v2.7.0
v2.6.0
v2.5.0
v2.4.0
v2.3.1
v2.3.0
v2.2.0
v2.1.0
v2.0.0
cpp-taskflow
/
docs
/
xml
/
ProjectMotivation.xml
cpp-taskflow
/
docs
/
xml
/
ProjectMotivation.xml
ProjectMotivation.xml 6.45 KB
一键复制 编辑 原始数据 按行查看 历史
Tsung-Wei Huang 提交于 2025年07月28日 17:42 +08:00 . updated docs
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.12.0" xml:lang="en-US">
<compounddef id="ProjectMotivation" kind="page">
<compoundname>ProjectMotivation</compoundname>
<title>Project Motivation</title>
<tableofcontents>
<tocsect>
<name>The Era of Multicore</name>
<reference>ProjectMotivation_1TheEraOfMulticore</reference>
</tocsect>
<tocsect>
<name>Heterogeneous Computing</name>
<reference>ProjectMotivation_1C0HeterogeneousComputing</reference>
</tocsect>
<tocsect>
<name>Loop-level Parallelism</name>
<reference>ProjectMotivation_1LoopLevelParallelism</reference>
</tocsect>
<tocsect>
<name>Task-based Parallelism</name>
<reference>ProjectMotivation_1TaskBasedParallelism</reference>
</tocsect>
<tocsect>
<name>The Project Mantra</name>
<reference>ProjectMotivation_1TheProjectMantra</reference>
</tocsect>
</tableofcontents>
<briefdescription>
</briefdescription>
<detaileddescription>
<para>Taskflow addresses a long-standing problem, <emphasis>how can we make it easier for C++ developers to quickly write parallel and heterogeneous programs with high performance scalability and simultaneous high productivity?</emphasis></para>
<sect1 id="ProjectMotivation_1TheEraOfMulticore">
<title>The Era of Multicore</title><para>In the past, we embrace <emphasis>free</emphasis> performance scaling on our software thanks to advances in manufacturing technologies and micro-architectural innovations. Approximately for every 1.5 year we can speed up our programs by simply switching to new hardware and compiler vendors that brings 2x more transistors, faster clock rates, and higher instruction-level parallelism. However, this paradigm was challenged by the power wall and increasing difficulties in exploiting instruction-level parallelism. The boost to computing performance has stemmed from changes to multicore chip designs.</para>
<para><image type="html" name="era_multicore.jpg" width="60%"></image>
</para>
<para>The above sweeping visualization (thanks to Prof. Mark Horowitz and his group) shows the evolution of computer architectures is moving toward multicore designs. Today, multicore processors and multiprocessor systems are common in many electronic products such as mobiles, laptops, desktops, and servers. In order to keep up with the performance scaling, it is becoming necessary for software developers to write parallel programs that utilize the number of available cores.</para>
</sect1>
<sect1 id="ProjectMotivation_1C0HeterogeneousComputing">
<title>Heterogeneous Computing</title><para>With the influence of artificial intelligence (AI) through new and merged workloads, heterogeneous computing becomes demanding and will continue to be heard for years to come. We have not just CPUs but GPUs, TPUs, FPGAs, and ASICs to accelerator a wide variety of scientific computing problems.</para>
<para><image type="html" name="CPU-vs-TPU-vs-GPU.png" width="60%"></image>
</para>
<para>The question is: <emphasis>How are we going to program these beasts?</emphasis> Writing a high-performance sequential program is hard. Parallel programming is harder. Parallel programming of heterogeneous devices is extremely challenging if we care about performance and power efficiency. Programming models need to deal with productivity versus performance.</para>
</sect1>
<sect1 id="ProjectMotivation_1LoopLevelParallelism">
<title>Loop-level Parallelism</title><para>The most basic and simplest concept of parallel programming is <emphasis>loop-level parallelism</emphasis>, exploiting parallelism that exists among the iterations of a loop. The program typically partitions a loop of iterations into a set of of blocks, either fixed or dynamic, and run each block in parallel. Below the figure illustrates this pattern.</para>
<para><image type="html" name="loop-level-parallelism.jpeg" width="50%"></image>
</para>
<para>The main advantage of the loop-based approach is its simplicity in speeding up a regular workload in line with Amdahl&apos;s Law. Programmers only need to discover independence of each iteration within a loop and, once possible, the parallel decomposition strategy can be easily implemented. Many existing libraries have built-in support to write a parallel-for loop.</para>
</sect1>
<sect1 id="ProjectMotivation_1TaskBasedParallelism">
<title>Task-based Parallelism</title><para>The traditional loop-level parallelism is simple but hardly allows users to exploit parallelism in more irregular applications such as graph algorithms, incremental flows, recursion, and dynamically-allocated data structures. To address these challenges, parallel programming and libraries are evolving from the tradition loop-based parallelism to the <emphasis>task-based</emphasis> model.</para>
<para><dotfile name="task-level-parallelism.dot"></dotfile>
</para>
<para>The above figure shows an example <emphasis>task dependency graph</emphasis>. Each node in the graph represents a task unit at function level and each edge indicates the task dependency between a pair of tasks. Task-based model offers a powerful means to express both regular and irregular parallelism in a top-down manner, and provides transparent scaling to large number of cores. In fact, it has been proven, both by the research community and the evolution of parallel programming standards, task-based approach scales the best with future processor generations and architectures.</para>
</sect1>
<sect1 id="ProjectMotivation_1TheProjectMantra">
<title>The Project Mantra</title><para>The goal of Taskflow is simple - <emphasis>We help developers quickly write parallel programs with high performance scalability and simultaneous high productivity</emphasis>. We want developers to write simple and effective parallel code, specifically with the following objectives:</para>
<para><itemizedlist>
<listitem><para>Expressiveness </para>
</listitem>
<listitem><para>Readability </para>
</listitem>
<listitem><para>Transparency</para>
</listitem>
</itemizedlist>
In a nutshell, code written with Taskflow explains itself. The transparency allows developers to focus on the development of application algorithms and parallel decomposition strategies, rather than low-level, system-specific details. </para>
</sect1>
</detaileddescription>
<location file="doxygen/cookbook/motivation.dox"/>
</compounddef>
</doxygen>
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

cpp-taskflow 是一个开源的 C++ 并行任务编程库,cpp-tastflow 非常快,只包含头文件,可以帮你快速编写包含复杂任务依赖的并行程序
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/li_xinCode/cpp-taskflow.git
git@gitee.com:li_xinCode/cpp-taskflow.git
li_xinCode
cpp-taskflow
cpp-taskflow
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /