def enable_cuda_source_navigation_fix():
    """
    When this flag is enabled, the FBCUDA Target will copy every *.cu file in build dirs into
    a corresponding *.cu.h file and create a *.cu file which just #include's this file.
    This fixes code navigation issues in some IDE's which don't treat .cu files as C++
    files and disable code navigation.
    """
    return os.getenv("AIT_ENABLE_CUDA_SOURCE_NAVIGATION_FIX", "0") == "1"
When this flag is enabled, the FBCUDA Target will copy every *.cu file in build dirs into
a corresponding *.cu.h file and create a *.cu file which just #include's this file.
This fixes code navigation issues in some IDE's which don't treat .cu files as C++
files and disable code navigation.
python/aitemplate/utils/environ.py