triton
                                
                                
                                
                                    triton copied to clipboard
                            
                            
                            
                        pip install -e python failed
(triton) amd00@MZ32-00:~/yk_repo/triton$ pip install -e python Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Obtaining file:///home/amd00/yk_repo/triton/python Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... error error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
copy /home/amd00/.triton/nvidia/bin/ptxas to /home/amd00/yk_repo/triton/python/../third_party/nvidia/backend/bin/ptxas ...
copy /home/amd00/.triton/nvidia/bin/cuobjdump to /home/amd00/yk_repo/triton/python/../third_party/nvidia/backend/bin/cuobjdump ...
copy /home/amd00/.triton/nvidia/bin/nvdisasm to /home/amd00/yk_repo/triton/python/../third_party/nvidia/backend/bin/nvdisasm ...
Traceback (most recent call last):
File "/home/amd00/yk_repo/triton/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in 
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. (triton) amd00@MZ32-00:~/yk_repo/triton$
This
(triton) amd00@MZ32-00:~/yk_repo/triton$ pip install -e python
looks to my inexperienced eyes, to be attempting to build the programming language python and not the directory under triton.
Something to try is giving the full path to the subdirectory you are trying to build.
You should use pip install -e . in the dir where has the setup.py or pyproject.toml
amd00@MZ32-00:~/yk_repo/triton/python$ export LLVM_BUILD_DIR=$HOME/yk_repo/llvm-project/build amd00@MZ32-00:~/yk_repo/triton/python$ LLVM_INCLUDE_DIRS=$LLVM_BUILD_DIR/include LLVM_LIBRARY_DIR=$LLVM_BUILD_DIR/lib LLVM_SYSPATH=$LLVM_BUILD_DIR pip install -e . Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Obtaining file:///home/amd00/yk_repo/triton/python Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in 
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. amd00@MZ32-00:~/yk_repo/triton/python$ ll total 56 drwxrwxr-x 8 amd00 amd00 4096 2月 13 19:46 ./ drwxrwxr-x 15 amd00 amd00 4096 2月 13 19:46 ../ drwxrwxr-x 2 amd00 amd00 4096 1月 25 20:46 examples/ -rw-rw-r-- 1 amd00 amd00 0 1月 25 20:46 MANIFEST.in -rw-rw-r-- 1 amd00 amd00 326 1月 25 20:46 pyproject.toml -rw-rw-r-- 1 amd00 amd00 18048 2月 13 19:46 setup.py drwxrwxr-x 2 amd00 amd00 4096 2月 13 19:46 src/ drwxrwxr-x 7 amd00 amd00 4096 1月 25 20:45 test/ drwxrwxr-x 9 amd00 amd00 4096 1月 25 20:46 triton/ drwxrwxr-x 2 amd00 amd00 4096 1月 25 21:41 triton.egg-info/ drwxrwxr-x 2 amd00 amd00 4096 1月 25 20:46 tutorials/ amd00@MZ32-00:~/yk_repo/triton/python$ amd00@MZ32-00:~/yk_repo/triton/python$
root@MZ32-00:/home/amd00/yk_repo/triton/python# LLVM_INCLUDE_DIRS=$LLVM_BUILD_DIR/include LLVM_LIBRARY_DIR=$LLVM_BUILD_DIR/lib LLVM_SYSPATH=$LLVM_BUILD_DIR sudo pip install -e . Obtaining file:///home/amd00/yk_repo/triton/python Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
copy /root/.triton/nvidia/bin/ptxas to ../third_party/nvidia/backend/bin/ptxas ...
copy /root/.triton/nvidia/bin/cuobjdump to ../third_party/nvidia/backend/bin/cuobjdump ...
copy /root/.triton/nvidia/bin/nvdisasm to ../third_party/nvidia/backend/bin/nvdisasm ...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in 
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. root@MZ32-00:/home/amd00/yk_repo/triton/python#
I encountered similar issue, did you figure it out? Thanks.
Same question here.
- Remove your your triton directory and clone it from github again.
 - Setup 
MAX_JOBS=<n>, where<n>is a small number, depending on your processor. 
- Remove your your triton directory and clone it from github again.
 - Setup
 MAX_JOBS=<n>, where<n>is a small number, depending on your processor.
still struggling with following error: Permission denied: '.../triton/python/../third_party/nvidia/backend/bin/nvdisasm'
still struggling with following error: Permission denied: '.../triton/python/../third_party/nvidia/backend/bin/nvdisasm'
Most likely because you used "sudo" which copied nvdisasm as root and now you are trying to delete the file under your user account.
You can do "sudo rm -rf .../triton/python/../third_party/nvidia/backend/bin/nvdisasm" to remove the file
Have anyone figured out the solution? @aaronsm i was running in the container. and there is no sudo permissions. still i get the same error. @jokeren even after removing and cloning the repo. i still get the same error.
any update on the error? Experienced this issue on a newly setup EC2 instance.