Material Point Method based Fluid Simulation on GPU using Compute Shader

被引:0
作者
Dharma, Dody [1 ]
Jonathan, Cliff [1 ]
Kistidjantoro, A. Imam [1 ]
Manaf, Afwarman [1 ]
机构
[1] Inst Teknol Bandung, Sch Elect Engn & Informat, Informat Res Grp, Bandung, Indonesia
来源
2017 4TH INTERNATIONAL CONFERENCE ON ADVANCED INFORMATICS, CONCEPTS, THEORY, AND APPLICATIONS (ICAICTA) PROCEEDINGS | 2017年
关键词
fluid; simulation; MPM; GPU; compute shader; OpenGL;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Fluid simulation, specifically the Material Point Method (MPM) based simulation, requires a large number of particles and a big grid size to create a realistic looking simulation. This paper explains what we can do to improve the performance of the simulation by using compute shader and the strategy behind it. Compute shader is a shader used for General Purpose Graphics Processing Unit (GPGPU) programming, running in a separate pipeline than the rendering pipeline. Since the MPM simulation requires serialized code to update the values of the grid nodes and particles, it becomes a challenge to implement it into a parallelized code that can be run on the GPU with compute shader. First, we have to plan which part of the code that can be parallelized. We also have to translate the code into a GLSL program that doesn't have any C/C++ pointer and Object Oriented class. We then compare the simulation performance between the one running on CPU and the compute shader one, and see how much improvement is made by implementing it with compute shader.
引用
收藏
页数:6
相关论文
共 16 条
  • [1] [Anonymous], About CUDA
  • [2] Braithwaite W., MIXING GRAPHICS COMP
  • [3] Dharma D., 2015, ICAICTA 2015
  • [4] Govindaraju N.K., 2008, P ACMIEEE C SUPERCOM, DOI [10.1109/SC.2008.5213922, DOI 10.1109/SC.2008.5213922]
  • [5] Petascale Application of a Coupled CPU-GPU Algorithm for Simulation and Analysis of Multiphase Flow Solutions in Porous Medium Systems
    McClure, James E.
    Wang, Hao
    Prins, Jan F.
    Miller, Cass T.
    Feng, Wu-Chun
    [J]. 2014 IEEE 28TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM, 2014,
  • [6] Meng C., 2014, JOUNAL COMPUTER FLUI
  • [7] Nvidia, NVIDIA ACC COMP
  • [8] Nvidia, 2016, GEF GTX TIT X PASC
  • [9] Pat B., 2014, ARB COMPUTE SHADER
  • [10] Richmond P., 2009, P 8 INT C AUTONOMOUS, V2, P1125, DOI DOI 10.1093/BIB/BBP073