12.07.2015 Views

PGI User's Guide

PGI User's Guide

PGI User's Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting Environment VariablesIn bash, sh, zsh, or ksh, use these commands:$ <strong>PGI</strong>=/opt/pgi; export <strong>PGI</strong>$ MANPATH=$MANPATH:$<strong>PGI</strong>/linux86/11.1/man; export MANPATH$ LM_LICENSE_FILE=$<strong>PGI</strong>/license.dat; export LM_LICENSE_FILE$ PATH=$<strong>PGI</strong>/linux86/11.1/bin:$PATH; export PATHSetting Environment Variables on WindowsIn Windows, when you access <strong>PGI</strong> Workstation 11.1 (for example, using Start | ALL Programs | <strong>PGI</strong>Workstation | Command Shells 11.1), you have options that <strong>PGI</strong> provides for setting your environmentvariables - either the DOS command environment or the Cygwin Bash environment.When you open either of these shells available to you, the default environment variables are already set andavailable to you.You may want to use other environment variables, such as the OpenMP ones. This section explains how to dothat.Suppose that your home directory is C:\tmp. The following examples show how you might set the temporarydirectory to your home directory, and then verify that it is set.Command prompt:Once you have launched a command shell for the version of <strong>PGI</strong> that you are using, (32-bit or 64-bit), enterthe following:DOS> set TMPDIR=C:\tmpDOS> echo %TMPDIR%C:\tmpDOS>Cygwin Bash prompt:From <strong>PGI</strong> Workstation 11.1, select <strong>PGI</strong> Workstation (32-bit or 64-bit) and at the Cygwin Bash prompt, enterthe following<strong>PGI</strong>$ export TMPDIR=C:\tmp<strong>PGI</strong>$ echo $TMPDIRC:\tmp<strong>PGI</strong>$Setting Environment Variables on Mac OSXLet’s assume that you want access to the <strong>PGI</strong> products when you log on. Let’s further assume that you installedthe <strong>PGI</strong> compilers in /opt/pgi and that the license file is in /opt/pgi/license.dat. For access atstartup, you can add the following lines to your startup file.For x64 osx86-64 in a csh:% set path = (/opt/pgi/osx86-64/11.1/bin $path)% setenv MANPATH "$MANPATH":/opt/pgi/osx86-64/11.1/man132

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!