The code below cannot be compiled with NVCC using GCC 6.4, because it has issues with the std::ratio_multiply. I have no problems in compiling it with the host compiler itself. What can I do to solve this?
The usual workaround suggestions, since std:: library code is generally not usable in CUDA device code, is to partition your code that requires it into .cpp files, and tie together your code in .cpp files and .cu files with wrapper functions as needed.
If you file a bug, the development team may come back to you at some point with more targetted workaround suggestions.