[mpich-discuss] mpich2-1.4 works on one host, fails on multiple

Anthony Chan chan at mcs.anl.gov
Fri Dec 9 14:22:30 CST 2011



----- Original Message -----

> the right library to use is libgomp.so.1. So, in order to compile it
> you
> have to use, e.g: "gcc -lgomp helloworld.c -o helloworld"

IMHO, you shouldn't explicitly link in the OpenMP runtime library
unless your gcc compiler is buggy, i.e. it is a valid temporary
workaround.  Instead you should use gcc's -fopenmp flag which is
documented in the manpage.  The flag should enable the the compiler
to link in all the correct libraries for your OpenMP runtime.

A.Chan


More information about the mpich-discuss mailing list