zoukankan      html  css  js  c++  java
  • debug for bin runtime error

    1. check the library for the bin

        check the absence of the library link by the bin  // ldd libcaffe.so,  ldd /usr/src/tensorrt/bin/trtexec

        check the absence of the symbol used in the bin  // ldd -r libcaffe.so, objdump -TC  | grep 

    2. use strace tool to debug the execution process

        I: Make sure the bin can run normal if everything be ok. Then Find the environment where the bin can run ok

       II: strace the normal env and the failed env, 

                     // strace /usr/src/tensorrt/bin/trtexec --deploy=/usr/src/tensorrt/data/mnist/mnist.prototxt --output=prob --fp16 --allowGPUFallback > log.in.2 2>&1 

                     // strace usr/src/tensorrt/bin/trtexec --deploy=usr/src/tensorrt/data/mnist/mnist.prototxt --output=prob --fp16 --allowGPUFallback > log.out 2>&1

                      // LD_DEBUG=all /usr/src/tensorrt/bin/trtexec --deploy=/usr/src/tensorrt/data/mnist/mnist.prototxt --output=prob --useDLACore=0 --fp16 --allowGPUFallback 2> ~/ld_debug.out 

           check if exist the descriptor open faild or acess failed and so on

           check if exist the case that use the different so

           The last weapon: Paste the error on Google or Bing.

  • 相关阅读:
    Java IO: InputStreamReader和OutputStreamWriter
    Java IO: 序列化与ObjectInputStream、ObjectOutputStream
    Java IO: Buffered和Data
    [Codeforces Round #613 (Div. 2)]
    [算进] 巴士
    [算进] 小木棍
    [算进] 数据备份
    [算进] 双端队列 题解
    [算进] 蚯蚓 题解
    [算进] 赶牛入圈 题解
  • 原文地址:https://www.cnblogs.com/cjyp/p/13329869.html
Copyright © 2011-2022 走看看