Compiling OpenMP and SSE programs on Heracles, Hydra and Dozer

Compiling C++ program with openMP + SSE

g++ -O -fopenmp -msse /home/john/csc5551/cge-omp-sse.cpp  -o  /home/john/csc5551/cge-omp-sse

Compiling options:

-o <file>:
place the output into <file>. If this option is omitted, the compiler will create execution program named a.out in working directory.

directory where the code is. It is optional.

compile the program with optimization

-msse: switches to enable SSE extensions and make this option effective

print out all warnings

Compiling OpenMP program