RBMD (Random Batch Molecular Dynamics) is a GPU-CPU heterogeneous accelerating molecular dynamics software baed on random batch series algorithms.
The third-party library vtk-m needs to be installed. First, clone the VTK-m from github on your_folder
git clone https://gitlab.kitware.com/vtk/vtk-m.git
Then switch to the branch: v1.9.0 (cat version.txt
to check the version of vtkm for install)
git checkout -b 1.9.0 v1.9.0
Finally, compile VTK-m with cmake (CUDA support required) , CMake/3.20, GCC/9.0, and CUDA/11.0 have been confirmed to be necessary for compiling VTK-m. Furthermore, the compilation process is related to the GPU driver, and if deploying on a server, it needs to be compiled on the compute nodes.
cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DVTKm_ENABLE_CUDA=ON -DVTKm_USE_64BIT_IDS=OFF -DVTKm_ENABLE_TESTING=OFF -DVTKm_ENABLE_RENDERING=OFF -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=your_folder/vtkm_out
And install in the vtkm-out
make -j$(nproc)
make install
For rbmd compilation,
your_folder
and switch to the dev
branch
git clone https://github.com/randbatch-md/rbmd.git
git checkout dev
build
folder
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_LINKER=your_folder/rbmd/framework/tools/Linux/Release/jsoncpp/lib64
rbmd
and then rbmd
is on the framework
folder
make -j$(nproc)
If the step for make
rbmd is wrong in the first time, the Linux
folder needs to be deleted
rm -rf your_folder/rbmd/framework/tools/Linux
and complie again.
If in the end of make
, the error cannot find -ljsoncpp
is occured, the environment variables needs to be specified in the ~/.bashrc
export LD_LIBRARY_PATH=your_folder/rbmd/framework/tools/Linux/Release/jsoncpp/lib64:$LD_LIBRARY_PATH
export LIBRARY_PATH=your_folder/rbmd/framework/tools/Linux/Release/jsoncpp/lib64:$LIBRARY_PATH
You can also pull the docker image and run docker dircetly
docker pull ghcr.io/randbatch-md/rbmd:1.0.0
docker run --rm --gpus all -it -v $PWD:/app rbmd /bin/bash -c "rbmd -j rbmd.json"
run the example json file rbmd.json
in framework
, then rbmd is executed
./rbmd -j rbmd.json
For more examples, please refer to the https://www.randbatch.com/guide/
Distributed under the GPL-3.0 License. See LICENSE.txt
for more information.
Weizhu scientific computing platform Link: https://github.com/randbatch-md