Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MetaSchedule] Update scripts for subgraph tuning #10501

Conversation

junrushao
Copy link
Member

No description provided.

#define TVM_REGISTER_CUDA_TAG(Name, Arch, SharedMem, RegPerBlock) \
TVM_REGISTER_TARGET_TAG(Name).set_config({ \
{"kind", String("cuda")}, \
{"arch", String(Arch)}, \
{"shared_memory_per_block", Integer(SharedMem)}, \
{"registers_per_block", Integer(RegPerBlock)}, \
{"max_shared_memory_per_block", Integer(SharedMem)}, \
Copy link
Member Author

Choose a reason for hiding this comment

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

Per discussion with @masahi, we updated shared_memory_per_block to max_shared_memory_per_block to be consistent with Vulkan settings. I'm not fully convinced but would love to follow the convention as Masa suggested.

@@ -105,7 +105,6 @@ class VerifyGPUCodeNode : public PostprocNode {
Target target = context->target.value();
this->target_constraints_ = Map<String, PrimExpr>{
{"max_shared_memory_per_block", Extract(target, "shared_memory_per_block")},
{"max_local_memory_per_block", Extract(target, "registers_per_block")},
Copy link
Member Author

Choose a reason for hiding this comment

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

The local memory restriction is removed to be consistent with AutoScheduler, as discussed with @masahi. CC: @Hzfengsy

@junrushao junrushao force-pushed the feature/2022-03-05/meta-schedule-scripts-for-op branch from ab6743d to df45fe7 Compare March 6, 2022 02:20
@junrushao junrushao requested a review from areusch as a code owner March 6, 2022 02:20
@junrushao junrushao force-pushed the feature/2022-03-05/meta-schedule-scripts-for-op branch from df45fe7 to 30af4b9 Compare March 6, 2022 02:23
Copy link
Member

@Hzfengsy Hzfengsy left a comment

Choose a reason for hiding this comment

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

LGTM

@junrushao junrushao merged commit 8729f6b into apache:main Mar 6, 2022
ziqiangxu8457 pushed a commit to ziqiangxu8457/tvm that referenced this pull request Mar 6, 2022
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
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