Skip to content

Some env var and build system hacks to get triton building and dumping IR on macOS

Notifications You must be signed in to change notification settings

plotfi/triton-macos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

triton-macos

Some env var and build system hacks to get triton building and dumping IR on macOS

Purpose???

Why did I do this? Because I like to do local development on my M1/2/3 laptop some of the times. I find it a little easier to get stuff done.

Instructions

  • Apply the CMakeLists-LLVMAArch64.patch to your Triton repo so that your build links with Native
  • source run.sh

This should generate your dummy-ptxas and set environment variables needed to run and dump IRs from Triton.

offline-compile.py is an example Triton kernel and compile invocation that uses Triton's compile API to set the proper warp, ctas, stages, ptx version, Cuda capabilities etc to do a compile run on a non-supported system like a Mac.

About

Some env var and build system hacks to get triton building and dumping IR on macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published