better throughput scheduling with steady state cost model (WIP)

This commit is contained in:
NiccoloN
2026-10-23 11:27:06 +02:00
parent 48e9fb3795
commit fd493ae6e8
51 changed files with 3581 additions and 247 deletions
+31
View File
@@ -0,0 +1,31 @@
#pragma once
#include "llvm/Support/JSON.h"
#include <cstdint>
#include <string>
#include <vector>
namespace onnx_mlir {
namespace spatial { struct SchedulingTarget; }
struct PimInstructionTiming;
void configurePimScheduleCosts(spatial::SchedulingTarget &target, PimInstructionTiming timing);
// Binary instructions, indexed by physical core. No executable or measured data.
struct PimInstructionProgram {
std::vector<std::string> instructions;
std::vector<std::vector<int64_t>> arrayGroups;
};
struct PimPeriodicOptions {
bool networkQueues = true;
bool instructionIssue = true;
bool memoryController = true;
bool detailed = false;
// Apply the oracle's fp32-to-int8 timing projection without changing the program.
bool oraclePrecision = false;
};
llvm::json::Object analyzePimInstructions(const PimInstructionProgram &program,
const PimInstructionTiming &target, int64_t cellBits,
PimPeriodicOptions options = {});
} // namespace onnx_mlir