-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_path_to_binary is not safe for file paths with spaces. (RuntimeError: Cannot find ptxas) #3305
Comments
I agree this is a bug. Patches welcome. |
call to split() on a file path string results in a truncated path if the latter has spaces in it, then the target binary is not found. It was an unnecessary step.
@nbarlowportfolio the bug fix is merged to master. But you'd have to build from source to use it since nightly wheels build has been down for a few weeks. Note that the fix was applied to 'third_party/nvidia/backend/compiler.py' not 'python/triton/backends/compiler.py' since the former is the instance of the impacted method that's actually used. 'python/triton/backends/compiler.py' is listed in the project's .gitignore file. So I didn't bother patching the same method there. |
A call to split() on a file path string results in a truncated path if the latter has spaces in it, then the target binary is not found. It was an unnecessary step.
In file python/triton/backends/compiler.py, the function _path_to_binary() splits on space, which prevents paths containing spaces from working.
The text was updated successfully, but these errors were encountered: