Skip to content

Commit

Permalink
[FIX][LLVM] Workaround -mcpu=apple-latest for llvm above 18.0 (issue#…
Browse files Browse the repository at this point in the history
…17492)
  • Loading branch information
cbalint13 committed Nov 30, 2024
1 parent 7ae7ea8 commit 7c3ee28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/target/tag.cc
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ TVM_REGISTER_TAG_AWS_C5("aws/cpu/c5.24xlarge", 48, "cascadelake");
{"thread_warp_size", runtime::Int(WarpSize)}, \
{"host", Map<String, ObjectRef>{{"kind", String("llvm")}, \
{"mtriple", String("arm64-apple-macos")}, \
#if TVM_LLVM_VERSION >= 190
{"mcpu", String("apple-m4")}}}});
#else
{"mcpu", String("apple-latest")}}}});
#endif

#if TVM_LLVM_HAS_AARCH64_TARGET
TVM_REGISTER_METAL_GPU_TAG("apple/m1-gpu", 1024, 32768, 32);
Expand Down

0 comments on commit 7c3ee28

Please sign in to comment.