# cedricdada/cours_ensta_2025 architecture

> Architecture diagram of the GitHub repository cedricdada/cours_ensta_2025, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cedricdada/cours_ensta_2025
- Repository: https://github.com/cedricdada/cours_ensta_2025

## Overview

The project under review is not a traditional application meant for end-user deployment but rather a comprehensive academic repository for parallel computing, message passing (MPI), simulation and distributed algorithm examples. It contains course-specific examples (“Exemples”), multiple simulation projects (“projet”), lab assignments (“travaux_diriges”), and supporting materials (documents and templates under “supports” and “transparents”). The README (“Cours_Ensta_2025 – Cours OS 202”) confirms that this repository is designed for an operating systems/parallel processing course context.

##### Main Components
- Projet: Contains simulation projects that are built with different source versions (“src_0”, “src_1”, etc.). Each src subdirectory includes source code, makefiles, and output files for simulation, suggesting variations (possibly sequential vs. parallel implementations) and configuration variations per operating system.
- Travaux_diriges: Holds multiple lab assignments and exam projects (TP1, TP2, TP3, TP4) with distinct implementations (e.g., parallel sorting, Mandelbrot, game of life), including LaTeX-generated documents describing the architecture.
- Supports & Transparents: These folders provide supporting documents such as PDF and TeX files that serve as background educational materials and templates.
- Additional tools and configuration files (e.g., .vscode settings, Make_*.inc files) indicate instructions for building and debugging the projects.

##### Relationships and Interactions
- For “Travaux_diriges”, detail that these are exam/lab projects that also produce both code (in languages like C, C++, and Python) and documentation (produced using LaTeX). Illustrate a flow from source code to compiled executables to output (performance measurements, CSV, MD5 sums) with annotations on experimental designs.

##### Important Architectural Patterns and Design Principles
- Modularity: The repository is organized by teaching modules. Each main folder acts as an independent module illustrating certain aspects of parallel architectures and programming (MPI, OpenMP, etc.).
- Reusability & Configuration Flexibility: In “projet”, repeated use of similarly structured source folders (src_0, src_1, …) and multiple makefiles for different operating systems highlight an emphasis on platform abstraction and modular build configurations.
- Documentation and Extensibility: The inclusion of detailed LaTeX documents and examples (in both README files and “travaux_diriges”) suggests the design has strong educational documentation intended for review, extension, or modification by students.

##### Relevant Technologies, Frameworks, and Languages
- Programming Languages: C, C++, Python (as seen by simulation.cpp, mpi_*.py, and MPI examples)
- Parallel Frameworks: MPI (for message-passing experiments), OpenMP (hinted from file names like pi_openmp.c)
- Build Tools: Makefiles and OS-specific configuration files (Make_linux.inc, Make_osx.inc, etc.) indicate a build system designed to target multiple environments.
- Documentation Tools: LaTeX (used in “travaux_diriges” and “supports”) for creating the architectural documents and exam reports.

- That every major component (the core simulation engine, MPI kernels, documentation, and support files) is represented, and above all, document the configuration and build differences.

## Diagram (Mermaid)

```mermaid
flowchart TD

    subgraph "Lecture and Example Modules (Exemples)"
        C2["Course2 Examples"]:::exemplesStyle
        C3["Course3 Examples"]:::exemplesStyle
        MPIE["MPI Examples"]:::exemplesStyle
    end

    subgraph "Simulation Projects (Projet)"
        SModules["Simulation Sources (src_0-4)"]:::projetStyle
        MBuild["Makefile Driven Build"]:::projetStyle
        SOutput["Simulation Outputs"]:::projetStyle
        SModules -->|"buildTriggers"| SOutput
        MBuild -->|"buildRules"| SOutput
    end

    subgraph "Lab/Exam Assignments (Travaux_diriges)"
        LAssignments["Lab Assignments (TP1-TP4)"]:::travauxStyle
        LResults["Execution & Results"]:::travauxStyle
        LAssignments -->|"compilation"| LResults
    end

    subgraph "Supporting Documentation (Supports & Transparents)"
        SUPP["Supports Materials"]:::supportStyle
        TRANSP["Transparents Materials"]:::supportStyle
        SUPP -->|"references"| TRANSP
    end

    subgraph "Build and Configuration Tools"
        vscode["VSCode Settings"]:::buildStyle
        makeConfigs["Make_* Configs"]:::buildStyle
        vscode --> makeConfigs
    end

    %% Overall Vertical Flow Connections
    C2 --> C3
    C3 --> MPIE
    MPIE --> SModules
    SOutput --> LAssignments
    LResults --> SUPP

    %% Build Tools Integration with Projects and Lab Assignments
    vscode --> MBuild
    makeConfigs --> MBuild
    vscode --> LAssignments
    makeConfigs --> LAssignments

    %% Click Events for Components
    click C2 "https://github.com/cedricdada/cours_ensta_2025/tree/main/Exemples/"
    click C3 "https://github.com/cedricdada/cours_ensta_2025/tree/main/Exemples/"
    click MPIE "https://github.com/cedricdada/cours_ensta_2025/tree/main/Exemples/"
    click SModules "https://github.com/cedricdada/cours_ensta_2025/tree/main/projet/"
    click MBuild "https://github.com/cedricdada/cours_ensta_2025/tree/main/projet/"
    click SOutput "https://github.com/cedricdada/cours_ensta_2025/tree/main/projet/"
    click LAssignments "https://github.com/cedricdada/cours_ensta_2025/tree/main/travaux_diriges/"
    click LResults "https://github.com/cedricdada/cours_ensta_2025/tree/main/travaux_diriges/"
    click SUPP "https://github.com/cedricdada/cours_ensta_2025/tree/main/supports/"
    click TRANSP "https://github.com/cedricdada/cours_ensta_2025/tree/main/transparents/"
    click vscode "https://github.com/cedricdada/cours_ensta_2025/tree/main/.vscode/"
    click makeConfigs "https://github.com/cedricdada/cours_ensta_2025/tree/main/projet/"

    %% Style Definitions
    classDef exemplesStyle fill:#AED6F1,stroke:#1F618D,stroke-width:2px;
    classDef projetStyle fill:#A9DFBF,stroke:#239B56,stroke-width:2px;
    classDef travauxStyle fill:#F9E79F,stroke:#B7950B,stroke-width:2px;
    classDef supportStyle fill:#F5B7B1,stroke:#922B21,stroke-width:2px;
    classDef buildStyle fill:#D7BDE2,stroke:#6C3483,stroke-width:2px;
```
