Logo: Leibniz Universität Hannover

PGI Compiler

Beschreibung

Verfügbar auf:

  • RRZN-Computeservern

Ansprechpartner

 Gerd Brand

Inhaltsverzeichnis

  • Allgemeines
  • Funktionalität
  • Installation auf den RRZN-Computeservern
  • Benutzung auf den RRZN-Computeservern
  • Dokumentation und Beispiele

Allgemeines

Das PGI-CDK (Cluster Development Kit) ist ein von der Portland Group hergestelltes und vertriebenes Programmentwicklungswerkzeug. Es besteht aus Fortran- und C-Compiler sowie aus Debugger und Profiler.

Funktionalität

Die folgenden Funktionalitäten stehen u.a. zur Verfügung:

  • PGFORTRAN™ native OpenMP and auto-parallel Fortran 95/03 compiler with CUDA extensions
  • PGF77® native OpenMP and auto-parallel FORTRAN 77 compiler
  • PGHPF® native data parallel compiler with full HPF language support (Linux only)
  • PGCC® OpenMP and auto-parallel ANSI and K&R C compiler
  • PGC++® OpenMP and auto-parallel C++ compiler
  • PGDBG® OpenMP and MPI parallel graphical debugger
  • PGPROF® OpenMP and MPI parallel graphical performance profiler
  • Full support for the PGI Accelerator™ programming model on x64+GPU (PGFORTRAN and PGCC only)
  • Full 64-bit support on multi-core AMD64 and Intel 64
  • Intel 64 and AMD Opteron optimizations including SSE4.2/AVX, SSE4a/ABM, prefetching, use of extended register sets, and 64-bit addressing
  • PGI Unified Binary™ technology combines into a single executable or object file code optimized for multiple AMD64 processors, Intel 64 processors or NVIDIA GPUs.
  • Complete uniform development environment across 64-bit and 32-bit AMD and Intel processor-based systems running Linux, Mac OS X or Windows
  • Full support for Fortran 95 extensions and numerous Fortran 2003 extensions.
  • Full support for ANSI C99
  • Full support for OpenMP 3.0 on up to 256 cores

Installation auf den RRZN-Computeservern

Die auf den RRZN-Computeservern installierte aktuelle Version ist 10.3.

Es stehen außerdem noch einige ältere Versionen zur Verfügung. Welche das sind, erhält man mit dem Kommando

 module avail pgi

Benutzung auf den RRZN-Computeservern

Nach dem Aufruf von

 module load pgi

stehen die PGI-Kommandos zur Verfügung.

Einfache Programme kompilieren

  • C-Programme: pgcc -o my_cprog my_prog.c
  • C++-Programme: pgCC -o my_c++prog my_prog.cxx
  • Fortran90-Programme: pgf90 -o my_f90prog my_prog.f90 

CUDA-Programme kompilieren

  • C-Programme: pgcc -o c2.exe c2.c -ta=nvidia -Minfo=accel -fast
  • Fortran90-Programme: pgfortran -o f2.exe f2.f90 -ta=nvidia -Minfo=accel -fast

Weiteres entnehmen Sie bitte der PGI-Dokumentation.

Dokumentation und Beispiele

Hier finden Sie die Online Dokumentation im PDF-Format.

Verschiedene Beispielprogramme finden Sie auf orac im Verzeichnis:

/sw/tools/pgi/linux86-64/10.3/EXAMPLES

Speziell für CUDA in den Verzeichnissen:

/sw/tools/pgi/linux86-64/10.3/cuda/examples und /sw/tools/pgi/linux86-64/10.3/etc/samples

Leibniz Universität IT Services - URL: www.rrzn.uni-hannover.de/pgi_compiler.html?&L=2
 
Dr. Gerd Brand, Letzte Änderung: 15.03.2010
Copyright Gottfried Wilhelm Leibniz Universität Hannover