amirstan_plugin
amirstan_plugin copied to clipboard
Hello. Thx for your works. I have problem with build cmake
This is my cmake build.
my environment
cuda 11.1 / tensorrt 8.0.1.6 / python3.8 / pycharm community (development tool)
my bashrc is this
`export QT_QPA_PLATFORM_PLUGIN_PATH=/home/User/PycharmProjects/newtst/venv/lib/python3.8/site-packages/cv2/qt/plugins
export GOPATH=$HOME/go export PATH=$PATH:$HOME/go/bin:$HOME/installed/go/bin
export PATH=$PATH:/usr/local/cuda-11.1/bin export CUDADIR=/usr/local/cuda-11.1 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-11.1/lib64:/usr/local/cuda/extras/CUPTI/lib64:/home/USER/Downloads/TensorRT-8.0.1.6/lib" export CUDA_HOME=/usr/local/cuda export CUDNN_LIB=/usr/local/cuda/lib64
export PYTHONPATH=/usr/local/lib/python3.8/dist-packages:$PYTHONPATH`
Cuda and tensorrt looks fair right?
(venv)USER@MLServer:~/PycharmProjects/toymmd/mmdetection/amirstan_plugin/build$ cmake -DTENSORRT_DIR=/home/USER/Downloads/TensorRT-8.0.1.6 .. -- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found CUDA: /usr/local/cuda-11.1 (found version "11.1") -- Found TensorRT headers at /home/USER/Downloads/TensorRT-8.0.1.6/include -- Find TensorRT libs at /home/USER/Downloads/TensorRT-8.0.1.6/lib/libnvinfer.so;/home/USER/Downloads/TensorRT-8.0.1.6/lib/libnvparsers.so;/home/USER/Downloads/TensorRT-8.0.1.6/lib/libnvinfer_plugin.so -- Found TENSORRT: /home/USER/Downloads/TensorRT-8.0.1.6/include -- WITH_DEEPSTREAM: false -- GPU_ARCHS is not defined. Generating CUDA code for default SMs: 61;70;75;80 -- The CUDA compiler identification is NVIDIA 11.1.105 -- Detecting CUDA compiler ABI info -- Detecting CUDA compiler ABI info - done -- Check for working CUDA compiler: /usr/local/cuda-11.1/bin/nvcc - skipped -- Detecting CUDA compile features -- Detecting CUDA compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/USER/PycharmProjects/toymmd/mmdetection/amirstan_plugin/build
But when i type comand make -j10
there would be Error message like this
/usr/local/cuda/include/cuda_runtime_api.h:13017:45: error: expected initializer before ‘cudaGetFuncBySymbol’ 13017 | extern __host__ cudaError_t CUDARTAPI_CDECL cudaGetFuncBySymbol(cudaFunction_t* functionPtr, const void* symbolPtr);
can you give me answer please?
I'm have been working Environment setting 4 days.. If you give me reply i would be very appreciate. thank you again.
I cannot cmake successfully. The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: TENSORRT_INCLUDE_DIR used as include directory in directory /home/hxy/下载/amirstan_plugin-master used as include directory in directory /home/hxy/下载/amirstan_plugin-master used as include directory in directory /home/hxy/下载/amirstan_plugin-master/src used as include directory in directory /home/hxy/下载/amirstan_plugin-master/src used as include directory in directory /home/hxy/下载/amirstan_plugin-master/src/plugin used as include directory in directory /home/hxy/下载/amirstan_plugin-master/src/plugin used as include directory in directory /home/hxy/下载/amirstan_plugin-master/src/plugin
Did you download the TensorRT from official site?