benz725 commented on issue #19731:
URL: 
https://github.com/apache/incubator-mxnet/issues/19731#issuecomment-776471451


   > If you use the latest commit from `v1.x` branch, the instruction have been 
simplified thanks to @Kh4L
   > 
   > You just need to specify -DUSE_TENSORRT=1 and -DONNX_NAMESPACE=onnx , for 
example
   > 
   > ```
   >      cmake -DONNX_NAMESPACE=onnx -DUSE_TENSORRT=1 -GNinja ..
   >      ninja 
   > ```
   
   Thanks very much.
   I followed your instructions, but I failed when the make to nearly the 100%.
   The bug reported this: 
   [100%] Linking CXX executable mxnet_unit_tests
   /usr/bin/ld: warning: libcublas.so.10, needed by 
/usr/local/src/TensorRT-7.2.1.6/lib/libmyelin.so.1, may conflict with 
libcublas.so.9.1
   /usr/bin/ld: CMakeFiles/mxnet_unit_tests.dir/cpp/operator/krprod_test.cc.o: 
undefined reference to symbol 'dposv_'
   //usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing 
from command line
   collect2: error: ld returned 1 exit status
   tests/CMakeFiles/mxnet_unit_tests.dir/build.make:427: recipe for target 
'tests/mxnet_unit_tests' failed
   make[2]: *** [tests/mxnet_unit_tests] Error 1
   CMakeFiles/Makefile2:2288: recipe for target 
'tests/CMakeFiles/mxnet_unit_tests.dir/all' failed
   make[1]: *** [tests/CMakeFiles/mxnet_unit_tests.dir/all] Error 2
   Makefile:159: recipe for target 'all' failed
   make: *** [all] Error 2
   
   It looks like the cublas conflicts in the make project. However, I have 
installed the OpenBlas in my /opt/OpenBLAS DIR, shold I have to make some 
change to the cmake. How can I fix the error?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org
For additional commands, e-mail: issues-h...@mxnet.apache.org

Reply via email to