-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A version for Jetson Orin NX #58
Comments
I tried the script from https://forums.developer.nvidia.com/uploads/short-url/3kLERQgB4ZR0q0wgUdO9qY6lxBq.sh |
It would be great if there's a possibility to support the non-deprecated versions of Jetpack. From what I understand, Jetpack includes Right now, this only throws a runtime exception (L363). @cyrusbehr what do you think? |
Thomas,
Thanks for taking the time to answer.
I think testing would quickly tell what kind of adjustments are needed for a given Jetpack distribution.
I think this would be amazing for the few of us out there that work on edge devices, writing C++ code to do high-performance inference and need to exploit the latest GPU architectures (Ampere for instance) and tensor cores by generating the engine files ourselves.
Thanks for your work!
I will post anything else that I notice on Jetpack 5.1.2
Sincerely,
Pablo
…________________________________
From: thomaskleiven ***@***.***>
Sent: 29 May 2024 03:22 AM
To: cyrusbehr/tensorrt-cpp-api ***@***.***>
Cc: Pablo Adames ***@***.***>; Author ***@***.***>
Subject: Re: [cyrusbehr/tensorrt-cpp-api] A version for Jetson Orin NX (Issue #58)
It would be great if we could support the non-deprecated versions of Jetpack. From what I understand, Jetpack includes tensorrt versions from v8.5.x to v8.9.x. If the only thing causing compatibility issues is nvinfer1::DataType::kFP8, maybe we can remove it for now?
Right now, this only throws a runtime exception (L363<https://github.com/cyrusbehr/tensorrt-cpp-api/blob/6cfef469cb6e5279db8d08067ed87f54088461c6/src/engine.h#L363>).
@cyrusbehr<https://github.com/cyrusbehr> what do you think?
—
Reply to this email directly, view it on GitHub<#58 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5KQZ7B5XNNN6M5C7RMSOUDZEWM6FAVCNFSM6AAAAABHODIXTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWHE2DSNRZGU>.
You are receiving this because you authored the thread.
|
To add to your comment about removing
The code becomes quite busy with these but at least one can support several versions of the same library in the same file. |
I would be up for supporting non-depcrecated versions of Something like this would default to the latest version of In case it is, happy to put up a PR for this. #if !defined(TENSORRT_VERSION) || TENSORRT_VERSION >= 8600
else if (tensorDataType == nvinfer1::DataType::kFP8) {
auto msg = "Error, the model has expected output of type kFP8. This is not supported by the Engine class.";
spdlog::error(msg);
throw std::runtime_error(msg);
}
#endif |
I have found that building this project in an Orin NX-based system runs into the OpenCV v4.5.4 from the JetPack 5.1.2 not being built with the CMake option -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules. Therefore it fails at the point of including the header opencv2/cudaarithm.hpp from the file engine.h:
This is the OpenCV forum Question that I found relevant to this problem, although for OpenCv v4.5.2 I realize that I see it in v.4.5.4:
OpenCV#3427.
Can you describe the steps to build OpenCV for specific Cuda versions as required by the Jetson systems?
The Jetpack 5.1.2 (https://developer.nvidia.com/embedded/downloads/archive) installs:
Cuda 11.4.315
TensorRT 8.5.2.2
OpenCV 4.5.4 without Cuda support
The text was updated successfully, but these errors were encountered: