Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译cuda出错 #1969

Closed
zhoumenghan opened this issue Jun 24, 2022 · 11 comments
Closed

编译cuda出错 #1969

zhoumenghan opened this issue Jun 24, 2022 · 11 comments
Assignees
Labels

Comments

@zhoumenghan
Copy link

您好,我在CMakeLists.txt中将option(MNN_CUDA "Enable CUDA" ON) 来编译mnn cuda,我的cuda安装没有问题,但是在利用 .\package_scripts\win\build_lib.ps1 -path MNN-CUDA/lib/x64编译的时候,报了如下错误,无法编译成功。之前我编译过mnn cpu和mnn opencl都没有问题,可以成功编译和使用。这个编译mnn cuda的问题,麻烦帮我看一下原因,十分感谢。

平台(如果交叉编译请再附上交叉编译目标平台):

Win10

Github版本:

1.2.10

编译日志:

PS D:\zhoumh3_project\MNN> .\package_scripts\win\build_lib.ps1 -path MNN-CUDA/lib/x64

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 x64

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 x64
*** cleaning up ***
*** generating fbs under default ***
*** done ***

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Debug\Dynamic

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 MD
d----- 2022/6/24 16:52 MT

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Debug\Static

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 MD
d----- 2022/6/24 16:52 MT

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Release\Dynamic

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 MD
d----- 2022/6/24 16:52 MT

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Release\Static

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 MD
d----- 2022/6/24 16:52 MT

目录: D:\zhoumh3_project\MNN

Mode LastWriteTime Length Name


d----- 2022/6/24 16:52 build

Build MNN (CPU ) Debug/Dynamic/MT

-- The C compiler identification is MSVC 19.16.27048.0
-- The CXX compiler identification is MSVC 19.16.27048.0
-- The ASM compiler identification is MSVC
-- Found assembler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/bupt_/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.4")
-- Use Threadpool, forbid openmp
-- >>>>>>>>>>>>>
-- MNN BUILD INFO:
-- System: Windows
-- Processor: AMD64
-- Metal: OFF
-- OpenCL: OFF
-- OpenGL: OFF
-- Vulkan: OFF
-- ARM82: OFF
-- oneDNN: OFF
-- TensorRT: OFF
-- CoreML: OFF
-- CUDA: ON
-- OpenMP: OFF
-- BF16:
-- ThreadPool: ON
-- Hidden: FALSE
-- Build Path: D:/zhoumh3_project/MNN/build
-- WIN_USE_ASM:
-- AMD64: Open SSE
-- MNN_AVX512:ON
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Warning (dev) at D:/zhoumh3_tools/CMake/share/cmake-3.23/Modules/FindCUDA.cmake:690 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
source/backend/cuda/CMakeLists.txt:2 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.1 (found suitable version "11.1", minimum required is "9.0")
-- Enabling CUDA support (version: 11.1, archs: )
-- message -D_FORCE_INLINES -Wno-deprecated-gpu-targets -w -O0 -Xcompiler /FS;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75 !!!!!!!!!!!
-- Configuring done
-- Generating done
-- Build files have been written to: D:/zhoumh3_project/MNN/build
[63/344] Building CXX object CMakeFiles\MNNTransform.dir\source\geometry\GeometryTopK.cpp.obj
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): warning C4477: “printf”: 格式字符串“%lu”需要类型“unsigned long”的参数,但可变参数 1 拥 有了类型“unsigned __int64”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): note: 请考虑在格式字符串中使用“%zu”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): warning C4477: “printf”: 格式字符串“%lu”需要类型“unsigned long”的参数,但可变参数 2 拥 有了类型“unsigned __int64”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): note: 请考虑在格式字符串中使用“%zu”
[256/344] Building NVCC (Device) object source/backend/cud...ution/MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
[257/344] Building NVCC (Device) object source/backend/cud....dir/execution/MNN_CUDA_generated_GatherV2Execution.cu.obj
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
[258/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_ArgMaxExecution.cu.obj
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[259/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_MatMulExecution.cu.obj
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[260/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_InterpExecution.cu.obj
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[261/344] Building NVCC (Device) object source/backend/cud...execution/MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
[262/344] Building NVCC (Device) object source/backend/cud...N_CUDA.dir/execution/MNN_CUDA_generated_ImageColumn.cu.obj
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
[263/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_BinaryExecution.cu.obj
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[264/344] Building NVCC (Device) object source/backend/cud...ecution/MNN_CUDA_generated_ConvSingleInputExecution.cu.obj
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?[264/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_TensorCor[265/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_LayerNormExecution.cu.obj
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
[266/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_TensorCoreGemm.cu.obj
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[267/344] Building NVCC (Device) object source/backend/cud...r/execution/MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
[268/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_PReLUExecution.cu.obj
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[269/344] Building NVCC (Device) object source/backend/cud...CUDA.dir/execution/MNN_CUDA_generated_PoolExecution.cu.obj
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[270/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_ReductionExecution.cu.obj
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
[271/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_ScaleExecution.cu.obj
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[272/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_SelectExecution.cu.obj
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[273/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_ScatterNdExecution.cu.obj
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
[275/344] Building NVCC (Device) object source/backend/cud...A.dir/execution/MNN_CUDA_generated_SoftmaxExecution.cu.obj
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
[288/344] Building NVCC (Device) object source/backend/cud...es/MNN_CUDA.dir/execution/MNN_CUDA_generated_Raster.cu.obj
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e?[288/344] Building CXX object tools\train\CMakeFiles\MNNTrain.dir\source\grad\OpGrad.cp[320/344] Building CXX object tools\train\CMakeFiles\MNNTrain.dir\source\transformer\Transformer.cpp.obj
d:\zhoumh3_project\mnn\tools\train\source\transformer\transformer.cpp(80) : warning C4700: 使用了未初始化的局部变量“c”[335/344] Building NVCC (Device) object source/backend/cud...MNN_CUDA.dir/execution/MNN_CUDA_generated_Transpose.cu.obj
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
Transpose.cu
[336/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_UnaryExecution.cu.obj
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[344/344] Linking CXX shared library MNN.dll
FAILED: MNN.dll MNN.lib
cmd.exe /C "cd . && D:\zhoumh3_tools\CMake\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\MNN.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\mt.exe --manifests -- D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib && cd ."
LINK Pass 1: command "D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib /MANIFEST /MANIFESTFILE:CMakeFiles\MNN.dir/intermediate.manifest CMakeFiles\MNN.dir/manifest.res" failed (exit code 1319) with the following output:
MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemm.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemm.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScatterNdExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScatterNdExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ImageColumn.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ImageColumn.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
正在创建库 MNN.lib 和对象 MNN.exp
LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
MNN.dll : fatal error LNK1319: 检测到 44 个不匹配项
ninja: build stopped: subcommand failed.
[0/1] Re-running CMake...-- Use Threadpool, forbid openmp
-- >>>>>>>>>>>>>
-- MNN BUILD INFO:
-- System: Windows
-- Processor: AMD64
-- Metal: OFF
-- OpenCL: OFF
-- OpenGL: OFF
-- Vulkan: OFF
-- ARM82: OFF
-- oneDNN: OFF
-- TensorRT: OFF
-- CoreML: OFF
-- CUDA: ON
-- OpenMP: OFF
-- BF16: OFF
-- ThreadPool: ON
-- Hidden: FALSE
-- Build Path: D:/zhoumh3_project/MNN/build
-- WIN_USE_ASM:
-- AMD64: Open SSE
-- MNN_AVX512:ON
CMake Warning (dev) at D:/zhoumh3_tools/CMake/share/cmake-3.23/Modules/FindCUDA.cmake:690 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
source/backend/cuda/CMakeLists.txt:2 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Enabling CUDA support (version: 11.1, archs: )
-- message -D_FORCE_INLINES -Wno-deprecated-gpu-targets -w -O0 -Xcompiler /FS;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75 !!!!!!!!!!!
-- Configuring done
-- Generating done
-- Build files have been written to: D:/zhoumh3_project/MNN/build

[1/1] Linking CXX shared library MNN.dll
FAILED: MNN.dll MNN.lib
cmd.exe /C "cd . && D:\zhoumh3_tools\CMake\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\MNN.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\mt.exe --manifests -- D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib && cd ."
LINK Pass 1: command "D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib /MANIFEST /MANIFESTFILE:CMakeFiles\MNN.dir/intermediate.manifest CMakeFiles\MNN.dir/manifest.res" failed (exit code 1319) with the following output:
MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemm.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemm.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScatterNdExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScatterNdExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ImageColumn.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ImageColumn.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(Backend.cpp.obj 中)
正在创建库 MNN.lib 和对象 MNN.exp
LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
MNN.dll : fatal error LNK1319: 检测到 44 个不匹配项
ninja: build stopped: subcommand failed.


@jxt1234
Copy link
Collaborator

jxt1234 commented Jun 25, 2022

看着是 release / debug 设置不一致,MNN 编译时设置 CMAKE_BUILD_TYPE=Release 试下?

@zhoumenghan
Copy link
Author

将build_lib.ps1中debug的编译注释掉,只保留在release下的编译,报错信息基本一样。

build_lib.ps1的更改如下:

Debug/Dynamic/MT

#log "Debug/Dynamic/MT"
#Remove-Item CMakeCache.txt -ErrorAction Ignore
#Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug -DMNN_WIN_RUNTIME_MT=ON .."
#cp MNN.lib, MNN.dll, MNN.pdb $PACKAGE_LIB_PATH\Debug\Dynamic\MT
#rm MNN.*

Debug/Dynamic/MD

#log "Debug/Dynamic/MD"
#Remove-Item CMakeCache.txt -ErrorAction Ignore
#Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug -DMNN_WIN_RUNTIME_MT=OFF .."
#cp MNN.lib, MNN.dll, MNN.pdb $PACKAGE_LIB_PATH\Debug\Dynamic\MD
#rm MNN.*

Debug/Static/MT

#log "Debug/Static/MT"
#Remove-Item CMakeCache.txt -ErrorAction Ignore
#Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug -DMNN_WIN_RUNTIME_MT=ON -DMNN_BUILD_SHARED_LIBS=OFF .."
#cp MNN.lib $PACKAGE_LIB_PATH\Debug\Static\MT
#rm MNN.*

Debug/Static/MD

#log "Debug/Static/MD"
#Remove-Item CMakeCache.txt -ErrorAction Ignore
#Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug -DMNN_WIN_RUNTIME_MT=OFF -DMNN_BUILD_SHARED_LIBS=OFF .."
#cp MNN.lib $PACKAGE_LIB_PATH\Debug\Static\MD
#rm MNN.*

Release/Dynamic/MT

log "Release/Dynamic/MT"
Remove-Item CMakeCache.txt -ErrorAction Ignore
Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DMNN_WIN_RUNTIME_MT=ON .."
cp MNN.lib, MNN.dll, MNN.pdb $PACKAGE_LIB_PATH\Release\Dynamic\MT
rm MNN.*

Release/Dynamic/MD

log "Release/Dynamic/MD"
Remove-Item CMakeCache.txt -ErrorAction Ignore
Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DMNN_WIN_RUNTIME_MT=OFF .."
cp MNN.lib, MNN.dll, MNN.pdb $PACKAGE_LIB_PATH\Release\Dynamic\MD
rm MNN.*

Release/Static/MT

log "Release/Static/MT"
Remove-Item CMakeCache.txt -ErrorAction Ignore
Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DMNN_WIN_RUNTIME_MT=ON -DMNN_BUILD_SHARED_LIBS=OFF .."
cp MNN.lib $PACKAGE_LIB_PATH\Release\Static\MT

Release/Static/MD

log "Release/Static/MD"
Remove-Item CMakeCache.txt -ErrorAction Ignore
Build "cmake -G Ninja $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DMNN_WIN_RUNTIME_MT=OFF -DMNN_BUILD_SHARED_LIBS=OFF .."
cp MNN.lib $PACKAGE_LIB_PATH\Release\Static\MD

编译log信息如下:

PS D:\zhoumh3_project\MNN> .\package_scripts\win\build_lib.ps1 -path MNN-CUDA/lib/x64

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 x64

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 x64
*** cleaning up ***
*** generating fbs under default ***
*** done ***

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Debug\Dynamic

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 MD
d----- 2022/6/27 10:59 MT

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Debug\Static

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 MD
d----- 2022/6/27 10:59 MT

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Release\Dynamic

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 MD
d----- 2022/6/27 10:59 MT

目录: D:\zhoumh3_project\MNN\MNN-CUDA\lib\x64\lib\x64\Release\Static

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 MD
d----- 2022/6/27 10:59 MT

目录: D:\zhoumh3_project\MNN

Mode LastWriteTime Length Name


d----- 2022/6/27 10:59 build

Build MNN (CPU ) Release/Dynamic/MT

-- The C compiler identification is MSVC 19.16.27048.0
-- The CXX compiler identification is MSVC 19.16.27048.0
-- The ASM compiler identification is MSVC
-- Found assembler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/bupt_/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.4")
-- Use Threadpool, forbid openmp
-- >>>>>>>>>>>>>
-- MNN BUILD INFO:
-- System: Windows
-- Processor: AMD64
-- Metal: OFF
-- OpenCL: OFF
-- OpenGL: OFF
-- Vulkan: OFF
-- ARM82: OFF
-- oneDNN: OFF
-- TensorRT: OFF
-- CoreML: OFF
-- CUDA: ON
-- OpenMP: OFF
-- BF16:
-- ThreadPool: ON
-- Hidden: TRUE
-- Build Path: D:/zhoumh3_project/MNN/build
-- WIN_USE_ASM:
-- AMD64: Open SSE
-- MNN_AVX512:ON
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Warning (dev) at D:/zhoumh3_tools/CMake/share/cmake-3.23/Modules/FindCUDA.cmake:690 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
source/backend/cuda/CMakeLists.txt:2 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.1 (found suitable version "11.1", minimum required is "9.0")
-- Enabling CUDA support (version: 11.1, archs: )
-- message -D_FORCE_INLINES -Wno-deprecated-gpu-targets -w -O3 -Xcompiler /FS;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75 !!!!!!!!!!!
-- Configuring done
-- Generating done
-- Build files have been written to: D:/zhoumh3_project/MNN/build
[65/344] Building CXX object CMakeFiles\MNNTransform.dir\source\geometry\GeometryTopK.cpp.obj
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): warning C4477: “printf”: 格式字符串“%lu”需要类型“unsigned long”的参数,但可变参数 1 拥有了类型“unsigned __int64”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): note: 请考虑在格式字符串中使用“%zu”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): warning C4477: “printf”: 格式字符串“%lu”需要类型“unsigned long”的参数,但可变参数 2 拥有了类型“unsigned __int64”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): note: 请考虑在格式字符串中使用“%zu”
[256/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_BinaryExecution.cu.obj
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
BinaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[257/344] Building NVCC (Device) object source/backend/cud...execution/MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvDepthWiseExecution.cu
[258/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_ArgMaxExecution.cu.obj
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ArgMaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[259/344] Building NVCC (Device) object source/backend/cud....dir/execution/MNN_CUDA_generated_GatherV2Execution.cu.obj
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
GatherV2Execution.cu
[260/344] Building NVCC (Device) object source/backend/cud...ution/MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
DeconvSingleInputExecution.cu
[261/344] Building NVCC (Device) object source/backend/cud...ecution/MNN_CUDA_generated_ConvSingleInputExecution.cu.obj
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ConvSingleInputExecution.cu
cl: 鍛戒护琛?[261/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_ScatterNdExec[262/344] Building NVCC (Device) object source/backend/cud...N_CUDA.dir/execution/MNN_CUDA_generated_ImageColumn.cu.obj
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ImageColumn.cu
[263/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_InterpExecution.cu.obj
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
InterpExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[264/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_MatMulExecution.cu.obj
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
MatMulExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[265/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_LayerNormExecution.cu.obj
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
LayerNormExecution.cu
[266/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_TensorCoreGemm.cu.obj
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemm.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[267/344] Building NVCC (Device) object source/backend/cud...r/execution/MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
TensorCoreGemmPacked.cu
[268/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_PReLUExecution.cu.obj
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PReLUExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[269/344] Building NVCC (Device) object source/backend/cud...CUDA.dir/execution/MNN_CUDA_generated_PoolExecution.cu.obj
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
PoolExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[270/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_ScaleExecution.cu.obj
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScaleExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[271/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_ScatterNdExecution.cu.obj
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ScatterNdExecution.cu
[272/344] Building NVCC (Device) object source/backend/cud...dir/execution/MNN_CUDA_generated_ReductionExecution.cu.obj
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
ReductionExecution.cu
[274/344] Building NVCC (Device) object source/backend/cud...A.dir/execution/MNN_CUDA_generated_SoftmaxExecution.cu.obj
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SoftmaxExecution.cu
[275/344] Building NVCC (Device) object source/backend/cud...DA.dir/execution/MNN_CUDA_generated_SelectExecution.cu.obj
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
SelectExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[283/344] Building NVCC (Device) object source/backend/cud...es/MNN_CUDA.dir/execution/MNN_CUDA_generated_Raster.cu.obj
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Raster.cu
Raster.cu
cl: 鍛戒护琛?warning D9025 :姝e?[283/344] Building CXX object tools\train\CMakeFiles\MNNTrain.dir\source\grad\ConcatGra[335/344] Building NVCC (Device) object source/backend/cud...MNN_CUDA.dir/execution/MNN_CUDA_generated_Transpose.cu.obj
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
Transpose.cu
Transpose.cu
[336/344] Building NVCC (Device) object source/backend/cud...UDA.dir/execution/MNN_CUDA_generated_UnaryExecution.cu.obj
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
UnaryExecution.cu
cl: 鍛戒护琛?warning D9025 :姝e湪閲嶅啓鈥?W3鈥?鐢ㄢ€?w鈥?
[344/344] Linking CXX shared library MNN.dll

Build MNN (CPU ) Release/Dynamic/MD

-- The C compiler identification is MSVC 19.16.27048.0
-- The CXX compiler identification is MSVC 19.16.27048.0
-- The ASM compiler identification is MSVC
-- Found assembler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/zhoumh3_tools/VS2017/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/bupt_/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.4")
-- Use Threadpool, forbid openmp
-- >>>>>>>>>>>>>
-- MNN BUILD INFO:
-- System: Windows
-- Processor: AMD64
-- Metal: OFF
-- OpenCL: OFF
-- OpenGL: OFF
-- Vulkan: OFF
-- ARM82: OFF
-- oneDNN: OFF
-- TensorRT: OFF
-- CoreML: OFF
-- CUDA: ON
-- OpenMP: OFF
-- BF16:
-- ThreadPool: ON
-- Hidden: TRUE
-- Build Path: D:/zhoumh3_project/MNN/build
-- WIN_USE_ASM:
-- AMD64: Open SSE
-- MNN_AVX512:ON
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Warning (dev) at D:/zhoumh3_tools/CMake/share/cmake-3.23/Modules/FindCUDA.cmake:690 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
source/backend/cuda/CMakeLists.txt:2 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.1 (found suitable version "11.1", minimum required is "9.0")
-- Enabling CUDA support (version: 11.1, archs: )
-- message -D_FORCE_INLINES -Wno-deprecated-gpu-targets -w -O3 -Xcompiler /FS;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75 !!!!!!!!!!!
-- Configuring done
-- Generating done
-- Build files have been written to: D:/zhoumh3_project/MNN/build
[63/322] Building CXX object CMakeFiles\MNNTransform.dir\source\geometry\GeometryTopK.cpp.obj
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): warning C4477: “printf”: 格式字符串“%lu”需要类型“unsigned long”的参数,但可变参数 1 拥有了类型“unsigned __int64”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): note: 请考虑在格式字符串中使用“%zu”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): warning C4477: “printf”: 格式字符串“%lu”需要类型“unsigned long”的参数,但可变参数 2 拥有了类型“unsigned __int64”
D:\zhoumh3_project\MNN\source\geometry\GeometryTopK.cpp(19): note: 请考虑在格式字符串中使用“%zu”
[322/322] Linking CXX shared library MNN.dll
FAILED: MNN.dll MNN.lib
cmd.exe /C "cd . && D:\zhoumh3_tools\CMake\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\MNN.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\mt.exe --manifests -- D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /INCREMENTAL:NO /DEBUG /OPT:REF /OPT:ICF /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib && cd ."
LINK: command "D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /INCREMENTAL:NO /DEBUG /OPT:REF /OPT:ICF /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib /MANIFEST /MANIFESTFILE:MNN.dll.manifest" failed (exit code 1319) with the following output:
MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemm.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScatterNdExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ImageColumn.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
正在创建库 MNN.lib 和对象 MNN.exp
LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
MNN.dll : fatal error LNK1319: 检测到 22 个不匹配项
ninja: build stopped: subcommand failed.
[1/1] Linking CXX shared library MNN.dll
FAILED: MNN.dll MNN.lib
cmd.exe /C "cd . && D:\zhoumh3_tools\CMake\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\MNN.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1001771.0\x64\mt.exe --manifests -- D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /INCREMENTAL:NO /DEBUG /OPT:REF /OPT:ICF /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib && cd ."
LINK: command "D:\zhoumh3_tools\VS2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\MNN.rsp /out:MNN.dll /implib:MNN.lib /pdb:MNN.pdb /dll /version:0.0 /machine:x64 /INCREMENTAL:NO /DEBUG /OPT:REF /OPT:ICF /IGNORE:4049,4217 /WHOLEARCHIVE:D:/zhoumh3_project/MNN/build/source/backend/cuda/MNN_CUDA.lib /MANIFEST /MANIFESTFILE:MNN.dll.manifest" failed (exit code 1319) with the following output:
MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemmPacked.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_TensorCoreGemm.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScatterNdExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ImageColumn.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.cpp.obj 中)
正在创建库 MNN.lib 和对象 MNN.exp
LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
MNN.dll : fatal error LNK1319: 检测到 22 个不匹配项
ninja: build stopped: subcommand failed.

@zhoumenghan
Copy link
Author

此问题还未解决,期待您的回复

@jxt1234
Copy link
Collaborator

jxt1234 commented Jul 1, 2022

我们测试一下,目前没有windows + nvdia cuda 的环境

@hk19941214
Copy link

我们测试一下,目前没有windows + nvdia cuda 的环境

我在编译的时候也遇到了同样的问题,想问下如果我想在带有英伟达显卡的windows设备上部署MNN应该怎么编库呢?

@dianxin556
Copy link

遇到同样问题,期待能解决~

@liyanjun0925
Copy link

编译遇到一样的问题,MNN2.2.0+win+cuda, 请问现在有解决方法了吗

@wangzhaode wangzhaode added bug Something isn't working building CUDA Windows labels Feb 15, 2023
@bitxsw93
Copy link
Collaborator

Please update lastest mnn code, retry again. If having any problem, please let me know.

@bitxsw93 bitxsw93 self-assigned this Feb 17, 2023
@kevintsq
Copy link

使用 VS 2022 打开 CMake 生成的 MNN.sln,选择“生成解决方案”,然后出现相同问题:

12>MNN_CUDA.lib(MNN_CUDA_generated_Int8ToFloatExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_FloatToInt8Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_DepthwiseConvInt8Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassGemmInt8TensorCore16832.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassGemmInt8TensorCore.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ConvInt8CutlassExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassGemmTensorCore884.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassGemmTensorCore.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassGemmCUDACoreFloat32.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassGemmCUDACoreFloat16.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_CutlassCommonExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_UnaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_Transpose.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_SoftmaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_SelectExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ScaleExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ReductionExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_Raster.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_RangeExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_PoolExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_PReLUExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_MultiInputConvExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_MatMulExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_LoopExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_LayerNormExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_InterpExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_GridSampleExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_GatherV2Execution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_DeconvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ConvWinogradExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ConvSingleInputExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ConvDepthWiseExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ConvCutlassExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ConvBaseKernel.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_BinaryExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ArgMinExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>MNN_CUDA.lib(MNN_CUDA_generated_ArgMaxExecution.cu.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(Backend.obj 中)
12>  正在创建库 <path_omitted>/MNN/build/Release/MNN.lib 和对象 <path_omitted>/MNN/build/Release/MNN.exp
12>LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
12><path_omitted>\MNN\build\Release\MNN.dll : fatal error LNK1319: 检测到 37 个不匹配项

@hj8e45
Copy link

hj8e45 commented Jun 14, 2023

Please update lastest mnn code, retry again. If having any problem, please let me know.

MNN 2.5.0+MSVC 2019+CUDA 11.2(940MX)
still the same issue

@hj8e45
Copy link

hj8e45 commented Jun 19, 2023

#2321

@JiaYK
Copy link

JiaYK commented Dec 20, 2023

经过不严谨测试,选择
-DCMAKE_BUILD_TYPE=Release
并把之前build的文件夹删除,重新编译,就可以win+cuda11.6在编译成功

Copy link

Marking as stale. No activity in 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants