Merge pull request #28627 from byronyi:patch-3

PiperOrigin-RevId: 247771546
This commit is contained in:
TensorFlower Gardener 2019-05-11 13:01:48 -07:00
commit aa0ab3f2da

View File

@ -451,7 +451,7 @@ def find_cuda_config():
cuda_version = result["cuda_version"]
cublas_paths = base_paths
if cuda_version.split(".") < (10, 1):
if tuple(int(v) for v in cuda_version.split(".")) < (10, 1):
# Before CUDA 10.1, cuBLAS was in the same directory as the toolkit.
cublas_paths = cuda_paths
cublas_version = os.environ.get("TF_CUBLAS_VERSION", "")