The most recent version of this page is a draft.DiffThis version (2017/10/09 08:55) is a draft.
Approvals: 0/1

This is an old revision of the document!


Compiling code

eg. from HDF5:

EXAMPLE=$VSC_HDF5_ROOT/share/hdf5_examples/c/ph5example.c

Compile using Intel C Compiler (file):

module purge
module load intel/16 \
    intel-mpi/5 hdf5/1.8.18-MPI

cp $EXAMPLE .
mpiicc -lhdf5 ph5example.c -o ph5example

Compile using Gnu C Compiler (file):

module purge
module load gcc/5.3 \
    intel-mpi/5 hdf5/1.8.18-MPI

cp $EXAMPLE .
mpicc -lhdf5 ph5example.c -o ph5example

If needed add e.g. include directory explicitly:

mpiicc -I$VSC_HDF5_INCLUDE -lhdf5 ph5example.c -o ph5example


  • pandoc/introduction-to-vsc/04_module_environment/02_compiling.1507539300.txt.gz
  • Last modified: 2017/10/09 08:55
  • by pandoc