News for hackers. Stuff that matters.
Re:Triton: Open-Source GPU Programming for Neural Networks by riyadparvez on Wednesday July 28, 2021 @12:55PM (#27986010)
I am confused. Is it another competitor of Tensorflow, JAX, and Pytorch? Or something else?
Re:Triton: Open-Source GPU Programming for Neural Networks by peytoncasper on Wednesday July 28, 2021 @01:00PM (#27986070)
I believe this is more of an optimization layer to be utilized by libraries like Tensorflow and JAX. More of a simplification of the interaction with traditional CUDA instructions.

I imagine these libraries and possibly some users would implement libraries on top of this language and reap some of the optimization benefit without having to maintain low-level CUDA specific code.

Re:Triton: Open-Source GPU Programming for Neural Networks by jacoblambda on Wednesday July 28, 2021 @05:29PM (#27989978)
Im curious how it would compare to Halide Lang. They both seem to be targetting the same problem.
Re:Triton: Open-Source GPU Programming for Neural Networks by sanxiyn on Wednesday July 28, 2021 @10:27PM (#27992137)
https://triton-lang.org/programming-guide/chapter-2/related-... has comparison with Halide, which is categorized as "Scheduling Languages" there.
Re:Triton: Open-Source GPU Programming for Neural Networks by blueblisters on Wednesday July 28, 2021 @01:05PM (#27986136)
So is this similar to XLA?
Re:Triton: Open-Source GPU Programming for Neural Networks by jpf0 on Wednesday July 28, 2021 @01:17PM (#27986302)
XLA is domain-specific compiler for linear algebra. Triton generates and compiles an intermediate representation for tiled computation. This IR allows more general functions and also claims higher performance.

obligatory reference to the family of work: https://github.com/merrymercy/awesome-tensor-compilers

Re:Triton: Open-Source GPU Programming for Neural Networks by anon_tor_12345 on Wednesday July 28, 2021 @04:03PM (#27989019)
Without reading the paper, I think you have it a little backwards - the IR doesn't itself allow for more general functions. More general functions are possible (in theory) because the frontend (this Triton language) is decoupled from the backend (CUDA) through the IR as an interface. In this way the Triton IR is no less domain specific than XLA (because both are IRs that represent sequences of operators that run on GPU (or TPU or whatever). I guess in theory Triton could be eschewing all of eg cuDNN but most likely it's not as NVIDIA's closed source kernels perform best on their closed source hardware.

Edit: should've read the post before commenting. Looks like they are in fact using LLVM's PTX backend (ie generating cuda kernels from scratch). Kudos to them

Re:Triton: Open-Source GPU Programming for Neural Networks by N1H1L on Wednesday July 28, 2021 @07:39PM (#27991110)
From what I got from reading the docs and the blog post, was that this is a competitor to torch.jit and numba.cuda.jit - write faster Pythonic GPGPU kernels without sacrificing speed.