启用 OpenMP 支持
Enable OpenMP support
我已经在我的 Windows 机器上安装了 Intel MPI。
引用 FLANN library documentation 的第 2.2 节:
the project that uses FLANN needs to be compiled with a compiler that
supports the OpenMP standard and the OpenMP support must be enabled.
The number of cores to be used can be selected with the cores in
the SearchParams structure. By default a single core will be used.
Setting the cores eld to zero will automatically use as many threads
as cores available on the machine.
因为我从未使用过 Intel MPI 或 OpenMP,所以我不知道在这种情况下使用第一个是否可以以及 "OpenMP support must be enabled" 是什么意思。
英特尔 MPI 不是编译器。如果您正在寻找编译器,请尝试 Intel C++ Compiler or MinGW。 OpenMP 与这些编译器集成在一起,您只需要通过一个开关启用它们。对于英特尔,它是 /Qopenmp
。对于 GCC (MinGW),它是 -fopenmp
。
我已经在我的 Windows 机器上安装了 Intel MPI。
引用 FLANN library documentation 的第 2.2 节:
the project that uses FLANN needs to be compiled with a compiler that supports the OpenMP standard and the OpenMP support must be enabled. The number of cores to be used can be selected with the cores in the SearchParams structure. By default a single core will be used. Setting the cores eld to zero will automatically use as many threads as cores available on the machine.
因为我从未使用过 Intel MPI 或 OpenMP,所以我不知道在这种情况下使用第一个是否可以以及 "OpenMP support must be enabled" 是什么意思。
英特尔 MPI 不是编译器。如果您正在寻找编译器,请尝试 Intel C++ Compiler or MinGW。 OpenMP 与这些编译器集成在一起,您只需要通过一个开关启用它们。对于英特尔,它是 /Qopenmp
。对于 GCC (MinGW),它是 -fopenmp
。