make error #251

Closed
opened 2021-08-04 15:18:08 +02:00 by ariharasudhanm · 12 comments
ariharasudhanm commented 2021-08-04 15:18:08 +02:00 (Migrated from github.com)

Error limit reached.
100 errors detected in the compilation of "/home/dir/tkDNN/src/kernels/normalize.cu".
Compilation terminated.
CMake Error at kernels_generated_normalize.cu.o.cmake:280 (message):
Error generating file
/home/dir/tkDNN/build/CMakeFiles/kernels.dir/src/kernels/./kernels_generated_normalize.cu.o

make[2]: *** [CMakeFiles/kernels.dir/build.make:3732: CMakeFiles/kernels.dir/src/kernels/kernels_generated_normalize.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:90

Error limit reached. 100 errors detected in the compilation of "/home/dir/tkDNN/src/kernels/normalize.cu". Compilation terminated. CMake Error at kernels_generated_normalize.cu.o.cmake:280 (message): Error generating file /home/dir/tkDNN/build/CMakeFiles/kernels.dir/src/kernels/./kernels_generated_normalize.cu.o make[2]: *** [CMakeFiles/kernels.dir/build.make:3732: CMakeFiles/kernels.dir/src/kernels/kernels_generated_normalize.cu.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:90
mive93 commented 2021-08-19 17:18:26 +02:00 (Migrated from github.com)

Can you give further details? How did you get this error? On which board/OS?

Can you give further details? How did you get this error? On which board/OS?
ariharasudhanm commented 2021-08-20 09:14:06 +02:00 (Migrated from github.com)

There were some problems with cuda and CudNN, Tensorrt versions so now it's
perfectly fine after installing the correct matching versions of all three.

On Thu, Aug 19, 2021, 17:18 Micaela Verucchi @.***>
wrote:

Can you give further details? How did you get this error? On which
board/OS?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ceccocats/tkDNN/issues/251#issuecomment-902003335,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALWOR4KRYXWKZUO2MVYU733T5UOE3ANCNFSM5BRDVH2A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

There were some problems with cuda and CudNN, Tensorrt versions so now it's perfectly fine after installing the correct matching versions of all three. On Thu, Aug 19, 2021, 17:18 Micaela Verucchi ***@***.***> wrote: > Can you give further details? How did you get this error? On which > board/OS? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/ceccocats/tkDNN/issues/251#issuecomment-902003335>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ALWOR4KRYXWKZUO2MVYU733T5UOE3ANCNFSM5BRDVH2A> > . > Triage notifications on the go with GitHub Mobile for iOS > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> > or Android > <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email> > . >
mive93 commented 2021-08-20 09:15:59 +02:00 (Migrated from github.com)

Ok cool, then I'm closing the issue.

Ok cool, then I'm closing the issue.
ariharasudhanm commented 2021-08-20 09:20:42 +02:00 (Migrated from github.com)

Thank you!

On Fri, Aug 20, 2021, 09:16 Micaela Verucchi @.***>
wrote:

Closed #251 https://github.com/ceccocats/tkDNN/issues/251.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ceccocats/tkDNN/issues/251#event-5185199754, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALWOR4M4D5E47VI453QQ5RTT5X6LVANCNFSM5BRDVH2A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Thank you! On Fri, Aug 20, 2021, 09:16 Micaela Verucchi ***@***.***> wrote: > Closed #251 <https://github.com/ceccocats/tkDNN/issues/251>. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/ceccocats/tkDNN/issues/251#event-5185199754>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/ALWOR4M4D5E47VI453QQ5RTT5X6LVANCNFSM5BRDVH2A> > . > Triage notifications on the go with GitHub Mobile for iOS > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> > or Android > <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email> > . >
sleepingsaint commented 2021-10-11 08:53:34 +02:00 (Migrated from github.com)

I am getting the same error, can anyone help me with this issue.
Screenshot from 2021-10-11 12-21-05

Screenshot from 2021-10-11 12-22-40

I added the screenshots of the tensorrt, cudnn and, cuda version

Any help is very much appreciated. Thanks in advance :)

I am getting the same error, can anyone help me with this issue. ![Screenshot from 2021-10-11 12-21-05](https://user-images.githubusercontent.com/35530053/136745128-5fefe739-d3ae-46ed-8335-a4d91b3f7b1a.png) ![Screenshot from 2021-10-11 12-22-40](https://user-images.githubusercontent.com/35530053/136745276-3921feae-c17e-4445-81da-8415fdb4f142.png) I added the screenshots of the tensorrt, cudnn and, cuda version Any help is very much appreciated. Thanks in advance :)
perseusdg commented 2021-10-11 09:11:05 +02:00 (Migrated from github.com)

tensorrt-8 isn't supported at the moment,it is a work in progress ,the latest supported tensorrt version by tkDNN is 7.x

tensorrt-8 isn't supported at the moment,it is a work in progress ,the latest supported tensorrt version by tkDNN is 7.x
sleepingsaint commented 2021-10-12 19:10:02 +02:00 (Migrated from github.com)

Thank you for the information. But the tensorrt 7.2.x packages are supported only for ubuntu 18.04. I am using ubuntu 20.04. I read some nvidia forums, and couldn't find a way to run 7.2 on ubuntu 20.04. Can you please suggest a way to make this work? Thanks in advance :)

Thank you for the information. But the tensorrt 7.2.x packages are supported only for ubuntu 18.04. I am using ubuntu 20.04. I read some nvidia forums, and couldn't find a way to run 7.2 on ubuntu 20.04. Can you please suggest a way to make this work? Thanks in advance :)
perseusdg commented 2021-10-12 23:25:08 +02:00 (Migrated from github.com)

Tensorrt 7.2 works on Ubuntu 20.04 ,I use it with cuda 10.2 and cuddn 8.1.1 on Ubuntu 20.04 ,just make sure to use the tar packages

If tar packages are not an option,you could try using the dockerfile in the repo to set up your own docker environment

Tensorrt 7.2 works on Ubuntu 20.04 ,I use it with cuda 10.2 and cuddn 8.1.1 on Ubuntu 20.04 ,just make sure to use the tar packages If tar packages are not an option,you could try using the dockerfile in the repo to set up your own docker environment
sleepingsaint commented 2021-10-13 04:05:56 +02:00 (Migrated from github.com)

Thanks for the information. I am using docker now and it's working great. The versions of cuda, tensorrt in my host system and the docker image are different, can you please explain how these different versions are managed by the nvidia docker.

Thanks in advance.

Thanks for the information. I am using docker now and it's working great. The versions of cuda, tensorrt in my host system and the docker image are different, can you please explain how these different versions are managed by the nvidia docker. Thanks in advance.
perseusdg commented 2021-10-13 06:15:44 +02:00 (Migrated from github.com)

This article could maybe help you https://towardsdatascience.com/how-to-properly-use-the-gpu-within-a-docker-container-4c699c78c6d1 ,but yeah you can manage multiple versions of cuda on the same machine ,this article could help you on that https://towardsdatascience.com/installing-multiple-cuda-cudnn-versions-in-ubuntu-fcb6aa5194e2

This article could maybe help you https://towardsdatascience.com/how-to-properly-use-the-gpu-within-a-docker-container-4c699c78c6d1 ,but yeah you can manage multiple versions of cuda on the same machine ,this article could help you on that https://towardsdatascience.com/installing-multiple-cuda-cudnn-versions-in-ubuntu-fcb6aa5194e2
sleepingsaint commented 2021-10-15 19:50:12 +02:00 (Migrated from github.com)

Sorry for the trouble. I am having a problem with c++, opencv code.

// filename: verify_opencv_cuda.cpp

#include <iostream>
using namespace std;

#include <opencv2/core.hpp>
using namespace cv;

#include <opencv2/cudaarithm.hpp>
using namespace cv::cuda;

int main()
{
    cout << cv::cuda::getDevice() << endl;
    return 0;
}

This is the code I am trying to run and I am getting the following error.

/tmp/ccFNNOtj.o: In function `main':
verify_opencv_cuda.cpp:(.text+0x5): undefined reference to `cv::cuda::getDevice()'
collect2: error: ld returned 1 exit status

I am running the code using the following command

g++ verify_opencv_cuda.cpp -I /usr/local/include/opencv4/

Am I missing something here. Even though I have some experience with c++, I have no experience with c++ libraries and how to use them while compiling. I am using visual studio code with remote container extension to run this code.

When I checked the cv::cuda namespace there is no function name getDevice (refer to the image below):
Screenshot from 2021-10-15 23-18-25

Any help would be greatly helpful. Can someone provide a good resource on how to use cmake to automate the compilation and running the code. Thanks in advance :)

Sorry for the trouble. I am having a problem with c++, opencv code. ```cpp // filename: verify_opencv_cuda.cpp #include <iostream> using namespace std; #include <opencv2/core.hpp> using namespace cv; #include <opencv2/cudaarithm.hpp> using namespace cv::cuda; int main() { cout << cv::cuda::getDevice() << endl; return 0; } ``` This is the code I am trying to run and I am getting the following error. ```bash /tmp/ccFNNOtj.o: In function `main': verify_opencv_cuda.cpp:(.text+0x5): undefined reference to `cv::cuda::getDevice()' collect2: error: ld returned 1 exit status ``` I am running the code using the following command ```bash g++ verify_opencv_cuda.cpp -I /usr/local/include/opencv4/ ``` Am I missing something here. Even though I have some experience with c++, I have no experience with c++ libraries and how to use them while compiling. I am using visual studio code with remote container extension to run this code. When I checked the cv::cuda namespace there is no function name getDevice (refer to the image below): ![Screenshot from 2021-10-15 23-18-25](https://user-images.githubusercontent.com/35530053/137530889-bcdbb4e3-a85c-464b-98a4-f77085b6b606.png) Any help would be greatly helpful. Can someone provide a good resource on how to use cmake to automate the compilation and running the code. Thanks in advance :)
perseusdg commented 2021-10-16 02:59:30 +02:00 (Migrated from github.com)

my guess is that you aren't linking opencv libraries properly

my guess is that you aren't linking opencv libraries properly
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/tkDNN#251