print(f'The detected CUDA version ({raw_output}) mismatches the version that was used to compile PyTorch '
f'The detected CUDA version ({raw_output}) mismatches the version that was used to compile PyTorch ({torch.version.cuda}). CUDA extension will not be installed.')
f'({torch.version.cuda}). CUDA extension will not be installed.')
returnFalse
returnFalse
ifbare_metal_minor!=torch_binary_minor:
ifbare_metal_minor!=torch_binary_minor:
print("\nWarning: Cuda extensions are being compiled with a version of Cuda that does "
print("\nWarning: Cuda extensions are being compiled with a version of Cuda that does "
+"not match the version used to compile Pytorch binaries. "
"not match the version used to compile Pytorch binaries. "
+"Pytorch binaries were compiled with Cuda {}.\n".format(torch.version.cuda)
f"Pytorch binaries were compiled with Cuda {torch.version.cuda}.\n"
+"In some cases, a minor-version mismatch will not cause later errors: "
"In some cases, a minor-version mismatch will not cause later errors: "
print("nvcc was not found. CUDA extension will not be installed. If you're installing within a container from "
"nvcc was not found. CUDA extension will not be installed. If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
"https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")