Compile OpenMP ProgramsΒΆ
Compiler Type | Compiler Command | Compiler Flag |
---|---|---|
Intel | icc | -qopenmp |
icpc | -qopenmp | |
ifort | -qopenmp | |
GNU | gcc | -fopenmp |
g++ | -fopenmp | |
gfortran | -fopenmp |
$icc -qopenmp -o hello.exe hello.c
$./hello.exe
Compiler Type | Compiler Command | Compiler Flag |
---|---|---|
Intel | icc | -qopenmp |
icpc | -qopenmp | |
ifort | -qopenmp | |
GNU | gcc | -fopenmp |
g++ | -fopenmp | |
gfortran | -fopenmp |
$icc -qopenmp -o hello.exe hello.c
$./hello.exe