[Triton-MLIR] add GitHub CI runners (#655)

This PR is to add GitHub Actions runners to the CI for better coverage.
This commit is contained in:
Shintaro Iwasaki
2022-09-14 23:09:56 -07:00
committed by GitHub
parent c14dff2190
commit 297d27e1c8
4 changed files with 38 additions and 7 deletions

View File

@@ -123,7 +123,7 @@ struct PTXBuilder {
Operand *newAddrOperand(mlir::Value addr, StringRef constraint, int off = 0);
llvm::SmallVector<Operand *> getAllArgs() const;
llvm::SmallVector<Operand *, 4> getAllArgs() const;
llvm::SmallVector<Value, 4> getAllMLIRArgs() const;

View File

@@ -48,8 +48,15 @@ protected:
initializer();
if (cache == nullptr) {
cache = dlsym(lib_h, name);
if (cache == 0)
if (cache == 0) {
#ifdef __EXCEPTIONS
throw std::runtime_error("dlsym unable to load function");
#else
std::cerr << "Triton: dlsym unable to load function `" << name << "`"
<< std::endl;
std::abort();
#endif
}
}
FunPtrT fptr;
*reinterpret_cast<void **>(&fptr) = cache;