"why isn't nvrtc optimizing out my integer division and modulo operations?" Code Answer

48

Did a thorough bugsweep in the codebase. Turns out my app was built in DEBUG mode. This causes additional flags -G and -lineinfo passed to nvrtcCompileProgram()

From nvcc man page:

--device-debug (-G)

Generate debug information for device code. Turns off all optimizations. Don't use for profiling; use -lineinfo instead.

By Hadi Satrio on July 13 2022

Answers related to “why isn't nvrtc optimizing out my integer division and modulo operations?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.