PGI Windows Questions

How do I run a PGI developed program on a Windows machine without PGI compilers installed?

PGI's compilers for the supported versions of Microsoft Windows include Microsoft Visual C++ 2005 Redistributable Package. This package needs to be installed on the target system. In addition, there are some dynamically linked PGI libraries that should be present, either locally or in a path.

You can remove most of the PGI dll dependencies by linking -Bstatic_pgi, but currently not pg.dll.

The Microsoft Visual C++ 2005 Redistributable Package for 32-bits (x86) is available from Microsoft. If you have problems, go to http://www.microsoft.com/downloads and follow the Visual C++ link to the Microsoft Visual C++ 2005 Redistributable Package (x86).

A Microsoft Visual C++ 2005 Redistributable Package for 64-bits (x64) is also available. If you have problems, follow the same path descibed above to the Microsoft Visual C++ 2005 Redistributable Package (x64).

Both packages must to be executed to install them. Copying over the Microsoft libraries from the PGI compiler area will not work. Once you have installed the packages, copy over the library pg.dll located in the C:\Program Files\PGI\Win32\REDIST or C:\Program Files\PGI\Win64\REDIST directory to the C:\WINDOWS\System or C:\WINDOWS\System32 directory of the target system and execute the application.

How do I use a Windows machine as a floating license server?

Even if you have a floating license for PGI's Linux only compilers, you can still use a 32-bit or 64-bit Microsoft Windows based machine as a license server. Node-Locked licenses like the PGI Workstation product must use the machine running the compilers as the license server.

To use the machine as a license server, download and install the PGI Windows compilers in the default directory, C:\Program Files\PGI.

From the PGI Workstation command window, determine the hostid of the license server by typing lmutil lmhostid, and choosing one of the hostids to use when generating your license keys. The hostname can be found by typing uname -n in the PGI Workstation command window.

Copy your license keys into C:\Program Files\PGI\license.dat

Go to Start | Control Panel | Administrative Tools | Services, and select PGI License Server and start the license server. If it is already started, stop it and start it again, or type lmreread in the PGI Workstation command window.

On every machine that runs the compilers set the environment variable $LM_LICENSE_FILE to port@hostname. For example, with hostname "hal", export LM_LICENSE_FILE=27000@hal should work.

Click me