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

Error : ld cannot find -lcudart #69

Open
motidil opened this issue Jul 18, 2022 · 2 comments
Open

Error : ld cannot find -lcudart #69

motidil opened this issue Jul 18, 2022 · 2 comments

Comments

@motidil
Copy link

motidil commented Jul 18, 2022

I'm trying to run the build stage using nvcr.io/nvidia/tensorrt:22.05-py3
but stuck on the make step with the following error:

/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/layerplugin.dir/build.make:344: liblayerplugin.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/layerplugin.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

OS ubuntu 20.04
ARCH: ARM64
In container:
NVIDIA Release 22.05 (build 37412549)
NVIDIA TensorRT Version 8.2.5

@motidil motidil changed the title Error Error : ld cannot find -lcudart Jul 18, 2022
@philipp-schmidt
Copy link
Contributor

You don't have gpu support in your container then. Check available documentation on how to enable the nvidia runtime for docker.

@motidil
Copy link
Author

motidil commented Jul 18, 2022

I don't think that is the case...I'm able to run other tasks with GPU and cuda.
attach here nvidia-smi output in the container:

root@550dd14d9c34:/yolov4-triton-tensorrt/build# nvidia-smi
Mon Jul 18 13:36:17 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07    Driver Version: 515.48.07    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA T4G          Off  | 00000000:00:1F.0 Off |                    0 |
| N/A   53C    P0    28W /  70W |      2MiB / 15360MiB |      5%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

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

No branches or pull requests

2 participants