Giter Club home page Giter Club logo

Comments (8)

Meteorix avatar Meteorix commented on September 27, 2024 4

I fixed the original problem by adding c++11 flags in demo/BERT/CMakeLists.txt

cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(cmake_and_cuda LANGUAGES CXX CUDA)
 
add_compile_options(-std=c++11)

...

from tensorrt.

sboschang avatar sboschang commented on September 27, 2024 3

@ginn24
sudo ln -s TensorRT-5.1.5.0/lib/libnvinfer.so /usr/lib/libnvinfer.so

from tensorrt.

haanjack avatar haanjack commented on September 27, 2024 1

Could you share the procedure to see this output?

I could build this with the following steps. (ubuntu)
$ git clone -b release/5.1 https://github.com/nvidia/TensorRT TensorRT
$ cd TensorRT
$ git submodule update --init --recursive
$ export TRT_SOURCE=pwd
$ docker build -f docker/ubuntu-18.04.Dockerfile --build-arg CUDA_VERSION=10.1 --tag=tensorrt .
$ docker run --rm -ti --runtime=nvidia tensorrt
(docker)# git clone -b release/5.1 https://github.com/nvidia/TensorRT TensorRT
(docker)# cd TensorRT
(docker)# git submodule update --init --recursive
(docker)# export TRT_SOURCE=pwd
(docker)# mkdir -p TensorRT/demo/BERT/build
(docker)# cd TensorRT/demo/BERT/build
(docker)# cmake ..
(docker)# make -j

from tensorrt.

cathy-kim avatar cathy-kim commented on September 27, 2024

@haanjack Thank you. However, there are some problems.

  1. The same error came out when I changed the docker build option to ubuntu-16.04 + Cuda 10.0 or centos-7. + Cuda 10.0

  2. That error came out when I installed CUDA 10.1 and changed build option to ubuntu 18.04 and CUDA 10.1

/usr/bin/ld: cannot find -lnvinfer
collect2: error: ld returned 1 exit status
CMakeFiles/sample_bert.dir/build.make:85: recipe for target 'sample_bert' failed
make[2]: *** [sample_bert] Error 1
CMakeFiles/Makefile2:73: recipe for target 'CMakeFiles/sample_bert.dir/all' failed
make[1]: *** [CMakeFiles/sample_bert.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

from tensorrt.

sboschang avatar sboschang commented on September 27, 2024

You can install TensorRT and set LD_LIBRARY_PATH.
https://blog.csdn.net/zong596568821xp/article/details/86077553

from tensorrt.

cathy-kim avatar cathy-kim commented on September 27, 2024

@sboschang I've already installed TensorRT but to install OSS component makes some error

from tensorrt.

Meteorix avatar Meteorix commented on September 27, 2024

The original error seems to be missing c++11 flags? I have the same error.

from tensorrt.

rmccorm4 avatar rmccorm4 commented on September 27, 2024

Warnings and errors look like missing C++11 flag, @Meteorix's solution looks right to me.

from tensorrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.