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.
Please clone the repository recursively.
git clone --recursive https://github.com/jiajunhanh/mpm3d.git
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.
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.