def main()

in tools/ami-creator/scripts/win2019_cuda114_installer.py [0:0]


def main():
    logging.getLogger().setLevel(os.environ.get('LOGLEVEL', logging.DEBUG))
    logging.basicConfig(filename="C:\\install.log", format='{}: %(asctime)sZ %(levelname)s %(message)s'.format(script_name()))

    # install all necessary software and reboot after some components

    # for CUDA, the last version you install will be the default, based on PATH variable
    if install_cuda114():
        reboot_system()
    install_cudnn8()
    if install_vs():
        reboot_system()
    install_openblas()
    install_mkl()
    install_opencv()
    install_perl()
    install_clang()
    add_paths()
    remove_install_task()
    schedule_aws_userdata()
    shutdown_system()