error: identifier "__ldg" is undefined


Did you forget to compile with sm_35?

Work around

Add -arch sm_35 to nvcc command line


W.B.Langdon Back 28 Feb 2015