OpenMP并行程序编译-并行程序简介

时间:2024-05-12 13:28:57
【文件属性】:

文件名称:OpenMP并行程序编译-并行程序简介

文件大小:415KB

文件格式:PPT

更新时间:2024-05-12 13:28:57

并行

OpenMP并行程序编译 支持编译OpenMP的编译器会提供编译器命令选项,以解释OpenMP编译制导语句. Gnu 编译器(版本4.2以后),编译器命令选项为-fopenmp gcc -o file -fopenmp file.c g++ -o file -fopenmp file.cpp gfortran -o file -fopenmp file.f90 Intel C/C++编译器icc, Intel Fortran编译器选项为-openmp icc -o file openmp file.c icpc -o file openmp file.cpp ifort -o file openmp file.f PGI C/C++编译器pgcc, PGI Fortran编译器选项为-mp pgcc -o file -mp file.c pgf77 -o file -mp file.f pgf90 -o file -mp file.f90


网友评论