Skip to content

Commit

Permalink
Reintroduce LLVM version check in aprofile tests to fix i386
Browse files Browse the repository at this point in the history
Change-Id: I0b88ecad2987297c428d0f0ca95db35d828c1672
  • Loading branch information
lhutton1 committed Jan 28, 2024
1 parent 0f625dd commit 52cbe87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cpp/target/parsers/aprofile_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static float defaultDotProd = 8.4;
static float optionalDotProd[] = {8.2, 8.3};

static bool CheckArchitectureAvailability() {
#if TVM_LLVM_VERSION > 120
auto llvm_instance = std::make_unique<codegen::LLVMInstance>();
codegen::LLVMTargetInfo llvm_backend(*llvm_instance, "llvm");
Array<String> targets = llvm_backend.GetAllLLVMTargets();
Expand All @@ -52,6 +53,7 @@ static bool CheckArchitectureAvailability() {
if (expected_target_count >= 2) {
return true;
}
#endif
return false;
}
static bool has_aarch64_and_arm_targets = CheckArchitectureAvailability();
Expand Down

0 comments on commit 52cbe87

Please sign in to comment.