Skip to content

Commit

Permalink
[Target] Add Jetson AGX Orin tags (#16231)
Browse files Browse the repository at this point in the history
  • Loading branch information
rym-h authored Dec 15, 2023
1 parent c8bfdb2 commit 37c38ac
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/target/tag.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,30 @@ TVM_REGISTER_TARGET_TAG("nvidia/jetson-orin-nano")
{"mcpu", String("carmel")},
{"num-cores", Integer(6)}}}});

TVM_REGISTER_TARGET_TAG("nvidia/jetson-agx-orin-32gb")
.set_config({{"kind", String("cuda")},
{"arch", String("sm_87")},
{"max_shared_memory_per_block", Integer(49152)},
{"max_threads_per_block", Integer(1024)},
{"thread_warp_size", Integer(32)},
{"registers_per_block", Integer(65536)},
{"host", Map<String, ObjectRef>{{"kind", String("llvm")},
{"mtriple", String("aarch64-linux-gnu")},
{"mcpu", String("cortex-a78")},
{"num-cores", Integer(8)}}}});

TVM_REGISTER_TARGET_TAG("nvidia/jetson-agx-orin-64gb")
.set_config({{"kind", String("cuda")},
{"arch", String("sm_87")},
{"max_shared_memory_per_block", Integer(49152)},
{"max_threads_per_block", Integer(1024)},
{"thread_warp_size", Integer(32)},
{"registers_per_block", Integer(65536)},
{"host", Map<String, ObjectRef>{{"kind", String("llvm")},
{"mtriple", String("aarch64-linux-gnu")},
{"mcpu", String("cortex-a78")},
{"num-cores", Integer(12)}}}});

#define TVM_REGISTER_CUDA_TAG(Name, Arch, SharedMem, RegPerBlock) \
TVM_REGISTER_TARGET_TAG(Name).set_config({ \
{"kind", String("cuda")}, \
Expand Down

0 comments on commit 37c38ac

Please sign in to comment.