/openmp (启用 OpenMP 支持)/openmp (Enable OpenMP Support)
04/15/2019
本文内容
导致编译器处理 #pragma omp OpenMP 支持的指令。Causes the compiler to process #pragma omp directives in support of OpenMP.
语法Syntax
/openmp [:实验 性]/openmp[:experimental]
/openmp/openmp
备注Remarks
#pragma omp 用于指定 指令 和 子句。#pragma omp is used to specify Directives and Clauses. 如果编译中未指定 /openmp ,则编译器将忽略 openmp 子句和指令。If /openmp isn't specified in a compilation, the compiler ignores OpenMP clauses and directives. 即使未指定 /openmp ,编译器也会处理 OpenMP 函数调用。OpenMP Function calls are processed by the compiler even if /openmp isn't specified.
C + + 编译器当前支持 OpenMP 2.0 标准。The C++ compiler currently supports the OpenMP 2.0 standard. 但是,Visual Studio 2019 现在还提供 SIMD 功能。However, Visual Studio 2019 also now offers SIMD functionality. 若要使用 SIMD,请使用 /openmp:实验 性选项编译。To use SIMD