Deepstream_test1_app.c:26:10: fatal error: cuda_runtime_api.h: No such file or directory

I am trying to sudo make to makefile for deepstream-test1 but i get the error:
deepstream_test1_app.c:26:10: fatal error: cuda_runtime_api.h: No such file or directory
#include <cuda_runtime_api.h>
compilation terminated.
Makefile:63: recipe for target ‘deepstream_test1_app.o’ failed
make: *** [deepstream_test1_app.o] Error 1

I have added the following to script to ~/.bashrc :

CUDA

export CUDA=10.2
export PATH=/usr/local/cuda-$CUDA/bin${PATH:+:${PATH}}
export CUDA_PATH=/usr/local/cuda-$CUDA
export CUDA_HOME=/usr/local/cuda-$CUDA
export LIBRARY_PATH=$CUDA_HOME/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda-$CUDA/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export NVCC=/usr/local/cuda-$CUDA/bin/nvcc
export CFLAGS=“-I$CUDA_HOME/include $CFLAGS”

I do have cuda 10.2
I have looked at usr/local/cuda-10.2/include and the file
cuda_runtime_api.h is present
Any help is greatly appreciated

1 Like