Code Monkey home page Code Monkey logo

Comments (5)

aaronenyeshi avatar aaronenyeshi commented on July 17, 2024 2
  1. How does kineto get pytroch functions name?

Kineto uses CUPTI to get the CUDA Runtime and launch names as well the as CUDA kernel names. Kineto interacts with PyTorch Profiler (inside of pytorch/pytorch repo), which helps Kineto get the PyTorch runtime function names. We also have a feature called Python Tracing, enabled by with_stack=True, which turns on the python tracer, and collects all the python runtime stacks too.

  1. What is the purpose of KINETO_USE_DAEMON=1 ?

This is a new OSS feature meant to enable on-demand profiling. When the dynolog daemon is enable via this env var, the daemon can directly request Kineto to perform a GPU trace collection. The env variable does not affect whether Kineto is on or not, since Kineto can be used via PyTorch Profiler API calls.

from kineto.

shinytang6 avatar shinytang6 commented on July 17, 2024 1

@stricklandye The first issue, as far as I understand, is that pytorch profiler pushes events to kineto actively, not by CUPTI itself.

from kineto.

stricklandye avatar stricklandye commented on July 17, 2024

@shinytang6 Thanks for your reply. Could you please tell me where is the source code related to this? i.e. Pytroch Profiler pushes events to kineto. :D

from kineto.

shinytang6 avatar shinytang6 commented on July 17, 2024

@shinytang6 Thanks for your reply. Could you please tell me where is the source code related to this? i.e. Pytroch Profiler pushes events to kineto. :D

maybe you can check this:
https://github.com/pytorch/pytorch/blob/e1f159e6b2c0b5d2d169569c490f182771ac643b/torch/csrc/profiler/collection.cpp#L805

from kineto.

stricklandye avatar stricklandye commented on July 17, 2024

I see. Hope someone else could answer the second questions. I will close this issue in few days.

from kineto.

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.