Skip to content

Commit

Permalink
Add a default warp size 1 for vulkan and opencl (apache#8109)
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi authored and Trevor Morris committed Jun 17, 2021
1 parent 9025cc7 commit e5675c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/target/target_kind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ TVM_REGISTER_TARGET_KIND("rocm", kDLROCM)
TVM_REGISTER_TARGET_KIND("opencl", kDLOpenCL)
.add_attr_option<Bool>("system-lib")
.add_attr_option<Integer>("max_num_threads", Integer(256))
.add_attr_option<Integer>("thread_warp_size")
.add_attr_option<Integer>("thread_warp_size", Integer(1))
.set_default_keys({"opencl", "gpu"});

TVM_REGISTER_TARGET_KIND("metal", kDLMetal)
Expand All @@ -274,6 +274,7 @@ TVM_REGISTER_TARGET_KIND("metal", kDLMetal)
TVM_REGISTER_TARGET_KIND("vulkan", kDLVulkan)
.add_attr_option<Bool>("system-lib")
.add_attr_option<Integer>("max_num_threads", Integer(256))
.add_attr_option<Integer>("thread_warp_size", Integer(1))
.set_default_keys({"vulkan", "gpu"});

TVM_REGISTER_TARGET_KIND("webgpu", kDLWebGPU)
Expand Down

0 comments on commit e5675c2

Please sign in to comment.