Are you giving “-arch=compute_61” (or similar) flags to nvcc?
It looks like you are not, in which case the default is to compile for compute capability 2.0 which does not support dynamic parallelism.
There are a couple of dynamic parallelism examples in the advanced section of the samples that come with CUDA.
How can the architecture be set in linux where we are using command line for compilation.
I am using nvcc File.cu -o outputFile command and I am getting the same error. @Robert_Crovella
Thank you @Robert_Crovella
I didn’t know the exact command.
After googling a bit I found this one : nvcc -arch=sm_35 -rdc=true simple1.cu -o simple1 -lcudadevrt