Closed CLMonster closed 1 year ago
Sorry for the late reply. I tested your code on my jetson nano, and I could reproduced the issue. Interestingly, when I changed the source file to ".cpp", it compiles perfectly.
nvcc -o cuda_test cuda_test.cpp -lJetsonGPIO -lpthread
I assume that it's some nvcc's name mangling issue but I'm not sure. For now you can make some wrappers for JetsonGPIO in .cpp files and do not include the "JetsonGPIO.h" header file in your ".cu" files. Maybe this could solve the issue.
Ah ha! I found it. This part of the TypeTraits.h
was the problem.
I'll fix this soon.
Ok, I've just merged the PR and I've confirmed that it fixed the issue. Closing the issue.
Ok, I've just merged the PR and I've confirmed that it fixed the issue. Closing the issue.
Thank you for helping me. I really appreciate it.
Hello, Due to project needs, I encountered the following error during compilation when I simultaneously imported
JetsonGPIO.h
andcuda_runtime.h
. The code is as follows.My Jetson info is as follows:
gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)
How can I solve this? Thank you very much!