How to compile MPI with gcc?

前端 未结 6 1608
忘掉有多难
忘掉有多难 2021-01-31 09:31

Does anyone know if it is possible to compile MPI with gcc?. I need to use gcc, no mpicc.

6条回答
  •  甜味超标
    2021-01-31 09:53

    Yes, you can certainly compile an MPI program without the convenience of the mpicc wrapper. On most implementations mpicc is a shell script (or similar) which sets environment variables, finds and links various libraries, all the sort of stuff that you might otherwise put into a Makefile.

    I suggest that you find an instance of the mpicc script and deconstruct it.

提交回复
热议问题