首页 Paddle Inference 帖子详情
Win10+VS2019+CUDA11.1编译PaddlePaddle-2.1.3,出错错错错错错!
收藏
快速回复
Paddle Inference 问答推理部署高性能 1495 1
Win10+VS2019+CUDA11.1编译PaddlePaddle-2.1.3,出错错错错错错!
收藏
快速回复
Paddle Inference 问答推理部署高性能 1495 1

如题目所示编译PaddlePaddle出错:

>E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle\paddle/fluid/framework/data_type.h(103): error C2672: “paddle::framework::details::TensorCheckerVisitor::apply”: 未找到匹配的重载函数
[E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\framework\details\nan_inf_utils.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]
E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle/paddle/fluid/framework/details/nan_inf_utils_detail.cu(207): note: 查看对正在编译的函数 模板 实例化“void paddle::framework::VisitDataType CheckerVisitor>(paddle::framework::proto::VarType::Type,Visitor)”的引用
with

 

 

 

 

 

 

还有:

 

 

 

selected_rows_functor.cc
Unknown compiler version - please run the configure tests and report the results
7>E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle\paddle\fluid\operators\math\selected_rows_functor.cc(430,11): error C2672: “elementwise_add_to”: 未找到匹配的重载函数 [E:\tseng\projects\Algorithms\build\3rdparty\paddle-2
.1.3\src\paddle-build\paddle\fluid\operators\math\selected_rows_functor.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]
E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle\paddle\fluid\operators\math\selected_rows_functor.cc(337): message : 在编译 类 模板 成员函数“void paddle::operators::math::scatter::MergeAdd ontext,paddle::platform::bfloat16>::operator ()(const paddle::platform::CPUDeviceContext &,const std::vector> &,paddle::framework::
SelectedRows *,const bool)”时 [E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\operators\math\selected_rows_functor.vcxproj]
E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle\paddle\fluid\operators\math\selected_rows_functor.cc(549): message : 查看对正在编译的 类 模板 实例化“paddle::operators::math::scatter::MergeAdd ntext,paddle::platform::bfloat16>”的引用 [E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\operators\math\selected_rows_functor.vcxproj]
7>E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle\paddle\fluid\operators\math\selected_rows_functor.cc(432,1): error C2770: “std::enable_if::value,void>::type paddle::operators::math:
:scatter::elementwise_add_to(paddle::operators::math::BlasT *,size_t,const T *,T *)”的显式 模板 参数无效 [E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\operato
rs\math\selected_rows_functor.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]
[
Visitor=paddle::framework::details::TensorCheckerVisitor
]
7>E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle\paddle/fluid/framework/data_type.h(103): error C2770: “void paddle::framework::details::TensorCheckerVisitor::apply(std::ena
ble_if::value,void>::type *) const”的显式 模板 参数无效 [E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\framework\details\nan_inf_utils.vcxproj] [E:\tseng\projects\Algorithms\bui
ld\paddle.vcxproj]
E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle\paddle/fluid/framework/details/nan_inf_utils_detail.h(43): note: 参见“paddle::framework::details::TensorCheckerVisitor::ap
ply”的声明
7>E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle\paddle/fluid/framework/data_type.h(103): error C2672: “paddle::framework::details::TensorCheckerVisitor::apply”: 未找到匹配的重载函数
[E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\framework\details\nan_inf_utils.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]
7>E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle\paddle/fluid/framework/data_type.h(103): error C2672: “paddle::framework::details::TensorCheckerVisitor::apply”: 未找到匹配的重载函数
[E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\framework\details\nan_inf_utils.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]
7>E:/tseng/projects/Algorithms/build/3rdparty/paddle-2.1.3/src/paddle\paddle/fluid/framework/data_type.h(103): error C2672: “paddle::framework::details::TensorCheckerVisitor::apply”: 未找到匹配的重载函数
[E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\paddle\fluid\framework\details\nan_inf_utils.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]
7>D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.1.targets(785,9): error MSB3721: 命令“"D:\Program Files\NVIDIA GPU Computing Tookit\CUDA\v11.1\bin\nvcc.exe" -genc
ode=arch=compute_75,code=\"sm_75,compute_75\" -gencode=arch=compute_75,code=\"compute_75,compute_75\" -gencode=arch=compute_75,code=\"sm_75,compute_75\" --use-local-env -ccbin "D:\Program Files (x86)\Microsoft Visual Studio\2019\
BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64" -x cu -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle\paddle\fluid\frame
work\io" -I"E:\tseng\projects\Algorithms\3rdparty\tensorrt-7.2.3.4\x64-win\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install\zlib\include" -I"E:\tseng\projects\Algorithms\bu
ild\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install\gflags\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddl
e-2.1.3\src\paddle-build\third_party\install\glog\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\boost\src\extern_boost" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1
.3\src\paddle-build\third_party\eigen3\src\extern_eigen3" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\threadpool\src\extern_threadpool" -I"E:\tseng\projects\Algorithms\build\3rdparty\p
addle-2.1.3\src\paddle-build\third_party\dlpack\src\extern_dlpack\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install\xxhash\include" -I"E:\tseng\projects\Algorithms\build\3rd
party\paddle-2.1.3\src\paddle-build\third_party\install\warpctc\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install\openblas\include\openblas" -I"E:\tseng\projects\Algorithms\
build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install\protobuf\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle-build\third_party\install\cryptopp\include" -I"E:\tseng\projects\Algorithms
\3rdparty\cudnn-8.1.1\x64-win\include" -I"D:\Program Files\NVIDIA GPU Computing Tookit\CUDA\v11.1\include" -I"E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle" -I"E:\tseng\projects\Algorithms\build\3rdparty\pad
dle-2.1.3\src\paddle-build\..\paddle\fluid\framework\io" -I"D:\Program Files\NVIDIA GPU Computing Tookit\CUDA\v11.1\include" --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -Wno-deprecated-gpu-ta
rgets -w --expt-relaxed-constexpr --expt-extended-lambda -O3 -std=c++14 -Xcompiler="/EHsc /wd4244 /wd4267 /wd4819 /bigobj /arch:AVX" -D_WINDOWS -D_MWAITXINTRIN_H_INCLUDED -D__STRICT_ANSI__ -DNDEBUG -DTRT_PLUGIN_FP16_AVALIABLE
-D"CUDA_VERSION_MAJOR=\"11\"" -D"CUDA_VERSION_MINOR=\"1\"" -D"CUDA_TOOLKIT_ROOT_DIR=\"D:/Program Files/NVIDIA GPU Computing Tookit/CUDA/v11.1\"" -D"CUDNN_MAJOR_VERSION=\"8\"" -DPADDLE_WITH_TENSORRT -DGOOGLE_GLOG_DLL_DECL= -DBOOST
_HAS_STATIC_ASSERT -DEIGEN_STRONG_INLINE=inline -DPADDLE_USE_OPENBLAS -DPADDLE_WITH_CRYPTO -DPADDLE_VERSION=2.1.3 -DPADDLE_VERSION_INTEGER=2001003 -DPADDLE_NO_PYTHON -DPADDLE_DISABLE_PROFILER -DPADDLE_WITH_AVX -DPADDLE_WITH_SSE3
-D_XKEYCHECK_H -DPADDLE_DLL_INFERENCE -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -DPADDLE_ON_INFERENCE -DPADDLE_DLL_EXPORT -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -DTRT_PLUGIN_FP16_AVALIABLE -D"CUDA_VERSION_MAJOR
=\"11\"" -D"CUDA_VERSION_MINOR=\"1\"" -D"CUDA_TOOLKIT_ROOT_DIR=\"D:/Program Files/NVIDIA GPU Computing Tookit/CUDA/v11.1\"" -D"CUDNN_MAJOR_VERSION=\"8\"" -DPADDLE_WITH_TENSORRT -DGOOGLE_GLOG_DLL_DECL= -DBOOST_HAS_STATIC_ASSERT -D
EIGEN_STRONG_INLINE=inline -DPADDLE_USE_OPENBLAS -DPADDLE_WITH_CRYPTO -DPADDLE_VERSION=2.1.3 -DPADDLE_VERSION_INTEGER=2001003 -DPADDLE_NO_PYTHON -DPADDLE_DISABLE_PROFILER -DPADDLE_WITH_AVX -DPADDLE_WITH_SSE3 -D_XKEYCHECK_H -DPADD
LE_DLL_INFERENCE -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -DPADDLE_ON_INFERENCE -DPADDLE_DLL_EXPORT -D"CMAKE_INTDIR=\"Release\"" -Xcompiler "/EHsc /W0 /nologo /O2 /Fdnan_inf_utils.dir\Release\nan_inf_utils.pdb /FS /MT /GR" -o nan_inf
_utils.dir\Release\/nan_inf_utils_detail.cu.obj "E:\tseng\projects\Algorithms\build\3rdparty\paddle-2.1.3\src\paddle\paddle\fluid\framework\details\nan_inf_utils_detail.cu"”已退出,返回代码为 2。 [E:\tseng\projects\Algorithms\build\3rdpart
y\paddle-2.1.3\src\paddle-build\paddle\fluid\framework\details\nan_inf_utils.vcxproj] [E:\tseng\projects\Algorithms\build\paddle.vcxproj]

 

赶紧解决吧!!!

0
收藏
回复
全部评论(1)
时间顺序
u
user_bd_zzw
#2 回复于2021-09

Git上同样的问题都提了这么久了,还没解决,赶紧的吧!

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户