Giter Club home page Giter Club logo

Comments (5)

ptillet avatar ptillet commented on July 22, 2024

Oh, the triton-ops branch is not merged in yet. I will remove the C++ tests when I merge it into master and move all the tests/benchmarks to pytest :)

from triton.

FDInSky avatar FDInSky commented on July 22, 2024

Oh, the triton-ops branch is not merged in yet. I will remove the C++ tests when I merge it into master and move all the tests/benchmarks to pytest :)

Sometimes, We need to call operator in c++. So I suggest to keep the operator defines in c file. and parse them in python.

from triton.

ptillet avatar ptillet commented on July 22, 2024

I think you are right. My goal eventually is to have a .c file for each triton op defined in Python. I think right now there is an issue that prevents from having multiple kernels in the same .c file, but I will fix that.

PS: I have created a Slack workspace for Triton by the way. Feel free to e-mail me at [email protected] if you want an invite.

from triton.

FDInSky avatar FDInSky commented on July 22, 2024

image
I write a method, you can reference it.

from triton.

ptillet avatar ptillet commented on July 22, 2024

Thanks for your comment and suggestion. Everything is now more modular and includes .c file for the kernels in the python tree. It is also now possible to select by name which kernel to read from the source file as shown here https://github.com/ptillet/triton/blob/master/python/triton/ops/blocksparse/softmax.py . This is done in the C++ binding here https://github.com/ptillet/triton/blob/master/python/src/bindings.cc#L119 .

Closing the issue for now, but feel free to reopen if you have any related comment

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.