A Low-Level Virtual Machine Just-In-Time Prototype for Running an Energy-Saving Hardware-Aware Mapping Algorithm on C/C++ Applications That Use Pthreads

POSIX线程 计算机科学 编译程序 线程(计算) 并行计算 虚拟机 操作系统 嵌入式系统
作者
Iulia Știrb,Gilbert-Rainer Gillich
出处
期刊:Energies [Multidisciplinary Digital Publishing Institute]
卷期号:16 (19): 6781-6781
标识
DOI:10.3390/en16196781
摘要

Low-Level Virtual Machine (LLVM) compiler infrastructure is a useful tool for building just-in-time (JIT) compilers, besides its reliable front end represented by a clang compiler and its elaborated middle end containing different optimizations that improve the runtime performance. This paper specifically addresses the part of building a JIT compiler using an LLVM with the scope of obtaining the hardware architecture details of the underlying machine such as the number of cores and the number of logical cores per processing unit and providing them to the NUMA-BTLP static thread classification algorithm and to the NUMA-BTDM static thread mapping algorithm. Afterwards, the hardware-aware algorithms are run using the JIT compiler within an optimization pass. The JIT compiler in this paper is designed to run on a parallel C/C++ application (which creates threads using Pthreads), before the first time the application is executed on a machine. To achieve this, the JIT compiler takes the native code of the application, obtains the corresponding LLVM IR (Intermediate Representation) for the native code and executes the hardware-aware thread classification and the thread mapping algorithms on the IR. The NUMA-Balanced Task and Loop Parallelism (NUMA-BTLP) and NUMA-Balanced Thread and Data Mapping (NUMA-BTDM) are expected to optimize the energy consumption by up to 15% on the NUMA systems.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
rodney2023完成签到,获得积分10
2秒前
Mipe发布了新的文献求助10
2秒前
汉堡包应助ikun采纳,获得10
2秒前
kkl应助xuke采纳,获得10
4秒前
5秒前
安东尼奥完成签到,获得积分10
5秒前
5秒前
紫津发布了新的文献求助10
7秒前
zhl完成签到,获得积分10
8秒前
wenwen完成签到,获得积分20
8秒前
皮皮完成签到 ,获得积分10
8秒前
12完成签到,获得积分20
9秒前
冷傲的如凡完成签到,获得积分10
10秒前
11秒前
无语的怜梦完成签到,获得积分10
13秒前
13秒前
Alan完成签到,获得积分10
14秒前
14秒前
乌衣白马完成签到,获得积分10
14秒前
zhjp完成签到,获得积分10
15秒前
mars9758完成签到,获得积分10
16秒前
鹊起完成签到 ,获得积分20
16秒前
合适书竹完成签到,获得积分20
16秒前
17秒前
十六发布了新的文献求助10
20秒前
轩辕老6⃣️完成签到,获得积分10
21秒前
23秒前
sewing完成签到 ,获得积分10
23秒前
神秘的帅哥完成签到,获得积分10
24秒前
老实纲完成签到,获得积分10
24秒前
搜集达人应助十六采纳,获得10
25秒前
123完成签到,获得积分10
25秒前
一个巨型懒懒完成签到,获得积分10
26秒前
27秒前
wanci应助岚婘采纳,获得10
27秒前
28秒前
Mipe完成签到,获得积分10
29秒前
发nature完成签到 ,获得积分10
29秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Organometallic Chemistry of the Transition Metals 800
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
The formation of Australian attitudes towards China, 1918-1941 640
Signals, Systems, and Signal Processing 610
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6435301
求助须知:如何正确求助?哪些是违规求助? 8250113
关于积分的说明 17547868
捐赠科研通 5493588
什么是DOI,文献DOI怎么找? 2897622
邀请新用户注册赠送积分活动 1874176
关于科研通互助平台的介绍 1715286