GG says executing the following lines does help:

export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=\
/usr/local/cuda-10.1/lib64/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export MANPATH=/usr/local/cuda/doc/man/${MANPATH:+:${MANPATH}}

And in your case it can not find    helper_cuda.h    a bunch of include files are in a common area and they can not be moved.  When gg tested this just now on Fedora, He first did "cd deviceQuery" before running "make".

If you get further or the above does not help, email more information please.  gg/Phyllis


[root@archpaz paz]# cd /home/paz/cuda/
[root@archpaz cuda]# make
/opt/cuda/bin/nvcc -ccbin g++ -I../../common/inc  -m64    -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70
-gencode arch=compute_75,code=sm_75 -gencode
arch=compute_75,code=compute_75 -o deviceQuery.o -c deviceQuery.cpp
deviceQuery.cpp:17:10: fatal error: helper_cuda.h: File o directory
non esistente
   17 | #include <helper_cuda.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:288: deviceQuery.o] Error 1