(RuntimeError: Cannot find ptxas) Mar 7, 2024 fkouteib added a commit to fkouteib/triton that referenced this issue Mar 24, 2024 Handle file paths with spaces (triton-lang#3305) … f380382 jlebar pushed a commit that referenced this issue Mar 25, 2024 Handle file paths with ...
import-triton> File "/nix/store/vm719qizzx6m0q1k9y61qw9xx2rj136p-python3-3.11.7-env/lib/python3.11/site-packages/triton/common/backend.py", line 119, in path_to_ptxas import-triton> raise RuntimeError("Cannot find ptxas") import-triton> RuntimeError: Cannot find ptxas Contributor Auth...
打开该目录/triton/python/triton/common/backend.py,然后将如下代码对_path_to_binary进行替换,其中binary的位置替换自己本机电脑ptxas的路径即可。 def _path_to_binary(binary: str): if binary == "ptxas": binary = "/usr/local/cuda-12.1/bin/ptxas" base_dir = os.path.join(os.path.dirname(__fil...
_version is None: _, cuda_version = path_to_ptxas() ptx_version = ptx_get_version(cuda_version) return _triton.translate_llvmir_to_ptx(mod, arch, ptx_version) def ptx_to_cubin(ptx: str, arch: int): ptxas, _ = path_to_ptxas() return _triton.compile_ptx_to_cubin(ptx, ptxas, ...
raise ValueError("Cannot find backend for " + device_type) if device is None: if device_type in ["cuda"]: device = get_current_device() set_current_device(device) else: device = device_backend.get_current_device() device_backend.set_current_device(device) ...
cannot access '/nix/store/3pgvjqnl5c5wxzxppy8p3xpcp2kb3j79-python3.12-triton-3.1.0/lib/python3.12/site-packages/triton/third_party/cuda/bin/ptxas': No such file or directory For full logs, run 'nix log /nix/store/p49mxpdb58j2vzjr9f4kk1jhjv8h7yxm-python3.12-triton-3.1.0.drv'. err...
Building wheels for collected packages: triton Building wheel for triton (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for triton (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [189 lines of output] copy /root/.triton/nvidia/ptxas/bin/...
Get the full path to the compile_commands.json file produced by the build: find python/build -name 'compile_commands.json' | xargs readlink -f. You might get a full path similar to /Users/{username}/triton/python/build/cmake.macosx-11.1-arm64-cpython-3.12/compile_commands.json In vscod...
Get the full path to the compile_commands.json file produced by the build: find python/build -name 'compile_commands.json' | xargs readlink -f. You might get a full path similar to /Users/{username}/triton/python/build/cmake.macosx-11.1-arm64-cpython-3.12/compile_commands.json In vscod...
raise RuntimeError(f"Cannot find {binary}{exe}") @functools.lru_cache() @@ -340,15 +342,9 @@ def make_cubin(src, metadata, opt, capability): ] try: subprocess.run(ptxas_cmd, check=True, close_fds=False, stderr=flog) if os.path.exists(fsrc.name): os.remove(fsrc.name) if os...