PGI Installations on Linux
PGI_ACCEPT_EULA
(required) Set this variable to \PGI EULA and all applicable third-party EULAs; these EULAs are located in thecommon/ subdirectory in the directory where the PGI installation tar file wasuncompressed and untarred.
(required) Set this variable to a string containing the desired installation location,e.g. /opt/pgi.
(required) Set this variable to select the type of install. The accepted values are\
(required for network install) Set this variable to a string containing the path to alocal file system when choosing a network install.
(optional) Set this variable to \components, such as CUDA.
(optional) Set this variable to \components including ACML.
(optional) Set this variable to \Environment. The JRE is required for the PGDBG debugger and PGPROF profiler.If a JRE is already present on the system, it is not necessary to reinstall.(optional) Set this variable to \environment.
PGI_INSTALL_DIRPGI_INSTALL_TYPEPGI_INSTALL_LOCAL_DIRPGI_INSTALL_NVIDIAPGI_INSTALL_AMDPGI_INSTALL_JAVAPGI_INSTALL_MPICH
The PGI installation scripts install all of the binaries for the PGI compilers, tools, and
libraries in the appropriate subdirectories within the specified installation directory. This maindirectory is defined during installation as $PGI and the $PGI environment variable should beset to the path of this directory before using the compilers.
Important If you choose not to generate license keys at installation time, record the FlexNet hostidand hostname that are echoed to the screen. This information is also saved to the file /opt/pgi/license.info, where /opt/pgi is the installation directory.
3.Make PGI products accessible.
When the installation script has completed, execute the following commands to make the PGIproducts accessible and to initialize your environment for use by FlexNet.
Each user must issue the following sequence of commands to initialize the shell environment prior tousing the PGI compilers and tools.
For linux86-64:
To use the linux86-64 version of the compilers and tools, execute the following commands,assuming you have installed in the default /opt/pgi directory.In csh, use these commands:
% setenv PGI /opt/pgi
% set path=(/opt/pgi/linux86-64/15.4/bin $path)
% setenv MANPATH \
% setenv LM_LICENSE_FILE /opt/pgi/license.dat:\
PGI Installation Guide 23
PGI Installations on Linux
In bash, sh, or ksh, use these commands:
$ export PGI=/opt/pgi;
$ export PATH=/opt/pgi/linux86-64/15.4/bin:$PATH;
$ export MANPATH=$MANPATH:/opt/pgi/linux86-64/15.4/man;
$ export LM_LICENSE_FILE=$LM_LICENSE_FILE:/opt/pgi/license.dat;
For linux86:
To use only the linux86 version of the compilers and tools, or to target linux86 as thedefault, use a setup similar to the previous one, changing the path settings as illustrated inthe following commands. Again, the following commands are for installations located in thedefault /opt/pgi directory.In csh, use these commands:
% setenv PGI /opt/pgi
% set path=(/opt/pgi/linux86/15.4/bin $path)
% setenv MANPATH \
% setenv LM_LICENSE_FILE \
In bash, sh, or ksh, use these commands:
$ export PGI=/opt/pgi;
$ export PATH=/opt/pgi/linux86/15.4/bin:$PATH;
$ export MANPATH=$MANPATH:/opt/pgi/linux86/15.4/man;
$ export LM_LICENSE_FILE=$LM_LICENSE_FILE:/opt/pgi/license.dat;
Tip You should add these commands to your shell startup files to ensure that you have access to thePGI products in future login sessions.
4.Verify the release number of the installed software. It should say 15.4.
To verify the release number of the products you have installed, use the –V option on anyof the compiler commands, as illustrated in the following examples. If you use –v instead,you can also see the sequence of steps the compiler uses to compile and link programs forexecution on your system.
For Fortran 77, use:For Fortran 2003, use:For C++, use:For ANSI C, use:
pgf77 -V x.fpgfortran -V x.fpgc++ –V x.cpppgcc -V x.c
These commands can be successfully executed even if the files x.f or x.c do not exist and youhave not completed the licensing phase of the installation. Use them to check that you have installedthe proper version of the compilers and have initialized your environment to enable access to thatversion.
5.Generate and install license keys.
This step is necessary only if you chose not to allow the installation script to perform these tasks foryou.
PGI Installation Guide 24
PGI Installations on Linux
All PGI compilers and tools are license-managed using FlexNet licensing. This system
requires that you possess a valid license for the licensed product. You get the license from thePGI website, www.pgroup.com/login.
Other components, such as MPICH, are open source products that are not license-managed.To obtain license keys, you need the following information:?
An account on the PGI website.
Tip The username (email address) and password required to connect to the pgroup.com websiteare the same ones you used to download the installation software from the web site.
?
If you purchased a license without creating an account, one was created for youwhen your order was processed. Please check for an activation email from accounts-noreply@pgroup.com .
?If you don’t have an account, you can create one at: www.pgroup.com/register.
The FlexNet hostid and hostname of the computer on which the software is installed. Theinstaller echoes this information to your screen.?
You can also obtain your FlexNet hostid by using the following command after you haveinstalled the products and initialized the environment variables:
% lmutil lmhostid
You should see a message similar to the following message with one or more hostidsdisplayed.
The FlexNet host ID of this machine is \
In this example, you can use either 12345678abcd or edcba9876543, but not both, asthe hostid.
Hostids come from configured network cards. If you use your computer in multiple network
environments, you may need to run the following command in each environment to see which hostidsare configured. Then, to reduce potential license problems, choose the hostid that occurs in all yourenvironments.
% lmutil lmhostid -hostname
Generate License Keys
Once you have logged on at www.pgroup.com/login using your registered PGI web-user emailand password, you see a screen similar to the following:
PGI Installation Guide 25
PGI Installations on Linux
Figure 2 Welcome PGI Account Sample
Generate a Permanent License Key
1.Click Create permanent keys.
2.Click the PIN associated with the product for which you wish to generate license keys. If
you don't see any PINs listed, you first need to tie one to your account:a. Obtain your PIN code from your original PGI order confirmation email, in thesection labeled: \b. Click the link: Tie a PIN to this account.
c. Enter the 16-digit PIN code and follow the instructions provided.
3.Click License keys to generate the keys.Generate a Trial License Key
1.Click Create trial keys.
2.Accept the terms of the agreement.
3.Enter any one of the FlexNet hostids detected, exactly as it appears in the message that is
displayed during installation or when you issue the command: lmutil lmhostid 4.Click the Generate License keys button.Install License Keys
Once you have generated your trial or permanent license keys, copy and paste them into thefile: /opt/pgi/license.dat, substituting the appropriate installation directory path ifyou have not installed in the default /opt/pgi directory.
The license.dat depends on the product you are installing. However, each
license.dat file looks somewhat similar to the following sample file from a PGIWorkstation installation:
SERVER
PACKAGE PGI2015-
6167 7015 3F05 9C37 2315 ACDF 1B73 DAA9 FBAE\
In your license file:?
PGI Installation Guide 26
相关推荐: