PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.22k stars 5.58k forks source link

报错:error C3861: “__lzcnt64”: 找不到标识符! 在windows上编译32位 选择OpenBLAS加速 #50399

Open LuWei6896 opened 1 year ago

LuWei6896 commented 1 year ago

bug描述 Describe the Bug

HEAD is now at 7cc9639 Merge pull request #136 from Cyan4973/dev [540/2110] Performing build step for 'externxxhash' [1/4] Building C object CMakeFiles\xxhsum.dir\D\CV\tool\Paddle2.4\build\third_party\xxhash\src\externxxhash\xxhsum.c.obj [2/4] Building C object CMakeFiles\xxhash.dir\D\CV\tool\Paddle2.4\build\third_party\xxhash\src\extern_xxhash\xxhash.c.obj [3/4] Linking C static library xxhash.lib [4/4] Linking C executable xxhsum.exe [546/2110] Building CXX object paddle\phi\api\lib\CMakeFiles\kernel_dispatch.dir\kernel_dispatch.cc.obj FAILED: paddle/phi/api/lib/CMakeFiles/kernel_dispatch.dir/kernel_dispatch.cc.obj C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\cl.exe /nologo /TP -DEIGEN_STRONG_INLINE=inline -DGOOGLE_GLOG_DLL_DECL="" -DHPPL_STUB_FUNC -DNOMINMAX -DPADDLE_DISABLE_PROFILER -DPADDLE_DLL_EXPORT -DPADDLE_DLL_INFERENCE -DPADDLE_NO_PYTHON -DPADDLE_ON_INFERENCE -DPADDLE_USE_OPENBLAS -DPADDLE_VERSION=0.0.0 -DPADDLE_VERSION_INTEGER=0 -DPADDLE_WITH_AVX -DPADDLE_WITH_CRYPTO -DPADDLE_WITH_POCKETFFT -DPADDLE_WITH_SSE3 -DUTF8PROC_STATIC -D_XKEYCHECK_H -ID:\CV\tool\Paddle2.4\build -ID:\CV\tool\Paddle2.4\paddle\fluid\framework\io -ID:\CV\tool\Paddle2.4\build\third_party\install\zlib\include -ID:\CV\tool\Paddle2.4\build\third_party\install -ID:\CV\tool\Paddle2.4\build\third_party\install\gflags\include -ID:\CV\tool\Paddle2.4\build\third_party\install\glog\include -ID:\CV\tool\Paddle2.4\build\third_party\eigen3\src\extern_eigen3 -ID:\CV\tool\Paddle2.4\build\third_party\threadpool\src\extern_threadpool -ID:\CV\tool\Paddle2.4\build\third_party\dlpack\src\extern_dlpack\include -ID:\CV\tool\Paddle2.4\build\third_party\install\xxhash\include -ID:\CV\tool\Paddle2.4\build\third_party\install\warpctc\include -ID:\CV\tool\Paddle2.4\build\third_party\install\utf8proc\include -ID:\CV\tool\Paddle2.4\build\third_party\install\openblas\include\openblas -ID:\CV\tool\Paddle2.4\build\third_party\install\protobuf\include -ID:\CV\tool\Paddle2.4\build\third_party\install\cryptopp\include -ID:\CV\tool\Paddle2.4\build\third_party\pocketfft\src -ID:\CV\tool\Paddle2.4\build\third_party\dirent\src\extern_dirent\include -ID:\CV\tool\Paddle2.4 -ID:\CV\tool\Paddle2.4\build..\paddle\fluid\framework\io /DWIN32 /D_WINDOWS /W0 /GR /EHsc /w /wd4068 /wd4129 /wd4244 /wd4267 /wd4297 /wd4530 /wd4577 /wd4819 /wd4838 /arch:AVX /MT /O2 /Ob2 /DNDEBUG /bigobj /Zc:inline -std:c++14 /showIncludes /Fopaddle\phi\api\lib\CMakeFiles\kernel_dispatch.dir\kernel_dispatch.cc.obj /Fdpaddle\phi\api\lib\CMakeFiles\kernel_dispatch.dir\kernel_dispatch.pdb /FS -c D:\CV\tool\Paddle2.4\paddle\phi\api\lib\kernel_dispatch.cc D:\CV\tool\Paddle2.4\paddle\phi\api\lib\kernel_dispatch.cc(75): error C3861: “__lzcnt64”: 找不到标识符 [549/2110] Building CXX object paddle\phi\api\lib\CMakeFiles\op_meta_info.dir\op_meta_info.cc.obj ninja: build stopped: subcommand failed.

其他补充信息 Additional Supplementary Information

配置信息如下: D:\CV\tool\Paddle2.4\build>cmake .. -GNinja -DWITH_PYTHON=OFF -DWITH_GPU=OFF -DCMAKE_BUILD_TYPE=Release -DWITH_UNITY_BUILD=ON -DWITH_TESTING=OFF -DON_INFER=ON -DWITH_MKL=OFF CMake Deprecation Warning at CMakeLists.txt:25 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- Found Paddle host system: win32, version: -- Found Paddle host system's CPU: 6 cores -- The CXX compiler identification is MSVC 19.16.27048.0 -- The C compiler identification is MSVC 19.16.27048.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done

paddle-bot[bot] commented 1 year ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

lyuwenyu commented 1 year ago

多谢反馈, 我们验证一下

mifenhaochiya commented 1 year ago

请问是如何解决的

LuWei6896 commented 1 year ago

没有 GitHub上有现成的编译好的库--发自新浪邮箱客户端 在 5月2日 03:09,mifenhaochiya @.***> 写道:

请问解决了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>