Repository navigation
[CUDA codegen] Add pass to tile and distribute linalg ops to threads - #5234
Conversation
MaheshRavishankar
left a comment
There was a problem hiding this comment.
This looks mostly OK, but can we give some thought to the directory structure in Conversion/
We have
Conversion/Common
Conversion/CodegenUtils
I think having a single folder would be nice. Just have a Common folder and within that have separate .h/.cpp files for different shared infra.
Not needed with this PR, but just wanted to get an idea of whether this makes sense (I have been meaning to tackle this folder mess once the buffer path is deprecated)
| class GPUGlobalId; | ||
| class GPUGlobalCount; | ||
| template <typename GPUIdOp, typename GPUCountOp> | ||
| SmallVector<linalg::ProcInfo, 2> getGPUProcessorIdsAndCounts(OpBuilder &builder, |
There was a problem hiding this comment.
Actually having a templated API entry (since its in a header file) is problematic (very easy to have undefined symbols). Probably just better to keep them local to files.
There was a problem hiding this comment.
You're right, thinking more about this, it is definitely an overkill. I reverted all this and just made a local function with just what I need for CUDA.
Also start adding framework to query tile size and workgroup size for different ops
fc431d4 to
66dcc88
Compare
Also start adding framework to query tile size and workgroup size for
different ops