Merge pull request #42674 from levinxo:master
PiperOrigin-RevId: 328672559 Change-Id: I50de6ce97b230cbb59ababf5c9c83b61f45e6eb9
This commit is contained in:
commit
a8529f2c5d
5
third_party/gpus/find_cuda_config.py
vendored
5
third_party/gpus/find_cuda_config.py
vendored
@ -176,6 +176,7 @@ def _header_paths():
|
||||
"include/*-linux-gnu",
|
||||
"extras/CUPTI/include",
|
||||
"include/cuda/CUPTI",
|
||||
"local/cuda/extras/CUPTI/include",
|
||||
]
|
||||
|
||||
|
||||
@ -188,6 +189,8 @@ def _library_paths():
|
||||
"lib/*-linux-gnu",
|
||||
"lib/x64",
|
||||
"extras/CUPTI/*",
|
||||
"local/cuda/lib64",
|
||||
"local/cuda/extras/CUPTI/lib64",
|
||||
]
|
||||
|
||||
|
||||
@ -268,12 +271,14 @@ def _find_cuda_config(base_paths, required_version):
|
||||
nvcc_path, nvcc_version = _find_versioned_file(base_paths, [
|
||||
"",
|
||||
"bin",
|
||||
"local/cuda/bin",
|
||||
], nvcc_name, cuda_version, get_nvcc_version)
|
||||
|
||||
nvvm_path = _find_file(base_paths, [
|
||||
"nvvm/libdevice",
|
||||
"share/cuda",
|
||||
"lib/nvidia-cuda-toolkit/libdevice",
|
||||
"local/cuda/nvvm/libdevice",
|
||||
], "libdevice*.10.bc")
|
||||
|
||||
cupti_header_path = _find_file(base_paths, _header_paths(), "cupti.h")
|
||||
|
Loading…
Reference in New Issue
Block a user