USCCACS / RXMD

RXMD : Linear-Scaling Parallel Reactive Molecular Dynamics Simulation Engine
https://magics.usc.edu/rxmd/
GNU General Public License v3.0
23 stars 14 forks source link

Change RXMD's build system to CMake #51

Closed TaufeqRazakh closed 1 year ago

TaufeqRazakh commented 1 year ago

Work in progress

TODO:
TaufeqRazakh commented 1 year ago

Currently testing with the following build recipe from RXMD project directory (root)

module use /soft/modulefiles/
module load spack
module load cmake
module load PrgEnv-gnu
module load frameworks/2023.05.15.001

rm -rfv build
mkdir build
cd build

cmake -DCMAKE_CXX_COMPILER=icpx \
-DTorch_DIR=/soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/torch/share/cmake/Torch/ \
-DIPEX_DIR=/soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/share/cmake/IPEX/ \
-DCMAKE_Fortran_COMPILER=mpif90 \
-DRXMD_ENABLE_TORCH=ON \
-DRXMD_ENABLE_IPEX=ON \
..
ye-luo commented 1 year ago

Use

-DTorch_ROOT=/soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/torch
-DIPEX_ROOT=/soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch

instead