# Cannot execute TensorRT samples

**URL:** <https://forums.developer.nvidia.com/t/cannot-execute-tensorrt-samples/60616>\
**Category:** TensorRT\
**Created:** [April 24, 2018, 12:25pm UTC](https://forums.developer.nvidia.com/t/cannot-execute-tensorrt-samples/60616 "2018-04-24T12:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klamue](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Klamue](https://forums.developer.nvidia.com/u/Klamue)\
**Post date:** [April 24, 2018, 12:25pm UTC](https://forums.developer.nvidia.com/t/cannot-execute-tensorrt-samples/60616/1 "2018-04-24T12:25:13Z")

</div>

Hello,

when I execute TensorRT samples (any of them) it throws an error, e.g. googlenet:

```auto
Building and running a GPU inference engine for GoogleNet, N=4...
ERROR: cudnnEngine.cpp (56) - Cuda Error in initializeCommonContext: 2
ERROR: cudnnEngine.cpp (56) - Cuda Error in initializeCommonContext: 2
sample_googlenet: sampleGoogleNet.cpp:98: void caffeToGIEModel(const string&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, unsigned int, nvinfer1::IHostMemory*&): Assertion `engine' failed.
Aborted (core dumped)

```

TensorRT 3.0.4  
CUDNN 7.0.5  
CUDA 9.0  
Ubuntu 16.04  
GTX 1080

Any suggestions how to resolve this? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![SiddharthSharma\_TPM](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/siddharthsharma_tpm/32/14047_2.png) [@SiddharthSharma\_TPM](https://forums.developer.nvidia.com/u/SiddharthSharma_TPM)\
**Post date:** [April 26, 2018, 9:23pm UTC](https://forums.developer.nvidia.com/t/cannot-execute-tensorrt-samples/60616/2 "2018-04-26T21:23:07Z")

</div>

We created a new “Deep Learning Training and Inference” section in Devtalk to improve the experience for deep learning and accelerated computing, and HPC users:  
[https://devtalk.nvidia.com/default/board/301/deep-learning-training-and-inference-/](https://devtalk.nvidia.com/default/board/301/deep-learning-training-and-inference-/)

We are moving active deep learning threads to the new section.

URLs for topics will _not_ change with the re-categorization. So your bookmarks and links will continue to work as earlier.

-Siddharth

---

<div class="post-metadata">

**Author:** ![mvillmow](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mvillmow](https://forums.developer.nvidia.com/u/mvillmow)\
**Post date:** [May 2, 2018, 4:45am UTC](https://forums.developer.nvidia.com/t/cannot-execute-tensorrt-samples/60616/3 "2018-05-02T04:45:59Z")

</div>

Does ./infer\_device work? This is our sanity check application that checks to make sure that you have dependencies installed correctly. Can you run it and post the output?
