message: fix path on windows and add better error message for not founding find_cuda_config in working direcotry
diff: @@ -1236,14 +1236,16 @@ def validate_cuda_config(environ_cp):
  if environ_cp.get('TF_NCCL_VERSION', None):
  cuda_libraries.append('nccl')
  - find_cuda_path = 'third_party/gpus/find_cuda_config.py'
  + find_cuda_path = Path('third_party/gpus/find_cuda_config.py')
  if not Path(find_cuda_path).is_file():
  - find_cuda_path = Path().glob('**/third_party/gpus/find_cuda_config.py')
  + find_cuda_path = Path('.').glob('**/' + str(find_cuda_path))
  + try:
  find_cuda_path = find_cuda_path.__next__()
  - assert find_cuda_path, "Can't find 'find_cuda_config.py' script"
  + except StopIteration:
  + raise FileNotFoundError("Can't find 'find_cuda_config.py' script inside working directory")
  proc = subprocess.Popen(
  - [environ_cp['PYTHON_BIN_PATH'], find_cuda_path] +
  + [environ_cp['PYTHON_BIN_PATH'], str(find_cuda_path)] +
  cuda_libraries,
  stdout=subprocess.PIPE,
  env=maybe_encode_env(environ_cp))
  