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
1秒前
镜哥完成签到,获得积分10
1秒前
garyaa完成签到,获得积分10
1秒前
2秒前
2秒前
2秒前
17完成签到,获得积分10
2秒前
今后应助冷静的毛豆采纳,获得20
2秒前
2秒前
小马哥36发布了新的文献求助10
2秒前
ttttttuu发布了新的文献求助10
2秒前
甜美的秋凌完成签到,获得积分10
3秒前
10发布了新的文献求助10
4秒前
高高完成签到 ,获得积分10
4秒前
AAAAAAAAAAA发布了新的文献求助10
4秒前
5秒前
wxaaaa完成签到,获得积分10
5秒前
李爱国应助dd采纳,获得10
6秒前
7秒前
Jasper应助感性的凉面采纳,获得10
8秒前
8秒前
9秒前
9秒前
10秒前
情怀应助顺顺采纳,获得10
10秒前
garyaa发布了新的文献求助10
10秒前
10秒前
NexusExplorer应助奔奔采纳,获得10
10秒前
Orange应助Clean采纳,获得10
11秒前
Lucas应助ww采纳,获得10
11秒前
12秒前
ttttttuu完成签到,获得积分10
12秒前
13秒前
刘涵完成签到 ,获得积分10
13秒前
小马甲应助zhui采纳,获得10
13秒前
10完成签到,获得积分10
13秒前
13秒前
13秒前
Rainielove0215完成签到,获得积分0
14秒前
zz完成签到,获得积分10
15秒前
高分求助中
Continuum Thermodynamics and Material Modelling 3000
Production Logging: Theoretical and Interpretive Elements 2700
Social media impact on athlete mental health: #RealityCheck 1020
Ensartinib (Ensacove) for Non-Small Cell Lung Cancer 1000
Unseen Mendieta: The Unpublished Works of Ana Mendieta 1000
Bacterial collagenases and their clinical applications 800
El viaje de una vida: Memorias de María Lecea 800
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 基因 遗传学 物理化学 催化作用 量子力学 光电子学 冶金
热门帖子
关注 科研通微信公众号,转发送积分 3527884
求助须知:如何正确求助?哪些是违规求助? 3108006
关于积分的说明 9287444
捐赠科研通 2805757
什么是DOI,文献DOI怎么找? 1540033
邀请新用户注册赠送积分活动 716904
科研通“疑难数据库(出版商)”最低求助积分说明 709794