Skip to content

Running 2D CH on Summit

rvinaybharadwaj edited this page Nov 4, 2021 · 17 revisions

Load Modules

module purge
module load gcc
module load cmake
module load boost
module load cuda

Conda install

conda install numpy scipy matplotlib pyyaml setuptools cmake cffi typing pandas 

Install PyTorch and mpi4py

How to use CH and image_struct repositories

Please read Software Requirement of README file (https://github.com/exalearn/online_rl_ch#software-requirement) to understand how to use ch and image_struct

Software Requirement

  • Python 3.7 with PyTorch
  • You can get submodules of "CH simulation" and "image structure" by cloning this repository recursively
  • Use docker branch for image_structure, and docker-devel branch for cahnhilliard_2d

2D simulation by Anthony M. DeGennaro

Image Structure by Anthony M. DeGennaro and Kevin G. Yager

  • Anthony modified Kevin's image structure generator, and it outputs about 200 components for each image by default.

Build

cd [/PATH/TO]/cahnhilliard_2d/cpp \
mkdir build/ \
cd build/  

cc=gcc \
cxx=g++ \
cflags="-O3 -fopenmp" \
cxxflags="-std=gnu++11 -O3 -fopenmp"  \
cmake -DCMAKE_C_FLAGS="${cflags}" \
      -DCMAKE_CXX_FLAGS="${cxxflags}" \
      -DCMAKE_CXX_COMPILER=${cxx} \
      -DCMAKE_C_COMPILER=${cc} \
      -DCMAKE_INSTALL_PREFIX=${PWD}/../install \
      .. \
make