Compiling OpenMP and SSE programs on Heracles, Hydra and Dozer
Compiling C++ program with openMP + SSE
- g++ -O -fopenmp -msse <path/>source_code.cpp -o <path/>exec_code
Example:
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.
<path/>: directory where the code is. It is optional.
-O: compile the program with optimization
-msse: switches to enable SSE extensions and make this option effective
-Wall: print out all warnings
-fopenmp: Compiling OpenMP program