def get_cuda_nvcc_debug_level():
    """
    Return level of CUDA debug information. Default to no debug info.
    backed by env var AIT_CUDA_DEBUG_LEVEL. Which may either be a string
    which is directly passed through to nvcc on the commandline, or an
    integer (as String) from 0 to 2 with the following meaning:
        - 0: No debug info ( default )
        - 1: Line information. Good for stack traces and profiling. Optimizations can be enabled.
        - 2: Full debug information.

    WARNING:
    Level 2 disables all compiler optimizations,
    regardless of what else is passed as optimization level.
    """
    level = os.getenv("AIT_CUDA_DEBUG_LEVEL", "0")
    return level
Return level of CUDA debug information. Default to no debug info.
backed by env var AIT_CUDA_DEBUG_LEVEL. Which may either be a string
which is directly passed through to nvcc on the commandline, or an
integer (as String) from 0 to 2 with the following meaning:
- 0: No debug info ( default )
- 1: Line information. Good for stack traces and profiling. Optimizations can be enabled.
- 2: Full debug information.

WARNING:
Level 2 disables all compiler optimizations,
regardless of what else is passed as optimization level.
python/aitemplate/utils/environ.py