triton icon indicating copy to clipboard operation
triton copied to clipboard

[BUILD] fix ubuntu arm64 build

Open danikhan632 opened this issue 1 year ago • 6 comments

Fixed issue that occured with ubuntu arm64 builds, here is a run where this workflow was run

LLVM build

danikhan632 avatar Feb 15 '24 14:02 danikhan632

Please run pre-commit

Jokeren avatar Feb 15 '24 15:02 Jokeren

How did you figure out these flags btw?

Jokeren avatar Feb 15 '24 15:02 Jokeren

How did you figure out these flags btw?

trial and error + a bit of help from GPT, also verified by running file on the finished build image

danikhan632 avatar Feb 15 '24 15:02 danikhan632

fixing this part since although the file checkout arm, file name is still x86 image

danikhan632 avatar Feb 15 '24 17:02 danikhan632

Tried fiddling around with a bunch of CMake options but I think this is from the host python version. Works fine

danikhan632 avatar Feb 15 '24 17:02 danikhan632

let me know any concerns since I'm aware this code is a bit hacky

danikhan632 avatar Feb 15 '24 18:02 danikhan632

Hello, what is the straight-forward way to install triton on an aarch64 machine (such as an Nvidia Jetson)?

WikiLucas00 avatar Feb 21 '24 11:02 WikiLucas00

Hi @WikiLucas00, I thought the build has been fixed after this PR, but actually I'm still seeing mlir-opt's ELF format doesn't match. @danikhan632, do you want to double check? Weirdly, if I use the same LLVM build instructions and build it locally, that works.

Regarding your question, currently you'll have to build LLVM first, then build triton.

Jokeren avatar Feb 21 '24 14:02 Jokeren

Hi @WikiLucas00, I thought the build has been fixed after this PR, but actually I'm still seeing mlir-opt's ELF format doesn't match. @danikhan632, do you want to double check? Weirdly, if I use the same LLVM build instructions and build it locally, that works.

Regarding your question, currently you'll have to build LLVM first, then build triton.

can u show a screenshot? I think I built locally too and it reads as aarch64 so a bit concerned about this

danikhan632 avatar Feb 21 '24 16:02 danikhan632

There you go image

Jokeren avatar Feb 21 '24 16:02 Jokeren

oh thats not good, a bit uncertain why this is happening since when file is run on it says arm64, let me fix this my bad

danikhan632 avatar Feb 21 '24 19:02 danikhan632