Skip to content

Uniform build system cmake to build all components#56

Open
samcom12 wants to merge 4 commits intoICME-India:mainfrom
samcom12:main
Open

Uniform build system cmake to build all components#56
samcom12 wants to merge 4 commits intoICME-India:mainfrom
samcom12:main

Conversation

@samcom12
Copy link
Copy Markdown

This PR will be useful to install microsim with cmake build system removing hardcoded dependency paths

Copilot AI and others added 4 commits April 12, 2026 11:20
- Add top-level CMakeLists.txt with per-solver opt-in flags
- Add Grand_Potential_Serial/CMakeLists.txt (gcc + libm)
- Add Grand_Potential_MPI/CMakeLists.txt (MPI + HDF5 + GSL)
- Add KKS_CuFFT/CMakeLists.txt (CUDA + cuFFT)
- Add KKS_FD_CUDA_MPI/CMakeLists.txt (CUDA separable + MPI + HDF5 + GSL)
- Add KKS_OpenCl/CMakeLists.txt (MPI + OpenCL + HDF5 + GSL)
- Add Cahn_Hilliard_FFT_2D/CMakeLists.txt (FFTW3)
- Add cmake/FindFFTW3.cmake custom find module
- Add docs/cmake_upgrade.md migration guide

Agent-Logs-Url: https://github.com/samcom12/MicroSim/sessions/653f1394-fccb-4a78-a946-ddc1e529fd46

Co-authored-by: samcom12 <13285627+samcom12@users.noreply.github.com>
…efaults

- Grand_Potential_MPI: replace /share/apps/gsl/* with GSL_ROOT_DIR
  auto-detected via gsl-config, fully overridable
- KKS_OpenCl: replace $(HOME)/gsl_2_7, /usr/local/cuda, /usr/include/hdf5
  with CUDA_HOME / GSL_ROOT_DIR / HDF5_INC_DIR variables
- KKS_FD_CUDA_MPI: remove spack-hash HDF5 and GSL paths; use empty
  defaults with inline instructions; fix NVHPC_ROOT default path

Build verified: Grand_Potential_Serial produces microsim_gp executable
via both `make` and `cmake --build`.

Agent-Logs-Url: https://github.com/samcom12/MicroSim/sessions/83c47819-1f44-4cb4-a635-26b7e4367139

Co-authored-by: samcom12 <13285627+samcom12@users.noreply.github.com>
…make

feat: upgrade build system to CMake, remove hardcoded paths, and add migration documentation
@samcom12
Copy link
Copy Markdown
Author

this will resolve

#55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants