{"id":31505664,"url":"https://github.com/steleman/openai-triton","last_synced_at":"2026-04-08T18:02:13.742Z","repository":{"id":315987172,"uuid":"1059672039","full_name":"steleman/openai-triton","owner":"steleman","description":"Fork of OpenAI's Triton compiler v3.4.0 using LLVM 21.1.0 / 21.1.1 on Fedora 41+","archived":false,"fork":false,"pushed_at":"2025-09-22T03:26:03.000Z","size":5790,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"triton-3.4.0-llvm-21.1.1-fc41","last_synced_at":"2025-10-02T20:21:47.689Z","etag":null,"topics":["cuda","fedora","linux","llvm","mlir","mlir-dialect","openai","rocm","triton"],"latest_commit_sha":null,"homepage":"https://github.com/triton-lang/triton","language":"MLIR","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-18T19:13:35.000Z","updated_at":"2025-09-24T22:34:43.000Z","dependencies_parsed_at":"2025-09-22T03:40:54.319Z","dependency_job_id":null,"html_url":"https://github.com/steleman/openai-triton","commit_stats":null,"previous_names":["steleman/openai-triton"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steleman/openai-triton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Fopenai-triton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Fopenai-triton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Fopenai-triton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Fopenai-triton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steleman","download_url":"https://codeload.github.com/steleman/openai-triton/tar.gz/refs/heads/triton-3.4.0-llvm-21.1.1-fc41","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Fopenai-triton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuda","fedora","linux","llvm","mlir","mlir-dialect","openai","rocm","triton"],"created_at":"2025-10-02T20:09:59.448Z","updated_at":"2026-04-08T18:02:13.699Z","avatar_url":"https://github.com/steleman.png","language":"MLIR","funding_links":[],"categories":[],"sub_categories":[],"readme":"OpenAI Triton Compiler with LLVM 21.1.0 / 21.1.1\n============================\n\nThis is my fork of the OpenAI Triton Compiler v3.4.0 that has been verified to build correctly and work with LLVM 21.1.0 or LLVM 21.1.1, CUDA 12.9, AMD ROCm 6.4.3 and Python 3.13, on Fedora 41. It will likely work just as well on more recent Fedora versions. I cannot speak for earlier Fedora releases since I haven't tried.\n\nThe `main` branch in this repo contains the unmodified upstream Triton version 3.4.0. The fork described in this README is in the `triton-3.4.0-llvm-21.1.1-fc41` branch.\n\nTriton will not build with LLVM 20.1.0 or LLVM 19.1.1. Several public MLIR interfaces that are imported by Triton are missing in those versions.\n\nThe original [README.md](https://github.com/steleman/openai-triton/blob/main/README.md) file has been renamed to  [TRITON.OPENAI.README.md](https://github.com/steleman/openai-triton/blob/triton-3.4.0-llvm-21.1.1-fc41/TRITON.OPENAI.README.md).\n\nBuild scripts are in the `build_scripts` directory.\n\nBuild instructions:\n----------------------\n1. Obtain a development build of LLVM either 21.1.0 or 21.1.1, including MLIR. By development build I mean: an LLVM installation that includes all the header files and libraries.\n2. Clone this repository.\n3. Copy the file `Makefile.configure-triton` to the cloned directory's parent directory. For example: if you cloned this repo into `/builds/triton-openai`, do: `cp /builds/triton-openai/build_scripts/Makefile.configure-triton /builds/`.\n4. Run `gmake -f Makefile.configure-triton configure`. This will create a build directory under `/builds/build-triton`.\n5. `cd /builds/build-triton`.\n6. `cp ../triton-openai/build_scripts/build-triton.sh .`.\n7. `cp ../triton-openai/build_scripts/install-triton.sh .`\n8. Run the build script: `./build-triton.sh`.\n9. When the build is finished you can install Triton with the `install_triton.sh` script by running `./install-triton.sh` from the same directory. This will install OpenAI Triton in a local \\$DESTDIR.\n10. If you want to build a Python Wheel, change to the toplevel cloned directory: `cd /builds/triton-openai` and do:\n\n    `cp ./build_scripts/pip3-build-triton-wheel.sh .`.\n    \n11. Run the Wheel build script from the toplevel directory: `./pip3-build-triton-wheel.sh`.\n\nThis fork of Triton 3.4.0 has been patched to build and work with LLVM 21. The patch can be found in the `patches` toplevel directory. \n\nYou can find and download pre-built rpms and the corresponding Triton Wheel at my Google Drive: \n\nhttps://drive.google.com/drive/folders/1kGQJ9xZk6GENUZVOPEMRynbXC3HnO2ED?usp=drive_link\n\nThese rpms install LLVM 21.1.1 and Triton 3.4.0 in `/opt/triton/llvm-21.1.1`.  You must install with `rpm`, and not `dnf`:\n\n`%\u003e rpm -i --force --nodeps ./llvm-triton-21.1.1-100.fc41.x86_64.rpm`\n\n`%\u003e rpm -i --force --nodeps ./triton-3.4.0+gitc817b9b6-500.fc41.x86_64.rpm`\n\nThe Python Wheel installs normally with `pip3`.\n\nThe rpm `python3-triton-3.4.0+gitc817b9b6-500.fc41.x86_64.rpm` contains the Python files for Triton packaged as an rpm. Its delivered contents are identical to the files delivered by the Triton Python Wheel. It installs its files in `/usr/lib64/python3.13/site-packages/` and `/usr/bin`.\n\nInstalling CUDA 12.9 and AMD ROCm 6.4.3 on Fedora 41+ is left as an exercise for the reader. :-)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteleman%2Fopenai-triton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteleman%2Fopenai-triton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteleman%2Fopenai-triton/lists"}