fix lit test issues

This is a combination of 6 commits.

install lit

fix lit test

fix lit test

fix aot lit issues

fix final lit tests

add lit tests
This commit is contained in:
Michael Melesse
2023-04-13 13:44:16 -05:00
parent 3603483fc0
commit 705d47d0dd
10 changed files with 72 additions and 52 deletions

View File

@@ -122,8 +122,13 @@ LogicalResult tritonTranslateMain(int argc, char **argv,
}
llvm::LLVMContext llvmContext;
#if 1 // USE_ROCM doesnot work here
auto llvmir = translateTritonGPUToLLVMIR(&llvmContext, *module,
SMArch.getValue(), true /*isRocm*/);
#else
auto llvmir = translateTritonGPUToLLVMIR(&llvmContext, *module,
SMArch.getValue(), false /*isRocm*/);
#endif
if (!llvmir) {
llvm::errs() << "Translate to LLVM IR failed";
}