jiajunhanh / mpm3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mpm3d

Implementing mpm3d using CUDA C++.

The mpm3d was originally written in Taichi.

You can change configures in mpm3d.cuh (e.g., change 'dim' from 3 to 2, or change 'Real' from float to double). It should compile correctly.

How to build

Please clone the repository recursively.

git clone --recursive https://github.com/jiajunhanh/mpm3d.git

Windows

Open this project with either Visual Studio or CLion.

See CUDA projects in CLion .

Make sure you have the newest version of MSVC, or you may get errors when building Eigen.

Linux

You can open this project with CLion (recommended).

See CUDA projects in CLion .

You can also build with Makefile.

make run
make run-release
make run-debug

Make sure you have installed CMake.

About


Languages

Language:Cuda 69.7%Language:Python 19.5%Language:CMake 4.4%Language:C++ 3.6%Language:Makefile 2.7%