Skip to content

[CUDA codegen] Add pass to tile and distribute linalg ops to threads - #5234

Merged
ThomasRaoux merged 1 commit into
iree-org:mainfrom
ThomasRaoux:cuda_distribute
Mar 29, 2021
Merged

ThomasRaoux merged 1 commit into
iree-org:mainfrom
ThomasRaoux:cuda_distribute

Conversation

@ThomasRaoux

Copy link
Copy Markdown
Contributor

Also start adding framework to query tile size and workgroup size for
different ops

@MaheshRavishankar MaheshRavishankar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@ThomasRaoux
ThomasRaoux merged commit 84b0c2c into iree-org:main Mar 29, 2021
@KoolJBlack KoolJBlack mentioned this pull request Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants