Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Linux- library of pgmp

zhangquan09
Beginner
1,004 Views

This is a segment from a Makefile for fortran codes "LINKS = -L$(NETCDFLIB) -lnetcdf -llapack -lblas -lpgmp -lpthread", what does the "pgmp" stand for?

Zhang

0 Kudos
3 Replies
TimP
Honored Contributor III
1,004 Views
You are looking at pgf90 options. You should translate the lapack, blas, and OpenMP options to those which are documented for the compiler you are using.
ifort -openmp supplies -liomp5 -lpthread automatically.
The lapack and blas options for Intel compilers are to be found by running the tool from the MKL forum page
0 Kudos
zhangquan09
Beginner
1,004 Views
Dear tim18

My compiler is intel fortran.

You mean I need to install or compile an OpenMp as a subsititution of "pgmp" which is an pgf90 option?

"ifort -openmp supplies -liomp5 -lpthread automatically."??
How should I do it?

Thank you!

Zhang
0 Kudos
TimP
Honored Contributor III
1,004 Views
Where pgf90 uses -mp, ifort would use -openmp. Where pgf90 could use -lpgmp, ifort could use -liomp5, but it's usually better to use the -openmp option so that ifort itself chooses -liomp5 -lpthread.
0 Kudos
Reply