The code in CUDA programming guide mentioned a function cudaGetCurrentGraphExec in the sample code, but when I tried to use it, this error occurs. I was compiling the code using the option -code=sm_86 -arch=compute_86.
Is there a header file missing or the version I am using does not support this function?