Acceleration of Tensor-Product Operations with Tensor Cores

加速度 张量(固有定义) 张量积 Hilbert空间的张量积 张量收缩 物理 数学 几何学 经典力学 纯数学
作者
Cu Cui
出处
期刊:Cornell University - arXiv
标识
DOI:10.48550/arxiv.2407.09621
摘要

In this paper, we explore the acceleration of tensor product operations in finite element methods, leveraging the computational power of the NVIDIA A100 GPU Tensor Cores. We provide an accessible overview of the necessary mathematical background and discuss our implementation strategies. Our study focuses on two common programming approaches for NVIDIA Tensor Cores: the C++ Warp Matrix Functions in nvcuda::wmma and the inline Parallel Thread Execution (PTX) instructions mma.sync.aligned. A significant focus is placed on the adoption of the versatile inline PTX instructions combined with a conflict-free shared memory access pattern, a key to unlocking superior performance. When benchmarked against traditional CUDA Cores, our approach yields a remarkable 2.3-fold increase in double precision performance, achieving 8 TFLOPS/s-45% of the theoretical maximum. Furthermore, in half-precision computations, numerical experiments demonstrate a fourfold enhancement in solving the Poisson equation using the flexible GMRES (FGMRES) method, preconditioned by a multigrid method in 3D. This is achieved while maintaining the same discretization error as observed in double precision computations. These results highlight the considerable benefits of using Tensor Cores for finite element operators with tensor products, achieving an optimal balance between computational speed and precision.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
小鸡毛完成签到,获得积分10
刚刚
hhhhhyc完成签到 ,获得积分10
刚刚
齐天小圣完成签到 ,获得积分10
1秒前
1秒前
曲光彩发布了新的文献求助10
2秒前
2秒前
炙热依瑶完成签到 ,获得积分10
3秒前
3秒前
3秒前
tianmengkui发布了新的文献求助10
3秒前
4秒前
敬老院N号发布了新的文献求助10
4秒前
lilili2060完成签到,获得积分10
4秒前
赘婿应助1464855271采纳,获得20
5秒前
量子星尘发布了新的文献求助10
5秒前
完美誉发布了新的文献求助20
6秒前
yulou2199发布了新的文献求助10
6秒前
6秒前
6秒前
正直的语琴完成签到,获得积分10
6秒前
7秒前
wangshuyan完成签到,获得积分10
7秒前
7秒前
量子星尘发布了新的文献求助10
7秒前
小胖完成签到 ,获得积分10
7秒前
8秒前
9秒前
冉冉发布了新的文献求助10
9秒前
peachhhh完成签到,获得积分10
10秒前
10秒前
林木木发布了新的文献求助10
11秒前
Suzi完成签到 ,获得积分10
11秒前
wong完成签到,获得积分10
12秒前
kirito发布了新的文献求助10
12秒前
甜蜜的曼梅完成签到,获得积分10
13秒前
六六完成签到 ,获得积分10
14秒前
14秒前
lgh发布了新的文献求助30
15秒前
王文茹完成签到,获得积分10
15秒前
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Encyclopedia of Quaternary Science Reference Third edition 6000
Encyclopedia of Forensic and Legal Medicine Third Edition 5000
Agyptische Geschichte der 21.30. Dynastie 2000
Electron Energy Loss Spectroscopy 1500
Processing of reusable surgical textiles for use in health care facilities 500
Population genetics 2nd edition 500
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5805317
求助须知:如何正确求助?哪些是违规求助? 5848844
关于积分的说明 15515865
捐赠科研通 4930619
什么是DOI,文献DOI怎么找? 2654670
邀请新用户注册赠送积分活动 1601485
关于科研通互助平台的介绍 1556489