Giter Club home page Giter Club logo

Comments (6)

geoffxy avatar geoffxy commented on September 18, 2024 1

Thanks for your interest in Habitat!

What we mean by "kernel-varying operation" is that the high-level operation is not necessarily implemented using the exact same kernel(s) on all GPUs. One example is convolutions. For example, if you take a PyTorch model that contains convolutions and run it on GPUs that are from different generations, (e.g., a P100 (Pascal) and a V100 (Volta)) you will see different kernels being used.

Note that in our paper, "operation" is not the same as "kernel". By operation we mean the high-level functions that a user might call in a deep learning framework like PyTorch (e.g., conv2d or relu). These operations are implemented using one or more GPU kernels.

from habitat.

geoffxy avatar geoffxy commented on September 18, 2024 1

My understanding is that the main reason is for performance. Operations like convolutions can take up a big portion of the model's execution time during training. So, in the case of cuDNN, NVIDIA has different implementations of the convolution kernels for different GPU generations. Presumably they do this so that they can optimize/tune the kernels for specific GPU architectures.

from habitat.

geoffxy avatar geoffxy commented on September 18, 2024 1

Closing this for now - feel free to reopen to follow up!

from habitat.

Baek-sohyeon avatar Baek-sohyeon commented on September 18, 2024

Thank you very much for your reply.
I have an additional question.

Why are different kernels used when running PyTorch models with convolution on different generations of GPUs (eg P100 (Pascal) and V100 (Volta))?

I guess I'm not figuring out exactly what the kernel is.

from habitat.

Baek-sohyeon avatar Baek-sohyeon commented on September 18, 2024

Thanks for your kind reply.
It really helped a lot!!!!
There is one additional confusing thing.

Should warp and wave be considered different?

from habitat.

geoffxy avatar geoffxy commented on September 18, 2024

Yes, they are different. You can think of warps as the "physical unit of execution" on the GPU whereas thread blocks are the "logical" unit of execution. Thread blocks are split up into warps, which are scheduled for execution on the GPU. In the Habitat paper, waves are essentially the maximum number of thread blocks (for a specific kernel) that can run concurrently on a specific GPU.

There’s more information about warps (and their relationship to thread blocks) here: https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#simt-architecture

from habitat.

Related Issues (10)

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.