Skip to content

Commit

Permalink
Add thread_warp_size for Metal device in default target attributes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
elvin-n authored Jun 7, 2021
1 parent 072a3d2 commit 3ab4a6b
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 3ab4a6b

Please sign in to comment.