Can PGI Fortran compiler call some math libraries?

We’ll buy the PGI Fortran compiler for our GPU workstation. But we have some questions. I have googled these but I’m confused and the local seller can’t really answer these questions.

Can PGI Fortran support some math library like MKL or others?

Can PGI Fortran support some GPU-enable library like cublas or others?

Hi,

Glad to hear you are considering the PGI compiler suite for your workstation. To answer your questions:

1. Can PGI Fortran support some math library like MKL or others?

The PGI compiler suite ships with a build of the base BLAS and LAPACK packages from Netlib. In addition, we also ship the ACML math libraries from AMD with the PGI compiler suite.

As for MKL, yes, the PGI compilers can also use MKL as well, if you happen to have a current license for MKL from Intel. (PGI does not ship MKL with our compilers.) Here is a support article that describes the process:

http://www.pgroup.com/support/link.htm#mkl

2. Can PGI Fortran support some GPU-enable library like cublas or others?

Yes, we ship CUDA as an optional installable package for all PGI compilers. This includes the cublas and cufft libraries.

Hope this helps!

Best regards,

+chris

Thank for your help.



Does PGI compiler use the CULA or MAGMA ?

Hi,

I don’t know about CULA, but there is a whole thread about PGI and MAGMA here in the User Forum that should be very timely. We have tested MAGMA with PGI with some success here.

https://forums.developer.nvidia.com/t/using-magma/134039/1

Hope this helps,

+chris

Yes, CULA works with PGI Fortran. See: http://www.culatools.com/blog/2012/03/02/cuda-and-fortran/

  • Mat