Skip to content

Support for OpenMPI (C/C++/Fortran) #5843

@DanielKatzman

Description

@DanielKatzman

Check for existing issues

  • Completed

Language

C, C++, Fortran (using OpenMPI library)

Tree Sitter parser link

https://github.com/tree-sitter/tree-sitter-c

Language server link

https://clangd.llvm.org/

Misc notes

OpenMPI is a critical library for High-Performance Computing (HPC). While it uses standard C/C++ syntax, it requires specific configuration for Language Servers like clangd to find the mpi.h headers.

Requested Features:

Automated Configuration: Automate the --query-driver argument in Zed's settings.json to point to the mpicc or mpicxx wrappers so headers are discovered automatically.

Snippets: Include common MPI boilerplate (e.g., MPI_Init, MPI_Comm_rank, MPI_Finalize, MPI_Bcast).

Task Templates: Provide built-in Zed tasks for running parallel code with mpirun or mpiexec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageA request to add a language extension

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions