Loading...
Searching...
No Matches
thread_mpi Directory Reference

Files

 alltoall.cpp
 
 atomic.cpp
 
 atomic.h
 Atomic operations for fast SMP synchronization.
 
 barrier.cpp
 
 barrier.h
 
 bcast.cpp
 
 cce.h
 
 cce_intrinsics.h
 
 cce_spinlock.h
 
 collective.cpp
 
 comm.cpp
 
 cycles.h
 
 derived.h
 
 errhandler.cpp
 
 event.cpp
 
 event.h
 Event notification wait and signaling functions.
 
 fujitsu_sparc64.h
 
 gather.cpp
 
 gcc.h
 
 gcc_ia64.h
 
 gcc_intrinsics.h
 
 gcc_ppc.h
 
 gcc_spinlock.h
 
 gcc_x86.h
 
 group.cpp
 
 hwinfo.h
 CPU/core/HT count function.
 
 impl.h
 
 list.cpp
 
 list.h
 Lock-free list data structures.
 
 lock.cpp
 
 lock.h
 
 mpi_bindings.h
 MPI bindings for thread_mpi/tmpi.h.
 
 msvc.h
 
 numa_malloc.cpp
 
 numa_malloc.h
 NUMA aware memory allocators.
 
 once.cpp
 
 p2p.h
 
 p2p_buffer.cpp
 
 p2p_protocol.cpp
 
 p2p_send_recv.cpp
 
 p2p_wait.cpp
 
 profile.cpp
 
 profile.h
 
 pthreads.cpp
 
 pthreads.h
 
 reduce.cpp
 
 reduce_fast.cpp
 
 scan.cpp
 
 scatter.cpp
 
 settings.h
 
 suncc-sparc.h
 
 thread_mpi.h
 Convenience header file for non-MPI compatibility.
 
 thread_mpi_collective.h
 Collective functions.
 
 thread_mpi_internal_collective.h
 
 thread_mpi_tmpi.h
 Partial implementation of MPI using only threads.
 
 threads.h
 Platform-independent multithreading support.
 
 tmpi.h
 Convenience header file for MPI compatibility.
 
 tmpi_init.cpp
 
 tmpi_malloc.cpp
 
 tmpi_ops.h
 
 topology.cpp
 
 type.cpp
 
 unused.h
 
 visibility.h
 Visibility macros.
 
 wait.h
 
 winthreads.cpp
 
 winthreads.h
 
 xlc_ppc.h
 

Detailed Description

This module contains the namespaced GROMACS thread-MPI import. UPSTREAM.json is the single provenance record: it pins the resolved source commit and records SHA256 checksums for each original upstream file before import transformations. The license is copied from the pinned upstream tree. Like other vendored libraries, this module is excluded from the PLUMED-owned compiler-warning gate and coverage metrics. The mpiwrap adapter remains subject to both. The imported runtime has no PLUMED module dependencies (use: in module.yml); mpiwrap depends on it, rather than the runtime depending on core.

reimport.py discovers implementation sources and headers from the pinned upstream directory, flattens them into this directory, rewrites internal includes, and places C++ declarations and definitions in PLMD::thread_mpi. When flattened basenames collide, it derives stable names from their source roles and directory paths. Imported translation units retain the __PLUMED_HAS_THREAD_MPI guard. The importer formats generated C++ and headers with the project's required astyle options. Archive extraction accepts regular files only, rejects paths outside its temporary directory, and never follows archive symlinks or hard links.

To verify the recorded import against a local GROMACS checkout:

python3 src/thread_mpi/reimport.py /path/to/gromacs --check

To update from a local GROMACS tag or commit, pass it directly. The script resolves the commit, discovers source files, refreshes checksums, and writes the provenance record; no manual edits to UPSTREAM.json are needed. This also bootstraps the manifest if it is missing.

python3 src/thread_mpi/reimport.py /path/to/gromacs --ref v2026.4

To check a candidate ref without changing the import or its provenance, add --check:

python3 src/thread_mpi/reimport.py /path/to/gromacs --ref v2026.4 --check

Review any build or source-layout changes in the upstream release.

The standalone runtime tests live in regtest/basic/rt-mpiwrap-launcher. Build them from the repository root with:

cmake -S regtest/basic/rt-mpiwrap-launcher -B /tmp/thread-mpi-build
cmake --build /tmp/thread-mpi-build
ctest --test-dir /tmp/thread-mpi-build --output-on-failure
python3 regtest/basic/rt-mpiwrap-launcher/check-symbol-isolation.py /path/to/gromacs

MPI provider design, wrapper behavior, and validation limits are documented in ../mpiwrap/README.md.

The standalone suite includes a GROMACS-style MPI_* macro-surface test using mpi_bindings.h: 1, 2 and 4 ranks exchange a committed contiguous datatype and check communicator and predefined-value bindings. This uses the embedded tMPI sources; it does not build GROMACS or claim to test GROMACS integration. Sequential internal launches with different rank counts are also checked.