You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/13 08:45:57 UTC

[GitHub] KellenSunderland commented on issue #12142: Failed to import MXNet built with TensorRT

KellenSunderland commented on issue #12142: Failed to import MXNet built with TensorRT
URL: https://github.com/apache/incubator-mxnet/issues/12142#issuecomment-412449388
 
 
   Hey @Faldict.  The problem is that you don't have protobuf on your LD_LIBRARY_PATH.  I'd recommend setting your path like the following:
   ```
   LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MXNET_PATH/incubator-mxnet/3rdparty/onnx-tensorrt/build:$MXNET_PATH/3rdparty/onnx-tensorrt/third_party/onnx/build:$PROTOBUF_PATH/src/.libs
   ```
   Where MXNET_PATH is the root director of you MXNet folder, and PROTOBUF_PATH is the root directory of your protobuf files.
   
   In general when you run into these runtime issues one step that usually helps me is to run 
   ``ldd /home/faldict/incubator-mxnet/python/mxnet/../../lib/libmxnet.so```
   which should show all the libraries that have been referenced during compilation, but which are not currently on my library path.  I then search my filesystem for those libs and append their folders into my LD_LIBRARY_PATH.
   
   Note: Right now building from source for this feature is admittedly quite complicated.  Thank you very much for being an early adopter.  We're working together this week to provide some detailed information about how to install and run this feature.  Those docs will hopefully make the process a bit easier.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services