Comments (6)
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.
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.
Closing this for now - feel free to reopen to follow up!
from habitat.
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.
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.
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)
- Fail to build the image HOT 1
- Large Prediction Errors HOT 2
- Broken pillow for torchvision in Dockerfile causes docker build failed
- CUPTI_ERROR_INSUFFICIENT_PRIVILEGES in container HOT 1
- How can I make habitat support more devices HOT 7
- How Habitat measures the execution time associated with the operation’s backward pass? HOT 2
- CMake Error at CMakeLists.txt:22 (pybind11_add_module): HOT 1
- error: function cuptiProfilerBeginSession(&begin_session_params) failed with error CUPTI_ERROR_UNKNOWN HOT 4
- Is it possible to provide the code generated by different model variants with different hyperparameter configurations HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from habitat.