Skip to content
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

about tensorrt compile error #397

Open
Mickeyyyang opened this issue Oct 16, 2022 · 4 comments
Open

about tensorrt compile error #397

Mickeyyyang opened this issue Oct 16, 2022 · 4 comments
Assignees
Labels

Comments

@Mickeyyyang
Copy link

Mickeyyyang commented Oct 16, 2022

Make the project by -DBUILD_YOLO_TENSORRT=ON, the following error message appears:
(My tensorrt: 7.2.3.4)
#######################################################################################

In file included from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/logging.h:21:0,
from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/logger.h:20,
from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/common.h:34,
from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/BatchStream.h:20,
from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/YoloONNX.hpp:3,
from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/YoloONNX.cpp:3:
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:165:15: error: ‘TacticSources’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::TacticSources enabledTactics{0};
^~~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:165:46: error: extra ‘;’ [-Wpedantic]
nvinfer1::TacticSources enabledTactics{0};
^
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:166:15: error: ‘TacticSources’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::TacticSources disabledTactics{0};
^~~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:166:47: error: extra ‘;’ [-Wpedantic]
nvinfer1::TacticSources disabledTactics{0};
^
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp: In member function ‘virtual void sample::BuildOptions::parse(sample::Arguments&)’:
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:851:23: error: ‘TacticSource’ is not a member of ‘nvinfer1’
nvinfer1::TacticSource source{};
^~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:17: error: ‘source’ was not declared in this scope
source = nvinfer1::TacticSource::kCUBLAS;
^~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:17: note: suggested alternative: ‘double’
source = nvinfer1::TacticSource::kCUBLAS;
^~~~~~
double
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:36: error: ‘nvinfer1::TacticSource’ has not been declared
source = nvinfer1::TacticSource::kCUBLAS;
^~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:17: error: ‘source’ was not declared in this scope
source = nvinfer1::TacticSource::kCUBLAS_LT;
^~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:17: note: suggested alternative: ‘double’
source = nvinfer1::TacticSource::kCUBLAS_LT;
^~~~~~
double
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:36: error: ‘nvinfer1::TacticSource’ has not been declared
source = nvinfer1::TacticSource::kCUBLAS_LT;
^~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:872:62: error: ‘source’ was not declared in this scope
uint32_t sourceBit = 1U << static_cast<uint32_t>(source);
^~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:872:62: note: suggested alternative: ‘sourceBit’
uint32_t sourceBit = 1U << static_cast<uint32_t>(source);
^~~~~~
sourceBit
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:876:17: error: ‘enabledTactics’ was not declared in this scope
enabledTactics |= sourceBit;
^~~~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:880:17: error: ‘disabledTactics’ was not declared in this scope
disabledTactics |= sourceBit;
^~~~~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:883:17: error: ‘enabledTactics’ was not declared in this scope
if (enabledTactics & disabledTactics)
^~~~~~~~~~~~~~
/home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:883:34: error: ‘disabledTactics’ was not declared in this scope
if (enabledTactics & disabledTactics)
#######################################################################################

@Nuzhny007 Nuzhny007 self-assigned this Oct 17, 2022
@Nuzhny007 Nuzhny007 added the bug label Oct 17, 2022
@Nuzhny007
Copy link
Collaborator

Thnx for report, I'll try to build on this version of TensorRT

@Mickeyyyang
Copy link
Author

Mickeyyyang commented Oct 17, 2022 via email

@Nuzhny007
Copy link
Collaborator

It's really don't work with this version of TensorRT. If you can update libraries to 8.4 version then all will working.
Now I'll fix that

@Mickeyyyang
Copy link
Author

Mickeyyyang commented Oct 19, 2022

OK, I will try.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants