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

Not able to build trtexec #1376

Closed
letdivedeep opened this issue Jul 15, 2021 · 8 comments
Closed

Not able to build trtexec #1376

letdivedeep opened this issue Jul 15, 2021 · 8 comments
Labels
OSS Build Issues building open source code Samples Issues when using TensorRT samples triaged Issue has been triaged by maintainers

Comments

@letdivedeep
Copy link

I have used the latest tensoRT version v8.0.1: link

used the docker provided in the repo

Build docker :
./docker/build.sh --file docker/ubuntu-18.04.Dockerfile --tag tensorrt-ubuntu18.04-cuda11.3 --cuda 11.3.1

Run the docker
./docker/launch.sh --tag tensorrt-ubuntu18.04-cuda11.3 --gpus all --jupyter 6007

To install trtexec :

> cd TensorRT/samples/opensource/trtexec/
> make 

Error :
make: *** No targets specified and no makefile found. Stop.

@bmfire1
Copy link

bmfire1 commented Jul 16, 2021

Version8.0.1 utilizes CMake to compile samples.
no makefile in path TensorRT/samples/opensource/trtexec/. so no response to 'make'

@letdivedeep
Copy link
Author

@bmfire1 thanks for the reply

You mean to say i do a cmake rather than make

@bmfire1
Copy link

bmfire1 commented Jul 19, 2021

@bmfire1 thanks for the reply

You mean to say i do a cmake rather than make

Yes.
Refer to the Readme file in root path of this repository.

@lapolonio
Copy link

@letdivedeep how much space is needed to build docker/ubuntu-18.04.Dockerfile. When I try to build the images take up 200GB+
I'm using ./docker/build.sh --file docker/ubuntu-18.04.Dockerfile --tag tensorrt-ubuntu18.04-cuda11.3 --cuda 11.3.1

@ttyio
Copy link
Collaborator

ttyio commented Aug 2, 2021

Hello @lapolonio , could you try #1373 to reduce the space usage? thanks!

@ttyio ttyio added OSS Build Issues building open source code Release: 8.x Samples Issues when using TensorRT samples triaged Issue has been triaged by maintainers labels Aug 2, 2021
@ttyio
Copy link
Collaborator

ttyio commented Sep 10, 2021

Closing since no activity for more than 3 weeks, please reopen if you still have question, thanks!

@ttyio ttyio closed this as completed Sep 10, 2021
@GeneralJing
Copy link

GeneralJing commented Jan 28, 2022

when i build trtexec, i get the following errors:
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /workspace/TensorRT/samples/CMakeSamplesTemplate.txt:22 (set_ifndef):
Unknown CMake command "set_ifndef".
Call Stack (most recent call first):
CMakeLists.txt:26 (include)

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.14)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/workspace/TensorRT/samples/trtexec/build/CMakeFiles/CMakeOutput.log".
the cmake version is 3.14
and i have a question, in the docker container Is the trtexec tool obtained after compilation?

@cloudlakecho
Copy link

@GeneralJing for the "Unknown CMake command "set_ifndef"" error, please consider put "include(../../cmake/modules/set_ifndef.cmake)" in "CMakeList.txt" file (Zhou's suggestion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OSS Build Issues building open source code Samples Issues when using TensorRT samples triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

6 participants