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推理输出为全0,cpu推理输出正常 #2333

Closed
bigsealing opened this issue Apr 14, 2023 · 2 comments
Closed

cuda推理输出为全0,cpu推理输出正常 #2333

bigsealing opened this issue Apr 14, 2023 · 2 comments
Assignees
Labels
bug Something isn't working CUDA stale

Comments

@bigsealing
Copy link

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

linux

Github版本: 2.3.1 ,因为2.4.2无法编译cuda版本,所以采用2.3.1能编译出cuda版本。

编译方式:

Compiling Method

cmake .. -DMNN_USE_SYSTEM_LIB=true -DMNN_SEP_BUILD=false -DMNN_BUILD_CONVERTER=true && make -j8

请在这里粘贴cmake参数或使用的cmake脚本路径以及完整输出
Paste cmake arguments or path of the build script used here as well as the full log of the cmake proess here or pastebin
```--
-- 3.19.0.0
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
-- Use Threadpool, forbid openmp
-- >>>>>>>>>>>>>
-- MNN BUILD INFO:
--      System: Linux
--      Processor: x86_64
--      Version: 2.3.1
--      Metal: OFF
--      OpenCL: OFF
--      OpenGL: OFF
--      Vulkan: OFF
--      ARM82: OFF
--      oneDNN: OFF
--      TensorRT: OFF
--      CoreML: OFF
--      NNAPI: OFF
--      CUDA: ON
--      OpenMP: OFF
--      BF16: OFF
--      ThreadPool: ON
--      Hidden: TRUE
--      Build Path: /disk4/wangxu/MNN/build
--      CUDA PROFILE: OFF
-- WIN_USE_ASM:
-- x86_64: Open SSE
-- MNN_AVX512:OFF
-- Autodetected CUDA architecture(s):  6.1 6.1 6.1 6.1 6.1 6.1 6.1 6.1
-- Enabling CUDA support (version: 11.1, archs: sm_61)
-- message  -D_FORCE_INLINES -Wno-deprecated-gpu-targets -w  -O3 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 !!!!!!!!!!! /usr/local/cuda-11.1/include
-- Onnx:
-- Configuring done
-- Generating done
-- Build files have been written to: /disk4/wangxu/MNN/build
Scanning dependencies of target MNNAVX
[  0%] Building CXX object CMakeFiles/MNNCV.dir/source/cv/ImageProcess.cpp.o
[  0%] Building CXX object CMakeFiles/MNNUtils.dir/source/utils/InitNet.cpp.o
[  0%] Building CXX object CMakeFiles/MNNX8664.dir/source/backend/cpu/x86_x64/AVX2Backend.cpp.o
[  0%] Building CXX object CMakeFiles/MNNAVX.dir/source/backend/cpu/x86_x64/avx/GemmAVX2.cpp.o
[  0%] Building CXX object CMakeFiles/MNNMath.dir/source/math/Matrix.cpp.o
[  0%] Building CXX object CMakeFiles/MNNCore.dir/source/core/AutoTime.cpp.o
[  1%] Building CXX object CMakeFiles/MNNCPU.dir/source/backend/cpu/CPUArgMax.cpp.o
[  1%] Building CXX object CMakeFiles/MNNTransform.dir/source/geometry/ConvertUtils.cpp.o
[  1%] Building CXX object CMakeFiles/MNNCore.dir/source/core/Backend.cpp.o
[  1%] Building CXX object CMakeFiles/MNNMath.dir/source/math/WingoradGenerater.cpp.o
[  1%] Building CXX object CMakeFiles/MNNAVX.dir/source/backend/cpu/x86_x64/avx/GemmCommon.cpp.o
[  1%] Building CXX object CMakeFiles/MNNCV.dir/source/cv/Matrix_CV.cpp.o
[  1%] Building CXX object CMakeFiles/MNNTransform.dir/source/geometry/GeometryBatchMatMul.cpp.o
[  1%] Building CXX object CMakeFiles/MNNCore.dir/source/core/BackendRegister.cpp.o
[  1%] Built target MNNMath
[  1%] Building CXX object CMakeFiles/MNNCPU.dir/source/backend/cpu/CPUBackend.cpp.o
[  1%] Building CXX object CMakeFiles/MNNCore.dir/source/core/BufferAllocator.cpp.o
[  1%] Building CXX object CMakeFiles/MNNX8664.dir/source/backend/cpu/x86_x64/AVX2Functions.cpp.o
[  2%] Building CXX object CMakeFiles/MNNX8664.dir/source/backend/cpu/x86_x64/FunctionDispatcher.cpp.o
[  2%] Built target MNNCV
[  2%] Building CXX object CMakeFiles/MNNX8664.dir/source/backend/cpu/x86_x64/cpu_id.cc.o
[  2%] Building CXX object CMakeFiles/MNNTransform.dir/source/geometry/GeometryBinary.cpp.o
[  2%] Building CXX object CMakeFiles/MNNUtils.dir/source/utils/JNIHelper.cpp.o
[  2%] Built target MNNUtils
[  2%] Building CXX object CMakeFiles/MNNTransform.dir/source/geometry/GeometryBroadcastTo.cpp.o

[ 57%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ExpandOnnx.cpp.o
[ 58%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/ScatterNdTf.cpp.o
[ 58%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/CaffeExtraManager.cpp.o
[ 58%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Detection.cpp.o
[ 58%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/CastTflite.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/EmbedTransform.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/EyeLikeOnnx.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SegmentMeanTf.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ConcatTflite.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Eltwise.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/ExpTransform.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/Select.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/FlattenOnnx.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ConvolutionTflite.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/LogTransform.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Elu.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SeluTf.cpp.o
[ 59%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/MVNTransform.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/GridSampleOnnx.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/CustomTflite.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Im2Seq.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/PowerTransform.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/Shape.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/GridSampleOnnxClassic.cpp.o
[ 60%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/caffeextra/ReductionTransform.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/DepthwiseConv2DTflite.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SigmoidTf.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/InnerProduct.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/BinaryAddToEltwise.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/IdentityOnnx.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SizeTf.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/DequantizeTflite.cpp.o
[ 61%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/ConstantFolding.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Input.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/IfOnnx.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SliceTf.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ExpandDimTflite.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/Conv1dQuantToConv2dQuant.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/LRN.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SoftmaxTf.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/FillTflite.cpp.o
[ 62%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/LRNOnnx.cpp.o
[ 63%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SpaceToDepth.cpp.o
[ 63%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/LSTM.cpp.o
[ 63%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/GatherTflite.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/Conv1dSqueezeMove.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/LoopOnnx.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/SqueezeTf.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/LogisticTflite.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Normalize.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/MatMulOnnx.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/ConvBNReluFuseToConvInt8.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/StridedSliceTf.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/OneHotTflite.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/OpConverter.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/OnnxUtils.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TFGraphResolver.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/PackTflite.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ROIAlignOnnx.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/ConvBiasAdd.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Permute.cpp.o
[ 64%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/PadTflite.cpp.o
[ 65%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ROIPoolingOnnx.cpp.o
[ 65%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TanhTf.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/PoolingTflite.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Pool.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/RangeOnnx.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/ConvDilateFuse.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TensorArrayTf.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/RangeTflite.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/PriorBox.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ReduceOnnx.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TfModelOptimizer.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ReductionTflite.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/ConvertMatMulToConv2D.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Python.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ReluOnnx.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ReluTflite.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TfUtils.cpp.o
[ 66%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/DepthwiseConvWeightMerge.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/ROIPooling.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ReshapeOnnx.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ReshapeTflite.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TileTf.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ResizeBilinear.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/SequenceOnnx.cpp.o
[ 67%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Relu.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TmpGraph.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/EliminateQuantAndDequant.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/SelectTflite.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Reshape.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/ShapeOnnx.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/EliminateSqueezeExpandDims.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/ShapeTflite.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TopKV2Tf.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/ResizeInterp.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/SigmoidOnnx.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FakeInput.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/SliceTflite.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/TransposeTf.cpp.o
[ 68%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FoldExpandDimsConst.cpp.o
[ 69%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/SoftmaxTflite.cpp.o
[ 69%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/SoftmaxOnnx.cpp.o
[ 69%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/ShuffleChannel.cpp.o
[ 69%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/UnaryOp.cpp.o
[ 69%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/SpaceToDepthTflite.cpp.o
[ 70%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/SpaceToDepthOnnx.cpp.o
[ 70%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Sigmoid.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FuseGeLu.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/UniqueTf.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/SplitOnnx.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/SqueezeTflite.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Slice.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FuseLayerNorm.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/UnpackTf.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/SqueezeOnnx.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/TanHTflite.cpp.o
[ 71%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/MNN_Cuda_Main_generated_SelectExecution.cu.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FuseLayerNormV2.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/UnravelIndexTf.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Softmax.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/TfliteUtils.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/TanhOnnx.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FuseLayerNormV3.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/WhereTf.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/TileTflite.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/SpatialProduct.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/TileOnnx.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/tensorflowConverter.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FuseTemplateOp.cpp.o
[ 71%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/TopKV2Tflite.cpp.o
[ 72%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Tanh.cpp.o
[ 72%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/TransposeOnnx.cpp.o
[ 72%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/TransposeTflite.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/tfOpConverter.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/FuseTfPrelu.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/Threshold.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/UnSqueezeOnnx.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/UnaryTflite.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/LSTMWeightInt8.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/attr_value.pb.cc.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/UnaryOp.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/UnaryOnnx.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/UnpackTflite.cpp.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/function.pb.cc.o
[ 73%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/caffeConverter.cpp.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/liteConverter.cpp.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/WhereOnnx.cpp.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/MergeHelpers.cpp.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/graph.pb.cc.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/onnxConverter.cpp.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/RemoveDuplicateReshape.cpp.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/node_def.pb.cc.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterCaffe.dir/source/caffe/generated/caffe.pb.cc.o
[ 74%] Building CXX object tools/converter/CMakeFiles/MNNConverterTFL.dir/source/tflite/liteOpConverter.cpp.o
[ 75%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/RemoveDuplicatedTensorConvert.cpp.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/onnxOpConverter.cpp.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/op_def.pb.cc.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/RemoveInverseTensorConverter.cpp.o
[ 76%] Built target MNNConverterTFL
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/SliceTFMerge.cpp.o
/disk4/wangxu/MNN/tools/converter/source/onnx/onnxOpConverter.cpp: In static member function ‘static MNN::BlobT* onnxOpConverter::convertTensorToBlob(const onnx::TensorProto*, const string&)’:
/disk4/wangxu/MNN/tools/converter/source/onnx/onnxOpConverter.cpp:167:50: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
         fread(alignContent.data(), 1, length, fp);
                                                  ^
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/resource_handle.pb.cc.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/merge/TensorConverterMerge.cpp.o
[ 76%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/MNN_Cuda_Main_generated_SoftmaxExecution.cu.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/tensor.pb.cc.o
Consolidate compiler generated dependencies of target OnnxClip
[ 76%] Building CXX object tools/converter/CMakeFiles/OnnxClip.dir/source/onnx/exec/OnnxClip.cpp.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterONNX.dir/source/onnx/generated/onnx.pb.cc.o
[ 76%] Building CXX object tools/converter/CMakeFiles/OnnxClip.dir/source/onnx/generated/onnx.pb.cc.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/tensor_shape.pb.cc.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxBatchNormMerge.cpp.o
[ 76%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/types.pb.cc.o
[ 77%] Building CXX object tools/converter/CMakeFiles/MNNConverterTF.dir/source/tensorflow/generated/versions.pb.cc.o
[ 77%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxClip.cpp.o
[ 77%] Built target MNNConverterTF
[ 77%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxConstantOfShape.cpp.o
[ 77%] Built target MNNConverterONNX
[ 77%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxConvolutionMerge.cpp.o
[ 77%] Building CXX object tools/converter/CMakeFiles/OnnxClip.dir/source/onnx/OnnxUtils.cpp.o
[ 77%] Linking CXX executable ../../OnnxClip
[ 77%] Built target OnnxClip
[ 77%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/MNN_Cuda_Main_generated_Transpose.cu.o
[ 77%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxEinsum.cpp.o
[ 77%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/MNN_Cuda_Main_generated_UnaryExecution.cu.o
[ 78%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxExtraManager.cpp.o
[ 78%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/cutlass/MNN_Cuda_Main_generated_CutlassGemmCUDACoreFloat16.cu.o
[ 78%] Built target MNNConverterCaffe
[ 78%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/cutlass/MNN_Cuda_Main_generated_CutlassGemmCUDACoreFloat32.cu.o
[ 78%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxGather.cpp.o
[ 78%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxGemm.cpp.o
[ 78%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxHardSigmoid.cpp.o
[ 78%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxLSTMMerge.cpp.o
[ 79%] Building NVCC (Device) object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/cutlass/MNN_Cuda_Main_generated_CutlassGemmTensorCore.cu.o
[ 79%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxLogSoftmax.cpp.o
[ 79%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxNonMaxSuppression.cpp.o
[ 79%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxNot.cpp.o
[ 79%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxOneHot.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxPad.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxPooling.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxPrelu.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxRandomUniform.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxReduceL2.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxScatterND.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxSequenceGRUMerge.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxSlice.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxSoftplus.cpp.o
[ 80%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxSoftsign.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxTopK.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxUnPool.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/OnnxUpsample.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/onnxextra/ResolveIdentityOnnx.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/passes/NoPass.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/passes/Pass.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/passes/PassRegistry.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/AddTensorFormatConverter.cpp.o
[ 81%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/AddTensorType.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/ConvertBinaryToElementwise.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/FuseDupOp.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/MergeBNToConvolution.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/MergeRelu6ToConvolution.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/MergeReluToBinary.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/MergeReluToConvolution.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/MergeScaleToConvolution.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/ReIndexOnnxIfAlias.cpp.o
[ 82%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/ReIndexTensor.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/RemoveCopy.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/RemoveDropout.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/RemoveInplace.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/RemoveInvalidCast.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/RemoveOutputTensorConvert.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/RemoveUnusefulOp.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/ResolveTfShapeN.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/TransformBatchNormal.cpp.o
[ 83%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/TransformGroupConvolution.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/TransformIm2Seq.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/TransformInnerProduct.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/TransformOnnxPad.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/postconvert/TransformShuffleChannel.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFApproximateEqual.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFArgMaxMerge.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFBatchNormalMerge.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFBatchToSpaceND.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFClip.cpp.o
[ 84%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFConcatMerge.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFConvolution3DMerge.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFConvolutionMerge.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFCustomDequantize.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFCustomQuantize.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFDense.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFExtraManager.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFExtraOp.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFIsFinite.cpp.o
[ 85%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFPrelu.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFSliceMerge.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFSoftplus.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tfextra/TFSoftsign.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tflitextra/BinaryActivation.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tflitextra/FullConnect.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tflitextra/TFliteBatchToSpace.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tflitextra/TFliteExtraManager.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/tflitextra/TflitePrelu.cpp.o
[ 86%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchAddmm.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchExtraManager.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchFlip.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchHardSigmoid.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchIndex.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchNorm.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchNot.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchPad.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchRepeat.cpp.o
[ 87%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchReshapAs.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchScatteradd.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchSilu.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchSize.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchSlice.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchSoftplus.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchTranspose.cpp.o
[ 88%] Building CXX object tools/converter/CMakeFiles/MNNConverterOpt.dir/source/optimizer/torchextra/TorchZeros.cpp.o
[ 88%] Building CXX object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/core/CUDABackend.cpp.o
[ 88%] Building CXX object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/execution/RasterExecution.cpp.o
[ 88%] Building CXX object source/backend/cuda/CMakeFiles/MNN_Cuda_Main.dir/core/runtime/CUDARuntime.cpp.o
[ 88%] Built target MNNConverterOpt
[ 88%] Linking CXX shared library libMNN_Cuda_Main.so
[ 88%] Built target MNN_Cuda_Main
[ 88%] Building CXX object CMakeFiles/MNN.dir/cmake/dummy.cpp.o
[ 88%] Linking CXX shared library libMNN.so
[ 88%] Built target MNN
[ 88%] Building CXX object CMakeFiles/mobilenetTest.out.dir/tools/cpp/mobilenetTest.cpp.o
[ 88%] Building CXX object CMakeFiles/mergeInplaceForCPU.dir/tools/cpp/mergeInplaceForCPU.cpp.o
[ 89%] Building CXX object CMakeFiles/MNNV2Basic.out.dir/tools/cpp/MNNV2Basic.cpp.o
[ 89%] Building CXX object CMakeFiles/ModuleBasic.out.dir/tools/cpp/ModuleBasic.cpp.o
[ 89%] Building CXX object CMakeFiles/SequenceModuleTest.out.dir/tools/cpp/SequenceModuleTest.cpp.o
[ 89%] Building CXX object CMakeFiles/backendTest.out.dir/tools/cpp/backendTest.cpp.o
[ 89%] Building CXX object CMakeFiles/GetMNNInfo.dir/tools/cpp/GetMNNInfo.cpp.o
[ 89%] Building CXX object CMakeFiles/modelCompare.out.dir/tools/cpp/modelCompare.cpp.o
[ 89%] Linking CXX executable GetMNNInfo
[ 89%] Built target GetMNNInfo
[ 89%] Building CXX object CMakeFiles/testModel.out.dir/tools/cpp/testModel.cpp.o
[ 90%] Linking CXX executable modelCompare.out
[ 90%] Built target modelCompare.out
[ 90%] Building CXX object CMakeFiles/testModel_expr.out.dir/tools/cpp/testModel_expr.cpp.o
[ 90%] Linking CXX executable backendTest.out
[ 90%] Built target backendTest.out
[ 90%] Building CXX object CMakeFiles/testModelWithDescrisbe.out.dir/tools/cpp/testModelWithDescrisbe.cpp.o
[ 90%] Linking CXX executable MNNV2Basic.out
[ 90%] Built target MNNV2Basic.out
[ 90%] Building CXX object CMakeFiles/getPerformance.out.dir/tools/cpp/getPerformance.cpp.o
/disk4/wangxu/MNN/tools/cpp/getPerformance.cpp: In function ‘void getFreqKhz(int, std::vector<int>&)’:
/disk4/wangxu/MNN/tools/cpp/getPerformance.cpp:71:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         fscanf(fp, "%d", &freqKhz);
                                   ^
/disk4/wangxu/MNN/tools/cpp/getPerformance.cpp:84:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         fscanf(fp, "%d", &freqKhz);
                                   ^
[ 90%] Linking CXX executable testModel.out
[ 90%] Linking CXX executable getPerformance.out
[ 91%] Linking CXX executable testModel_expr.out
[ 91%] Built target testModel.out
[ 91%] Building CXX object CMakeFiles/checkInvalidValue.out.dir/tools/cpp/checkInvalidValue.cpp.o
[ 91%] Linking CXX executable SequenceModuleTest.out
[ 91%] Built target getPerformance.out
[ 91%] Built target testModel_expr.out
[ 91%] Building CXX object CMakeFiles/timeProfile.out.dir/tools/cpp/timeProfile.cpp.o
[ 91%] Building CXX object CMakeFiles/testTrain.out.dir/tools/cpp/testTrain.cpp.o
[ 91%] Built target SequenceModuleTest.out
[ 92%] Building CXX object CMakeFiles/aoa_nlu_encoder.out.dir/tools/cpp/aoa/aoa_nlu_encoder.cpp.o
[ 92%] Linking CXX executable ModuleBasic.out
[ 92%] Built target ModuleBasic.out
[ 92%] Building CXX object CMakeFiles/timeProfile.out.dir/tools/cpp/revertMNNModel.cpp.o
[ 93%] Linking CXX executable checkInvalidValue.out
[ 93%] Built target checkInvalidValue.out
[ 93%] Building CXX object CMakeFiles/aoa_nlu_decoder1.out.dir/tools/cpp/aoa/aoa_nlu_decoder1.cpp.o
[ 93%] Linking CXX executable mobilenetTest.out
[ 93%] Built target mobilenetTest.out
[ 93%] Building CXX object CMakeFiles/aoa_nlu_encoder.out.dir/tools/cpp/revertMNNModel.cpp.o
[ 93%] Linking CXX executable testModelWithDescrisbe.out
[ 93%] Built target testModelWithDescrisbe.out
[ 93%] Building CXX object CMakeFiles/aoa_nlu_decoder2.out.dir/tools/cpp/aoa/aoa_nlu_decoder2.cpp.o
[ 93%] Linking CXX executable testTrain.out
[ 93%] Built target testTrain.out
[ 93%] Building CXX object CMakeFiles/aoa_nlu_decoder1.out.dir/tools/cpp/revertMNNModel.cpp.o
[ 93%] Building CXX object CMakeFiles/winogradExample.out.dir/tools/cpp/winogradExample.cpp.o
[ 93%] Building CXX object CMakeFiles/aoa_nlu_decoder2.out.dir/tools/cpp/revertMNNModel.cpp.o
[ 93%] Linking CXX executable winogradExample.out
[ 93%] Built target winogradExample.out
[ 93%] Building CXX object CMakeFiles/winogradGenerateGLSL.out.dir/tools/cpp/winogradGenerateGLSL.cpp.o
[ 94%] Linking CXX executable winogradGenerateGLSL.out
[ 94%] Building CXX object CMakeFiles/winogradGenerateCL.out.dir/tools/cpp/winogradGenerateCL.cpp.o
[ 94%] Built target winogradGenerateGLSL.out
[ 94%] Building CXX object CMakeFiles/timeProfile.out.dir/tools/cpp/Profiler.cpp.o
[ 94%] Linking CXX executable winogradGenerateCL.out
[ 94%] Built target winogradGenerateCL.out
[ 94%] Building CXX object CMakeFiles/quantized.out.dir/tools/quantization/Helper.cpp.o
[ 94%] Linking CXX executable mergeInplaceForCPU
[ 94%] Building CXX object CMakeFiles/quantized.out.dir/tools/quantization/TensorStatistic.cpp.o
[ 94%] Built target mergeInplaceForCPU
[ 94%] Building CXX object CMakeFiles/quantized.out.dir/tools/quantization/calibration.cpp.o
[ 94%] Building CXX object CMakeFiles/quantized.out.dir/tools/quantization/quantizeWeight.cpp.o
[ 94%] Building CXX object CMakeFiles/quantized.out.dir/tools/quantization/quantized.cpp.o
[ 95%] Building CXX object tools/train/CMakeFiles/transformer.out.dir/source/exec/transformerExecution.cpp.o
[ 95%] Linking CXX executable timeProfile.out
[ 95%] Built target timeProfile.out
[ 95%] Building CXX object tools/train/CMakeFiles/train.out.dir/source/exec/train.cpp.o
[ 95%] Linking CXX executable aoa_nlu_encoder.out
[ 95%] Built target aoa_nlu_encoder.out
[ 95%] Building CXX object tools/train/CMakeFiles/transformer.out.dir/source/transformer/OpConverter.cpp.o
[ 95%] Linking CXX executable aoa_nlu_decoder1.out
[ 95%] Linking CXX executable aoa_nlu_decoder2.out
[ 95%] Built target aoa_nlu_decoder1.out
[ 95%] Building CXX object tools/train/CMakeFiles/transformer.out.dir/source/transformer/Transformer.cpp.o
[ 95%] Built target aoa_nlu_decoder2.out
[ 95%] Building CXX object tools/train/CMakeFiles/rawDataTransform.out.dir/source/exec/rawDataTransform.cpp.o
[ 95%] Linking CXX executable ../../train.out
[ 95%] Built target train.out
[ 95%] Building CXX object tools/train/CMakeFiles/dataTransformer.out.dir/source/exec/dataTransformer.cpp.o
[ 96%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/DemoUnit.cpp.o
[ 96%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/ImageDatasetDemo.cpp.o
[ 96%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/MnistUtils.cpp.o
Consolidate compiler generated dependencies of target MNNConvertDeps
[ 96%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/AddSparseInfo.cpp.o
[ 96%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/AddUUID.cpp.o
[ 96%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/MobilenetV2Utils.cpp.o
[ 96%] Linking CXX executable ../../transformer.out
[ 96%] Built target transformer.out
[ 96%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/dataLoaderDemo.cpp.o
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/AlignDenormalizedValue.cpp.o
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/Common.cpp.o
[ 97%] Linking CXX executable ../../rawDataTransform.out
[ 97%] Built target rawDataTransform.out
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/ConverterScope.cpp.o
[ 97%] Linking CXX executable quantized.out
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/FullQuantAndCoding.cpp.o
[ 97%] Built target quantized.out
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/OpCount.cpp.o
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/RemoveParams.cpp.o
[ 97%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/dataLoaderTest.cpp.o
[ 97%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/demoMain.cpp.o
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/SaveHalfFloat.cpp.o
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/WeightQuantAndCoding.cpp.o
[ 97%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/cli.cpp.o
[ 97%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/distillTrainQuant.cpp.o
[ 97%] Linking CXX executable ../../dataTransformer.out
[ 97%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/linearRegression.cpp.o
[ 97%] Built target dataTransformer.out
[ 97%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/mnistTrain.cpp.o
[ 98%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/mobilenetV2Train.cpp.o
[ 98%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/nnGradTest.cpp.o
[ 98%] Building CXX object tools/train/CMakeFiles/runTrainDemo.out.dir/source/demo/quanByMSE.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/convertToStaticModel.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/options.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/source/common/writeFb.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNConvertDeps.dir/__/__/3rd_party/flatbuffers/src/util.cpp.o
[ 99%] Linking CXX executable ../../runTrainDemo.out
[ 99%] Built target runTrainDemo.out
[ 99%] Linking CXX shared library libMNNConvertDeps.so
[ 99%] Built target MNNConvertDeps
Consolidate compiler generated dependencies of target MNNConvert
Consolidate compiler generated dependencies of target MNNDump2Json
Consolidate compiler generated dependencies of target MNNRevert2Buffer
Consolidate compiler generated dependencies of target TestConvertResult
Consolidate compiler generated dependencies of target TestPassManager
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNConvert.dir/source/MNNConverter.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNRevert2Buffer.dir/source/MNNRevert2Buffer.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/MNNDump2Json.dir/source/MNNDump2Json.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/TestConvertResult.dir/source/TestConvertResult.cpp.o
[ 99%] Building CXX object tools/converter/CMakeFiles/TestPassManager.dir/source/TestPassManager.cpp.o
[ 99%] Linking CXX executable ../../MNNDump2Json
[ 99%] Linking CXX executable ../../MNNRevert2Buffer
[ 99%] Linking CXX executable ../../MNNConvert
[100%] Linking CXX executable ../../TestConvertResult
[100%] Built target MNNRevert2Buffer
[100%] Built target MNNDump2Json
[100%] Built target MNNConvert
[100%] Built target TestConvertResult
[100%] Linking CXX executable ../../TestPassManager
[100%] Built target TestPassManager

# 编译日志:
# Build Log:

model.zip

粘贴在这里
Paste log here or pastebin

对应的ModuleBaisc.out分别执行cuda推理和cpu推理的执行结果如下:

1)cuda推理结果,输出为全0
./ModuleBasic.out  model.mnn onnx 0 2 1 1 2
Test model.mnn from input info: onnx
onnx_input
output: onnx_output
Use extra forward type: 2
precision=2 in main, 178
cacheFileName=s .tempcache in main, 179
The device support dot:0, support fp16:0, support i8mm: 0
Load Cache file error.
main, 213, cost time: 75.061005 ms
Run for 0 time
before compare onnx_output: (1, 160000, )
TESTERROR onnx_output value error : absMaxV:0.033646 - DiffMax 0.033646
0 run Error for output onnx_output
Write onnx_output output to output/0_0.txt
memoryInMB=f 208.052795 in main, 332
Avg= 11.334001 ms, min= 11.334001 ms, max= 11.334001 ms
(audio_torch) root@cs102:/disk4/MNN/build# vim output/0_0.txt

2)cpu推理,推理结果正常
(audio_torch) root@cs102:/disk4/MNN/build# ./ModuleBasic.out model.mnn onnx 0 0 1 1 2
Test model.mnn from input info: onnx
onnx_input
output: onnx_output
Use extra forward type: 0
precision=2 in main, 178
cacheFileName=s .tempcache in main, 179
The device support dot:0, support fp16:0, support i8mm: 0
Load Cache file error.
main, 213, cost time: 99.201004 ms
Run for 0 time
before compare onnx_output: (1, 160000, )
Write onnx_output output to output/0_0.txt
memoryInMB=f 385.236145 in main, 332
Avg= 3502.545166 ms, min= 3502.545166 ms, max= 3502.545166 ms
@MaybeShewill-CV
Copy link
Contributor

@bigsealing cuda后端的话 可以试试设置precision_mode为normal 看看能不能解决你的问题:)

@wangzhaode wangzhaode added bug Something isn't working CUDA labels Apr 25, 2023
This was referenced Jul 5, 2023
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
bug Something isn't working CUDA stale
Projects
None yet
Development

No branches or pull requests

4 participants