Giter Site home page Giter Site logo

Comments (17)

ytaous avatar ytaous commented on August 29, 2024 1

The url is till blocked - any updates?

from triton.

TheTrustedComputer avatar TheTrustedComputer commented on August 29, 2024 1

I also faced this HTTP 409 error when building PyTorch 2.4 + ROCm. I think this problem of Triton not building points to AOTriton (AMD's fork) using the old upstream commit containing the now broken URL.

from triton.

vaenyr avatar vaenyr commented on August 29, 2024 1

For anyone who might be in a similar situation:

I've run into the same issue recently when trying to build PT for ROCm from source. I've tried a couple of ideas, including upgrading LLVM in AMD's triton fork, etc., all in vain. In the end what worked well for me was to follow the Building with custom LLVM part of README.

  1. Clone and checkout LLVM to commit 49af6502c6dcb4a7f7520178bd14df396f78240c.
  2. Build with AMDGPU support
  3. set the env variables as explained in the readme (I used export ...)
  4. build pytorch as usual

No more HTTP 409/missing blobs/version mismatch problems - everything went smoothly.

from triton.

TheTrustedComputer avatar TheTrustedComputer commented on August 29, 2024 1

I also had mixed results on building Triton (upstream commit cb3d79a185e40c9d8a579bea07747a8a8d157d52 and AMD's triton commit 9b73a543a5545960bcaf2830900b0560eec443c5) with this particular LLVM commit (49af6502c6dcb4a7f7520178bd14df396f78240c). I seem to cannot get past this error installing the Python package:

CMake Error at CMakeLists.txt:61 (find_package):
Found package configuration file:

    /root/triton-llvm-build/lib/cmake/mlir/MLIRConfig.cmake

but it set MLIR_FOUND to FALSE so package "MLIR" is considered to be NOT
FOUND.  Reason given by package:

The following imported targets are referenced, but are missing:
LLVMNVPTXCodeGen LLVMNVPTXDesc LLVMNVPTXInfo



-- Configuring incomplete, errors occurred

I built LLVM with CMake using the following flags:

-B /root/triton-llvm-build \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-pc-linux-gnu" \
-DLLVM_TARGETS_TO_BUILD="AMDGPU;NVPTX;Native" \
-DLLVM_ENABLE_PROJECTS="mlir" \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_CCACHE_BUILD=ON \
-G Ninja

The find command shows these targets are present, despite what CMake says.

find /root/triton-llvm-build -name "*LLVMNVPTXCodeGen*"

/root/triton-llvm-build/lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir
/root/triton-llvm-build/lib/libLLVMNVPTXCodeGen.a

find /root/triton-llvm-build -name "*LLVMNVPTXDesc*"

/root/triton-llvm-build/lib/Target/NVPTX/MCTargetDesc/CMakeFiles/LLVMNVPTXDesc.dir
/root/triton-llvm-build/lib/libLLVMNVPTXDesc.a

find /root/triton-llvm-build -name "*LLVMNVPTXInfo*"

/root/triton-llvm-build/lib/Target/NVPTX/TargetInfo/CMakeFiles/LLVMNVPTXInfo.dir
/root/triton-llvm-build/lib/libLLVMNVPTXInfo.a

Environment variables used:

LLVM_LIBRARY_DIR=/root/triton-llvm-build/lib
LLVM_INCLUDE_DIRS=/root/triton-llvm-build/include
LLVM_SYSPATH=/root/triton-llvm-build

from triton.

prarit avatar prarit commented on August 29, 2024

I'm seeing this too. The link to the tarball is now restricted.

from triton.

prarit avatar prarit commented on August 29, 2024

In case anyone is looking into this: I've tried accessing https://tritonlang.blob.core.windows.net via an internal redhat.com network, a private network and via an online anonymizer. It looks like the site is locked down for some reason and access to the tarball is restricted as indicated in the initial report by @lisaong

from triton.

prarit avatar prarit commented on August 29, 2024

Is there a way to provide a 1-time download for the tarball? Perhaps through a direct commit to the triton repo itself?

from triton.

atalman avatar atalman commented on August 29, 2024

We are also seeing this when trying to build triton in pytorch: https://github.com/pytorch/pytorch/actions/runs/10421322991/job/28863284428

cc @ptillet @Jokeren

from triton.

jayfurmanek avatar jayfurmanek commented on August 29, 2024

That URL was changed back in June:
06e6799

Perhaps torch is on an older commit?

from triton.

fei-xx avatar fei-xx commented on August 29, 2024

I'm also seeing the similar issue. Any updates?

from triton.

cantor-set avatar cantor-set commented on August 29, 2024

This is still an issue, AOTriton still can not be build

from triton.

prarit avatar prarit commented on August 29, 2024

For anyone attempting to build aotriton from ROCm. aotriton references a DIFFERENT repository than triton-lang, and I have filed an issue here: ROCm#631

from triton.

hyhuang00 avatar hyhuang00 commented on August 29, 2024

That URL was changed back in June: 06e6799

Perhaps torch is on an older commit?

Thank you! Using the new URL solved this problem.

from triton.

prarit avatar prarit commented on August 29, 2024

@jayfurmanek torch is indeed on an older commit. Is there any plan to provide the older llvm-49af6502-ubuntu-x64.tar.gz tarball at the new oatriton download link? If not, is there a way I and others could get a copy?

from triton.

prarit avatar prarit commented on August 29, 2024

Thanks. I had actually stumbled across this today and was trying it out :) It seems like it works -- I'm just worried that the AMD llvm may have additional flags we're not compiling with. Hopefully someone from the AMD ROCm team can confirm the above instructions are valid.

from triton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.