Compiling

  • Where to compile your code

    Please compile your code on vnodesub00, but refrain from running any compute intensive job on it. Please schedule a compute node for your runs.

  • GNU compilers

    The GNU compilers are the free compilers from the GNU project. These compilers are available on most systems, and are the ones you are probably most familiar with if you develop on Linux. The GNU Compiler Collection includes compilers for C (gcc), C++ (g++), Fortran 77 (g77), as well as others.

    Full documetation for the GNU Compiler Collection is available online. The version on the Vnode cluster as of this writing is 3.2.3. The command gcc -v will tell you the current version:

    [juba@vnodesub00 ~]$ gcc -v
    Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
    --infodir=/usr/share/info --enable-shared --enable-threads=posix
    --disable-checking --with-system-zlib --enable-__cxa_atexit
    --disable-libunwind-exceptions --enable-java-awt=gtk
    --host=x86_64-redhat-linux
    Thread model: posix
    gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
    		      
  • NAG Fortran 95

    We also have the Fortran 95 compiler from the Numerical Algorithms Group (NAG). This is a much better fortran compiler than the one that comes with the GNU Compiler Collection. Documentation is available online. The NAG compiler can be invoked from the command line as f95:
    [bargle@brood01 examples]$ f95 -o helloworld helloworld.f
    Obsolescent: helloworld.f, line 1: Fixed source form
    [bargle@brood01 examples]$
    		      

    (The error message is due to the archaic contents of the source file.)

  • NVIDIA Cg

    We also have the NVIDIA C for Graphics compiler ( Cg ) (Cg). This is the preferred low-level language for developing shader programs to run on the cluster's GPUs. Documentation is available online. The NVIDIA Cg compiler can be invoked from the command line as cgc:

    [juba@vnodesub00 ~]$ /opt/Cg/bin/cgc -v
    cgc: version 1.4.0001, build date Mar  9 2006 21:17:55.
    
Previous
Next

 

home | projects | facilities | reference | contact us
© Copyright 2005, Institute for Advanced Computer Study, University of Maryland, All rights reserved.