Skip to content

Commit

Permalink
Add thread_warp_size for Metal device in default target attributes (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
elvin-n authored and trevor-m committed Jun 17, 2021
1 parent 10874d6 commit 9578c1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/target/target_kind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ TVM_REGISTER_TARGET_KIND("opencl", kDLOpenCL)
TVM_REGISTER_TARGET_KIND("metal", kDLMetal)
.add_attr_option<Bool>("system-lib")
.add_attr_option<Integer>("max_num_threads", Integer(256))
.add_attr_option<Integer>("thread_warp_size", Integer(16))
.set_default_keys({"metal", "gpu"});

TVM_REGISTER_TARGET_KIND("vulkan", kDLVulkan)
Expand Down

0 comments on commit 9578c1a

Please sign in to comment.