【问题标题】:How do I enable SSE2 from the command line如何从命令行启用 SSE2
【发布时间】:2015-09-15 00:53:52
【问题描述】:

我正在编译 Dlib 的 Python 示例。

编译脚本为:

mkdir build
cd build
cmake ../../tools/python 
cmake --build . --config Release --target install  
cd ..

如何从命令行启用 SSE2?我尝试添加参数 -USE_SSE2_INSTRUCTIONS=ON 但出现未知参数错误。

来自 Cmake 缓存文件:

//Compile your program with SSE2 instructions
USE_SSE2_INSTRUCTIONS:BOOL=OFF

【问题讨论】:

    标签: cmake dlib


    【解决方案1】:

    你忘记了 -D。所以你不得不说,cmake -DUSE_SSE2_INSTRUCTIONS=ON

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-29
      • 1970-01-01
      • 1970-01-01
      • 2013-02-04
      • 1970-01-01
      • 1970-01-01
      • 2021-08-10
      • 2015-02-15
      相关资源
      最近更新 更多