better compile times for throughput scheduling
Validate Operations / validate-operations (push) Has been cancelled
Validate Operations / validate-operations (push) Has been cancelled
fix failing no-plan throughput ablation runs update results
This commit is contained in:
@@ -58,6 +58,10 @@ public:
|
||||
program(target.processorCount) {}
|
||||
bool build(ModuleOp module);
|
||||
private:
|
||||
// Bound interpretation per physical core, independently of batch lane count.
|
||||
static constexpr size_t maximumCoreVisits = 1000000;
|
||||
size_t coreVisits = 0;
|
||||
int64_t currentCore = -1;
|
||||
llvm::SmallDenseSet<int64_t, 16> assignedCores;
|
||||
DenseMap<Value, Residence> residence;
|
||||
DenseMap<Value, CopyAccessPlan> publicationAccess;
|
||||
@@ -378,7 +382,12 @@ bool Extraction::operation(Operation &op, Sequence &sequence) {
|
||||
|
||||
bool Extraction::block(Block &body, Sequence &sequence) {
|
||||
for (Operation &op : body) {
|
||||
if (++visited > 1000000) { error = "abstract extraction budget exceeded"; return false; }
|
||||
++visited;
|
||||
if (++coreVisits > maximumCoreVisits) {
|
||||
error = "abstract extraction budget exceeded on physical core "
|
||||
+ std::to_string(currentCore);
|
||||
return false;
|
||||
}
|
||||
if (!operation(op, sequence)) return false;
|
||||
for (Value result : op.getResults())
|
||||
if (auto outputs = directOutputs.find(result); outputs != directOutputs.end())
|
||||
@@ -400,6 +409,7 @@ bool Extraction::core(Operation *op, int64_t physicalCore, unsigned lane) {
|
||||
loweringSupport = StaticLoweringSupport::Unsupported;
|
||||
error = "duplicate physical core assignment: " + std::to_string(physicalCore); return false;
|
||||
}
|
||||
coreVisits = 0; currentCore = physicalCore;
|
||||
residence.clear(); publicationAccess.clear(); directOutputs.clear(); compactStorage.clear();
|
||||
environment.bindings.clear();
|
||||
ValueRange inputs, weights;
|
||||
|
||||
Reference in New Issue
Block a user