[Omp] Download OMP for Gcc ?
Jakub Jelinek
jakub at redhat.com
Mon Apr 10 04:32:16 PDT 2006
On Mon, Apr 10, 2006 at 12:05:39PM +0200, Kay Diederichs wrote:
> To expand on Diego's comment, I would like to mention that the GCC 4.1
> compilers in the (recently released) Fedora Core 5 distribution already
> have OpenMP support (backported from 4.2, I think).
Yes.
> So just use FC5 compilers with -fopenmp to get binaries working under
> FC5. If you want to use the binaries compiled on FC5 on a different
> Linux distro, I would advise to link statically. I found that I had to add
> -static -L/usr/lib/gcc/i386-redhat-linux/4.1.0 -lgomp -lrt
> when linking, if I use -fopenmp
Only -fopenmp -static -lgomp -lrt should be enough for static linking,
though even that ought to be unnecessary, but due to a bug the compiler
inserts -lgomp -lrt for static link to early on the command line, will fix.
Jakub
More information about the Omp
mailing list