anchor.diff:  if not defined retry_times set retry_times=3
   if not defined PYTHON_ROOT set PYTHON_ROOT=C:\Python37
   if not defined BUILD_DIR set BUILD_DIR=build
  +set task_name=%1
   
   rem ------initialize the python environment------
   set PYTHON_EXECUTABLE=%PYTHON_ROOT%\python.exe
  
positive.code:     if not exist %THIRD_PARTY_PATH% ( set UPLOAD_TP_FILE=ON ) 
      cd %work_dir%\%BUILD_DIR%
  ) else (
      echo Found reusable third_party cache locally, will reuse it.
  )
  
  :cmake_impl
  
negative.code: %cache_dir%\tools\busybox64.exe bash cache.sh
  
  set /p md5=< md5.txt
  echo %task_name%|findstr build >nul && (
      set THIRD_PARTY_HOME=%cache_dir:\=/%/third_party
      set THIRD_PARTY_PATH=!THIRD_PARTY_HOME!/%md5%
      echo %task_name% is a whl-build task, will only reuse local third_party cache.
      goto :cmake_impl
  ) || ( 
      echo %task_name% is a PR-CI-Windows task, will try to reuse bos and local third_party cache both. 
  )
  
  if "%WITH_GPU%"=="ON" (
      for /F %%# in ('dir /b /d "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\"') do set cuda_version=%%#
      set cuda_version=!cuda_version:~-4!
      set sub_dir=cuda!cuda_version:.=!
  ) else (
      set sub_dir=cpu
  )
  set THIRD_PARTY_HOME=%cache_dir:\=/%/third_party/%sub_dir%
  set THIRD_PARTY_PATH=%THIRD_PARTY_HOME%/%md5%
  set UPLOAD_TP_FILE=OFF
  