How does one gets the cuda samples using this approach?

I run dpkg -L but it seems the only thing related with sample is man page and pdf, so I guess the deb package from Ubuntu didn’t include it.

As for the compiler, I end up with gcc 5.4 because gcc 6 has breaking changes in header files, and clang-3.8 is using those header files as well (end up having tons of error from math.h). Many library requires C+11, and I like the auto keyword.