[Triton-MLIR][RUNTIME] Add /usr/bin/ptxas as a search path (#909)
Make `ptxas` search a bit broader to include `/usr/bin/ptxas`, installed by the lambda stack repo versions: https://lambdalabs.com/lambda-stack-deep-learning-software
This commit is contained in:
committed by
GitHub
parent
ace7d28736
commit
f98aed1258
@@ -977,7 +977,12 @@ def ptx_get_version(cuda_version) -> int:
|
||||
|
||||
|
||||
def path_to_ptxas():
|
||||
prefixes = [os.environ.get("TRITON_PTXAS_PATH", ""), "", os.environ.get('CUDA_PATH', default_cuda_dir())]
|
||||
prefixes = [
|
||||
os.environ.get("TRITON_PTXAS_PATH", ""),
|
||||
"",
|
||||
"/usr",
|
||||
os.environ.get('CUDA_PATH', default_cuda_dir())
|
||||
]
|
||||
for prefix in prefixes:
|
||||
ptxas = os.path.join(prefix, "bin", "ptxas")
|
||||
if os.path.exists(ptxas):
|
||||
|
Reference in New Issue
Block a user