Skip to main content

more options


Command Line

If the program contains MPI calls and MPI/Pro is installed on the machine (true for all CTC Windows machines with interactive access), one may type:

  • MS Visual C/C++:
    setup_visualc
    mpicc prog.c

To use the Intel compilers from the command line, the MPI/Pro include and library directories must be put in your INCLUDE and LIB environment variables, respectively. If you are using the Fortran90 "use mpi" syntax, MPI.mod must be created and put in your current working directory. Invoking setup_mpi will accomplish all of these tasks. In addition, the MPI/Pro libraries must be explicity referenced on the command line:

  • Intel C/C++:
    setup_intelc32
    setup_mpi
    icl prog.c mpipro.lib
  • Intel Fortran:
    setup_intelf32
    setup_mpi
    ifort /Qlowercase prog.f mpipro.lib mpipro_cdec.lib

Compilers operating on either serial or parallel code expect that certain environment variables be set before they are invoked. Please refer to Compiling and Porting Serial Applications for details on the setup scripts that need to be run, depending on the compiler being used.

If the program contains MPI calls and MPI/Pro is installed on the machine (true for all CTC Windows machines with interactive access), one may type:

  • MS Visual C/C++:
    setup_visualc
    mpicc prog.c

The mpicc command is an application that references the appropriate include directory and MPI libraries and calls the appropriate Microsoft compiler.

To use the Intel compilers from the command line, the MPI/Pro include and library directories must be put in your INCLUDE and LIB environment variables, respectively. If you are using the Fortran90 "use mpi" syntax, MPI.mod must be created and put in your current working directory. Invoking setup_mpi will accomplish all of these tasks. In addition, the MPI/Pro libraries must be explicity referenced on the command line:

  • Intel C/C++:
    setup_intelc32
    setup_mpi
    icl prog.c mpipro.lib
  • Intel Fortran:
    setup_intelf32
    setup_mpi
    ifort /Qlowercase prog.f mpipro.lib mpipro_cdec.lib