Skip to content

Commit

Permalink
Programme MPI de base
Browse files Browse the repository at this point in the history
  • Loading branch information
plstonge committed Apr 22, 2024
1 parent 6e3f44d commit 2678086
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions demos/init_fin.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "mpi.h"

int main(int argc, char **argv)
{
int ierr;
ierr = MPI_Init(&argc, &argv);

/* On insère le reste du programme ici. */

ierr = MPI_Finalize();
}
13 changes: 13 additions & 0 deletions demos/init_fin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python

from mpi4py import MPI # MPI.Init() implicite

def main():
"""
Programme principal
"""

MPI.Finalize()

if __name__ == '__main__':
main()

0 comments on commit 2678086

Please sign in to comment.