User Tools

Site Tools


cluster:118


Back

PGI Accelerator

Some quick notes for our trial environment. PGI compilers comes with it's own MPI flavor, Java JRE and Cuda (4.2 and 4.5). These compilers can compile straight C/C++ and Fortran code. But they can also compile that code for parallel invocation using MPI and GPU enable the code stack.

# users should set
export PGI=/share/apps/pgi/2013-137
export PATH=$PGI/linux86-64/13.7/bin:$PATH

# optional
export MANPATH=$PGI/linux86-64/13.7/man:$MANPATH
# embedded MPICH1 flavor 
export PATH=$PGI/linux86-64/13.7/mpi/mpich/bin:$PATH

# to start lmgrd (done by root)
export LM_LICENSE_FILE=$PGI/license.dat

# main components
pgf77 -V x.f
pgf95 -V x.f
pghpf -V x.f
pgCC <96>V x.c
pgCC -V x.c
pgcc -V x.c

# hello world compilation
[root@greentail mpihello]# pgf77 -o mpihello mpihello.f -Mmpi
NOTE: your trial license will expire in 14 days, 12.8 hours.

[root@greentail mpihello]# ls -l mpihello
-rwxr-xr-x 1 root root 867322 Aug 22 11:13 mpihello

[root@greentail mpihello]# mpirun -np 4 mpihello
 Hello world!  I'm node           0
 Hello world!  I'm node           1
 Hello world!  I'm node           3
 Hello world!  I'm node           2

# may have useful information
/share/apps/pgi/2013-137/INSTALL.txt


Back

cluster/118.txt · Last modified: 2013/08/22 14:58 by hmeij