You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using 'nvcr.io/nvidia/tensorflow:22.07-tf2-py3' container.
When I try to build TF-TRT example, I get error message
root@196ef112f21c:/workspace/tensorrt/tftrt/examples-cpp/mnist_demo/build# make
[ 25%] Built target tf_symlinks
[ 50%] Building CXX object CMakeFiles/tf_trt_example.dir/main.cc.o
In file included from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/compiler/tf2tensorrt/trt_convert_api.h:25,
from /workspace/tensorrt/tftrt/examples-cpp/mnist_demo/main.cc:25:
/usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/compiler/tf2tensorrt/common/utils.h:42:10: fatal error: third_party/tensorrt/NvInfer.h: No such file or directory
42 | #include "third_party/tensorrt/NvInfer.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/tf_trt_example.dir/build.make:63: CMakeFiles/tf_trt_example.dir/main.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/tf_trt_example.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
so, I edited CMakeList.txt(line15, 47) file and /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/compiler/tf2tensorrt/common/utils.h
from
find_path(trt_include_path NAME NvInfer.h HINTS)
to
find_path(trt_include_path NAME NvInfer.h HINTS /usr/local/cuda/targets/x86_64-linux/include)
from
#include "third_party/tensorrt/NvInfer.h"
to
#include <NvInfer.h>
The example should build without errors when using your workaround and the above CXX11_ABI value.
@tfeher could you help with the original compilation error? It doesn't seem like any of the changes between 22.06 and 22.07 should be causing this issue.
Hello,
I'm using 'nvcr.io/nvidia/tensorflow:22.07-tf2-py3' container.
When I try to build TF-TRT example, I get error message
so, I edited CMakeList.txt(line15, 47) file and /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/compiler/tf2tensorrt/common/utils.h
and added code at line 47
after change the code I faced error
is there any solution can solve errors?
thanks.
The text was updated successfully, but these errors were encountered: