fix output paths
add gemm test
This commit is contained in:
@@ -433,14 +433,7 @@ std::string getMemorySizeAsString(size_t size) {
|
||||
return std::to_string(size) + " Bytes";
|
||||
}
|
||||
|
||||
OnnxMlirCompilerErrorCodes compileModuleToPIMJSON(const OwningOpRef<ModuleOp>& moduleOpRef, std::string& outputDirPath) {
|
||||
ModuleOp moduleOp = moduleOpRef.get();
|
||||
|
||||
if (pimEmissionTarget != EmitPimCodegen) {
|
||||
moduleOp.dump();
|
||||
return CompilerSuccess;
|
||||
}
|
||||
|
||||
OnnxMlirCompilerErrorCodes compileModuleToPIMJSON(ModuleOp& moduleOp, std::string& outputDirPath) {
|
||||
if (!outputDirPath.empty()) {
|
||||
if (auto error = llvm::sys::fs::create_directory(outputDirPath)) {
|
||||
llvm::errs() << "Error creating output directory: " << outputDirPath << ": " << error.message() << '\n';
|
||||
@@ -696,8 +689,6 @@ OnnxMlirCompilerErrorCodes compileModuleToPIMJSON(const OwningOpRef<ModuleOp>& m
|
||||
jsonOS << llvm::json::Value(std::move(configJson)) << '\n';
|
||||
jsonOS.close();
|
||||
|
||||
showCompilePhase("Code generated into " + configPath);
|
||||
|
||||
return CompilerSuccess;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user