cutCreateTimer is undefined

It seems that the usage of cutCreateTimer() and other related functions such as cutStartTimer(), cutStopTimer() and so on are changed compared to previous cuda releases.

How can I fix the following error

$ nvcc  \
-gencode=arch=compute_20,code=\"sm_20,compute_20\" \
-gencode=arch=compute_30,code=\"sm_30,compute_30\" \
-m64 --compiler-options -fno-strict-aliasing  \
-I. -I/usr/local/cuda-7.5/include -I/home/mahmood/NVIDIA_CUDA-7.5_Samples/common/inc \
-DUNIX -O2  \
-o fdu.cu.o -c dfu.cu
dfu.cu(180): error: identifier "cutCreateTimer" is undefined
dfu.cu(181): error: identifier "cutStartTimer" is undefined
...

The code looks like

checkCudaErrors( cutCreateTimer( &timer));
    checkCudaErrors( cutStartTimer( timer));

Any idea?

cut was never part of CUDA. It was part of the GPU computing SDK which has been long ago deprecated, and removed (as of CUDA 5.0). There is no reason to use cut functions anymore. If you are trying to port an old code, you’ll need to understand how these functions were made available in CUDA 4.2 and duplicate that behavior in your updated code. There are various references on these forums and elsewhere on the web, if you care to search for them, explaining what others have done.

The answer to your similar cross-posting here:

https://stackoverflow.com/questions/47202882/cut-check-error-incompatibility-with-new-cuda

links to some of these resources.