Could the 'deepstream-plugins' (github) be run on P40?

I follow the instruction given on ‘’.

And then
cd sources/plugins/gst-yoloplugin-tesla

But the following error occurs:
In file included from gstyoloplugin.cpp:26:0:
gstyoloplugin.h:36:25: fatal error: gst-nvquery.h: No such file or directory
compilation terminated.
Makefile:79: recipe for target ‘gstyoloplugin.o’ failed
Could some give some advices?
So many thanks

you can find this header file in this location, DEEPSTREAM_INSTALL_DIR/sources/includes/gst-nvquery.h
, please try again by adding it Makefile INCS:= ,
for your reference,
INCS:= -I “(TENSORRT_INSTALL_DIR)/include/x86_64-linux-gnu" \ -I "/usr/local/cuda-(CUDA_VER)/include”
-I “$(OPENCV_INSTALL_DIR)/include”
-I “DEEPSTREAM_INSTALL_DIR/sources/includes” \

I followed the instructions as you suggested.
But I still get another error:
gstyoloplugin.cpp:519:55: error: ‘CHECK_NVDS_MEMORY_AND_GPUID’ was not declared in this scope
if (CHECK_NVDS_MEMORY_AND_GPUID (yoloplugin, surface))
Could you pls give me some tips on this?
Many thanks.

please see /path to your yolo package/deepstream-plugins-yolo/Makefile.config
please make sure this points to your unpacked deepstream package location, then try again.