snippetbashTip
mpicc — Open MPI C wrapper compiler. More information: <https://www.mpich.org/static/docs/latest/www1/mpicc.
Viewed 0 times
mpicccommandclimpiopencompilerwrappermore
Problem
How to use the
mpicc command: Open MPI C wrapper compiler. More information: <https://www.mpich.org/static/docs/latest/www1/mpicc.html>.Solution
mpicc — Open MPI C wrapper compiler. More information: <https://www.mpich.org/static/docs/latest/www1/mpicc.html>.Compile a source code file into an object file:
mpicc -c {{path/to/file}}.cLink an object file and make an executable:
mpicc -o {{executable}} {{path/to/object_file}}.oCompile and link source code in a single command:
mpicc -o {{executable}} {{path/to/file}}.cCode Snippets
Compile a source code file into an object file
mpicc -c {{path/to/file}}.cLink an object file and make an executable
mpicc -o {{executable}} {{path/to/object_file}}.oCompile and link source code in a single command
mpicc -o {{executable}} {{path/to/file}}.cContext
tldr-pages: common/mpicc
Revisions (0)
No revisions yet.