Hello. I have a Jetson Nano and I’m trying to compile tensorrt to it.
I was reading this post on this forum.
I’m trying to compile it using the following instructions here.
I have checked out the v2.2.0 commit as the latest stable release. But I’m getting an error when trying to compile:
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from ./core/util/prelude.h:10,
from ./core/conversion/conversionctx/ConversionCtx.h:13,
from ./core/conversion/converters/converter_util.h:7,
from core/conversion/converters/impl/cast.cpp:2:
./core/util/trt_util.h: In function ‘std::ostream& nvinfer1::operator<<(std::ostream&, const nvinfer1::TensorFormat&)’:
./core/util/trt_util.h:39:34: error: ‘kHWC’ is not a member of ‘nvinfer1::TensorFormat’; did you mean ‘kHWC8’?
39 | case nvinfer1::TensorFormat::kHWC:
| ^~~~
| kHWC8
Target //:libtorchtrt failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 6744.866s, Critical Path: 6698.91s
INFO: 6 processes: 6 internal.
FAILED: Build did NOT complete successfully
I’ve tried Googling around, but didn’t find anything useful. The code has no changes from the release, so I suppose it should build with no errors? Looking at the docs it looks this kHWC is defined
This is my setup:
Package: nvidia-jetpack
Version: 4.5.1-b17
Thanks! Just to make sure I understand, the problem is that Torch Tensor RT v2.2.0 needs CUDA 12.1 to work?
And in my JetPack 4.5.1 I only have the CUDA 10.2?
Is JetPack 4.6.4 the latest one available to Jetson Nano?
I’ve posted the reply before trying to compile it again, but still got the same error:
In file included from ./core/util/prelude.h:10,
from core/partitioning/shape_analysis.cpp:3:
./core/util/trt_util.h: In function ‘std::ostream& nvinfer1::operator<<(std::ostream&, const nvinfer1::TensorFormat&)’:
./core/util/trt_util.h:39:34: error: ‘kHWC’ is not a member of ‘nvinfer1::TensorFormat’; did you mean ‘kHWC8’?
39 | case nvinfer1::TensorFormat::kHWC:
| ^~~~
| kHWC8
Target //:libtorchtrt failed to build
I’ve checked out the commit 3cf58a209ad0f4e7d508e158c2b9b69d36b7e95d which has the tag v.1.1.0.