Datasets:
v3.0: multi-target schema + Broadwell (xeon_e5_2680_v4) measurements; rename v2->v3
Browse files- README.md +100 -36
- data/full/{looperset_v2_full.jsonl.gz → looperset_v3_full.jsonl.gz} +2 -2
- data/full/{looperset_v2_full_compact.jsonl.gz → looperset_v3_full_compact.jsonl.gz} +2 -2
- data/pact25/{looperset_v2_pact_train.jsonl.gz → looperset_v3_pact_train.jsonl.gz} +2 -2
- data/pact25/{looperset_v2_pact_train_compact.jsonl.gz → looperset_v3_pact_train_compact.jsonl.gz} +2 -2
- data/pact25/{looperset_v2_pact_validation.jsonl.gz → looperset_v3_pact_validation.jsonl.gz} +2 -2
- data/pact25/{looperset_v2_pact_validation_compact.jsonl.gz → looperset_v3_pact_validation_compact.jsonl.gz} +2 -2
- data/source/{looperset_v2_generators.tar.gz → looperset_v3_generators.tar.gz} +0 -0
README.md
CHANGED
|
@@ -14,26 +14,26 @@ configs:
|
|
| 14 |
- config_name: full
|
| 15 |
data_files:
|
| 16 |
- split: train
|
| 17 |
-
path: "data/full/
|
| 18 |
|
| 19 |
- config_name: full_compact
|
| 20 |
data_files:
|
| 21 |
- split: train
|
| 22 |
-
path: "data/full/
|
| 23 |
|
| 24 |
- config_name: pact25_split
|
| 25 |
data_files:
|
| 26 |
- split: train
|
| 27 |
-
path: "data/pact25/
|
| 28 |
- split: validation
|
| 29 |
-
path: "data/pact25/
|
| 30 |
|
| 31 |
- config_name: pact25_split_compact
|
| 32 |
data_files:
|
| 33 |
- split: train
|
| 34 |
-
path: "data/pact25/
|
| 35 |
- split: validation
|
| 36 |
-
path: "data/pact25/
|
| 37 |
---
|
| 38 |
|
| 39 |
# LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Optimization
|
|
@@ -55,6 +55,8 @@ configs:
|
|
| 55 |
|
| 56 |
`LOOPerSet` was originally created to train the cost model for the [LOOPer autoscheduler](https://ieeexplore.ieee.org/document/11282943) (PACT '25). For a full description of the generation process and a diversity analysis, please see our [companion paper on arXiv](https://arxiv.org/abs/2510.10209).
|
| 57 |
|
|
|
|
|
|
|
| 58 |
An open-source implementation of that cost model is available at [**LOOPerCostModel**](https://github.com/Mascinissa/LOOPerCostModel). It trains directly on `LOOPerSet` and reproduces the results reported in the LOOPer paper, providing a ready-to-use baseline for performance prediction and schedule ranking on this dataset.
|
| 59 |
|
| 60 |
### What is inside?
|
|
@@ -62,7 +64,7 @@ Each data point represents a **(Program, Schedule) → Performance** tuple co
|
|
| 62 |
* **Source Code & IR:** Raw Tiramisu (C++) generator code, lowered Halide IR, and ISL ASTs.
|
| 63 |
* **Structured Features:** JSON-based representation of the program structure (loop hierarchy, memory access patterns, arithmetic expressions) for feature engineering.
|
| 64 |
* **Optimization Schedules:** Sequences of code transformations (tiling, skewing, fusion, interchange, unrolling, parallelization, etc) and the specific API commands used to apply them.
|
| 65 |
-
* **Ground Truth:** Execution time (ms) measured over many runs on physical hardware.
|
| 66 |
|
| 67 |
### Key Research Tasks
|
| 68 |
By exposing both low-level source code and high-level structural features, the dataset can be used for several research applications in machine learning and compilers:
|
|
@@ -95,13 +97,26 @@ The dataset is provided in two structural variants (**Standard** and **Compact**
|
|
| 95 |
|
| 96 |
| Configuration | File Path | Compressed Size | Decompressed Size |
|
| 97 |
| :--- | :--- | :--- | :--- |
|
| 98 |
-
| **Full (Standard)** | `data/full/
|
| 99 |
-
| **Full (Compact)** | `data/full/
|
| 100 |
-
| **PACT Train (Standard)** | `data/pact25/
|
| 101 |
-
| **PACT Train (Compact)** | `data/pact25/
|
| 102 |
-
| **PACT Val (Standard)** | `data/pact25/
|
| 103 |
-
| **PACT Val (Compact)** | `data/pact25/
|
| 104 |
-
| **Generators Source** | `data/source/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
## How to Use
|
| 107 |
|
|
@@ -109,6 +124,14 @@ The dataset files are stored in `.jsonl.gz` format (gzipped JSON Lines), where
|
|
| 109 |
|
| 110 |
Below we provide a simple method to download the files and stream the data in Python.
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
### Installation
|
| 113 |
|
| 114 |
|
|
@@ -133,7 +156,7 @@ REPO_ID = "Mascinissa/LOOPerSet"
|
|
| 133 |
# --- Option 1: Download the Full Compact (Recommended for Speed) ---
|
| 134 |
full_compact_path = hf_hub_download(
|
| 135 |
repo_id=REPO_ID,
|
| 136 |
-
filename="data/full/
|
| 137 |
repo_type="dataset",
|
| 138 |
)
|
| 139 |
print(f"Full Compact dataset downloaded to: {full_compact_path}")
|
|
@@ -142,12 +165,12 @@ print(f"Full Compact dataset downloaded to: {full_compact_path}")
|
|
| 142 |
# --- Option 2: Download the Standard PACT '25 splits ---
|
| 143 |
pact25_train_path = hf_hub_download(
|
| 144 |
repo_id=REPO_ID,
|
| 145 |
-
filename="data/pact25/
|
| 146 |
repo_type="dataset",
|
| 147 |
)
|
| 148 |
pact25_validation_path = hf_hub_download(
|
| 149 |
repo_id=REPO_ID,
|
| 150 |
-
filename="data/pact25/
|
| 151 |
repo_type="dataset",
|
| 152 |
)
|
| 153 |
print(f"PACT'25 train split downloaded to: {pact25_train_path}")
|
|
@@ -182,7 +205,7 @@ for i, program in enumerate(data_stream):
|
|
| 182 |
if i >= 3:
|
| 183 |
break
|
| 184 |
print(f"\n--- Program {i+1}: {program['program_name']} ---")
|
| 185 |
-
print(f" Initial time: {program['initial_execution_time']:.4f} ms")
|
| 186 |
print(f" Number of schedules: {len(program['schedules_list'])}")
|
| 187 |
```
|
| 188 |
|
|
@@ -212,15 +235,22 @@ for processed_count, program in enumerate(data_stream):
|
|
| 212 |
break
|
| 213 |
|
| 214 |
program_features = program['program_annotation']
|
| 215 |
-
initial_time = program['initial_execution_time']
|
|
|
|
|
|
|
| 216 |
|
| 217 |
for schedule in program['schedules_list']:
|
| 218 |
schedule_features = schedule # Or a subset of its fields
|
| 219 |
-
|
| 220 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
# Here we compute speedup over the un-optimized version
|
| 222 |
-
median_time = np.median(
|
| 223 |
-
|
| 224 |
speedup = initial_time / median_time
|
| 225 |
|
| 226 |
training_examples.append({
|
|
@@ -254,22 +284,23 @@ for processed_count, program in enumerate(data_stream):
|
|
| 254 |
break
|
| 255 |
|
| 256 |
program_name = program['program_name']
|
| 257 |
-
initial_time = program['initial_execution_time']
|
| 258 |
|
| 259 |
-
# Handle cases where the initial run might have failed
|
| 260 |
if initial_time is None:
|
| 261 |
-
print(f"\nProgram: {program_name} has no initial time. Skipping.")
|
| 262 |
continue
|
| 263 |
|
| 264 |
best_schedule_info = None
|
| 265 |
min_time = initial_time
|
| 266 |
|
| 267 |
for schedule in program['schedules_list']:
|
| 268 |
-
# Ensure
|
| 269 |
-
|
|
|
|
| 270 |
continue
|
| 271 |
-
|
| 272 |
-
current_time = np.median(
|
| 273 |
|
| 274 |
if current_time < min_time:
|
| 275 |
min_time = current_time
|
|
@@ -288,6 +319,29 @@ for processed_count, program in enumerate(data_stream):
|
|
| 288 |
```
|
| 289 |
|
| 290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
## Dataset Structure
|
| 292 |
|
| 293 |
|
|
@@ -312,7 +366,7 @@ Each row in the dataset represents a single synthetic program and contains all o
|
|
| 312 |
"buffers": { "...": "..." }
|
| 313 |
},
|
| 314 |
"Tiramisu_cpp": "// raw tiramisu generator source code ...",
|
| 315 |
-
"initial_execution_time": 1393.751,
|
| 316 |
"schedules_list": [
|
| 317 |
{
|
| 318 |
"transformations_list": [
|
|
@@ -324,7 +378,10 @@ Each row in the dataset represents a single synthetic program and contains all o
|
|
| 324 |
"ISL_AST": "..." ,
|
| 325 |
"Halide_IR": "// lowered Halide IR ...",
|
| 326 |
"Tiramisu_transform_commands": "comp01.tile(...); comp00.interchange(...); ...",
|
| 327 |
-
"execution_times":
|
|
|
|
|
|
|
|
|
|
| 328 |
},
|
| 329 |
{ /* ... another schedule object ... */ }
|
| 330 |
]
|
|
@@ -342,7 +399,7 @@ Each row in the dataset represents a single synthetic program and contains all o
|
|
| 342 |
`<program_name>_generator.cpp`.
|
| 343 |
* `program_annotation` (dict): A detailed, structured representation of the original, untransformed program. This serves as the primary source for program feature engineering.
|
| 344 |
* `Tiramisu_cpp` (string): Raw Tiramisu generator C++ source code of the program before any schedule transformations. **(Excluded in Compact version)**
|
| 345 |
-
* `initial_execution_time` (
|
| 346 |
* `schedules_list` (list of dicts): A list of all optimization sequences explored for this program. Each dictionary in the list details a unique schedule and its performance.
|
| 347 |
* `exploration_trace` (dict): Internal search logs. **(Excluded in Compact version)**.
|
| 348 |
|
|
@@ -367,7 +424,7 @@ This object contains all the static information about the source program.
|
|
| 367 |
|
| 368 |
Each element in this list represents one complete optimization schedule applied to the program.
|
| 369 |
|
| 370 |
-
* `execution_times` (
|
| 371 |
* `transformations_list` (list of dicts): A structured list where each element describes a specific transformation step (see format below).
|
| 372 |
* `schedule_str` (string): A human-readable summary string of the transformations applied in this schedule (see format below).
|
| 373 |
- `legacy_schedule_str` (string): Legacy schedule string found in older versions of the dataset. **(Excluded in Compact version)**.
|
|
@@ -410,7 +467,7 @@ Supported transformations:
|
|
| 410 |
|
| 411 |
## C++ Source Code Archive
|
| 412 |
|
| 413 |
-
This repository also includes a compressed archive containing the raw Tiramisu generator sources for all programs (`data/
|
| 414 |
|
| 415 |
* **Content:** Contains ~220,000 `.cpp` files.
|
| 416 |
* **Filename Format:** `<program_name>_generator.cpp` (e.g., `function12345_generator.cpp`).
|
|
@@ -438,7 +495,7 @@ with tarfile.open(source_code_path, "r:gz") as tar:
|
|
| 438 |
The data was generated using a three-stage pipeline:
|
| 439 |
1. **Synthetic Program Generation**: A randomized generator created a diverse corpus of polyhedral programs with varied loop structures, memory access patterns, and computational complexities.
|
| 440 |
2. **Transformation Space Sampling**: We used the beam search algorithm from the LOOPer autoscheduler to explore and sample meaningful optimization sequences for each program. This "relevance-guided" strategy ensures the dataset focuses on transformations a real-world compiler would consider.
|
| 441 |
-
3. **Performance Label Generation**: Each `(program, schedule)` pair was compiled with Tiramisu and executed on a dual-socket **Intel Xeon E5-2695 v2**
|
| 442 |
|
| 443 |
### Diversity Analysis
|
| 444 |
|
|
@@ -488,6 +545,13 @@ This dataset is licensed under the [Creative Commons Attribution 4.0 Internation
|
|
| 488 |
|
| 489 |
## Versioning / Changelog
|
| 490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 491 |
**v2.1 Minor bug fixes in annotations**
|
| 492 |
|
| 493 |
**v2.0 Schema Update & Compact Splits**
|
|
|
|
| 14 |
- config_name: full
|
| 15 |
data_files:
|
| 16 |
- split: train
|
| 17 |
+
path: "data/full/looperset_v3_full.jsonl.gz"
|
| 18 |
|
| 19 |
- config_name: full_compact
|
| 20 |
data_files:
|
| 21 |
- split: train
|
| 22 |
+
path: "data/full/looperset_v3_full_compact.jsonl.gz"
|
| 23 |
|
| 24 |
- config_name: pact25_split
|
| 25 |
data_files:
|
| 26 |
- split: train
|
| 27 |
+
path: "data/pact25/looperset_v3_pact_train.jsonl.gz"
|
| 28 |
- split: validation
|
| 29 |
+
path: "data/pact25/looperset_v3_pact_validation.jsonl.gz"
|
| 30 |
|
| 31 |
- config_name: pact25_split_compact
|
| 32 |
data_files:
|
| 33 |
- split: train
|
| 34 |
+
path: "data/pact25/looperset_v3_pact_train_compact.jsonl.gz"
|
| 35 |
- split: validation
|
| 36 |
+
path: "data/pact25/looperset_v3_pact_validation_compact.jsonl.gz"
|
| 37 |
---
|
| 38 |
|
| 39 |
# LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Optimization
|
|
|
|
| 55 |
|
| 56 |
`LOOPerSet` was originally created to train the cost model for the [LOOPer autoscheduler](https://ieeexplore.ieee.org/document/11282943) (PACT '25). For a full description of the generation process and a diversity analysis, please see our [companion paper on arXiv](https://arxiv.org/abs/2510.10209).
|
| 57 |
|
| 58 |
+
> **A living dataset.** `LOOPerSet` continues to grow over time — both with additional **hardware targets** (the same programs and schedules re-measured on new CPU/toolchain configurations) and with additional programs. Execution times are therefore keyed by a hardware **target ID**. This dataset card is the up-to-date reference for what each release contains; see [Changelog](#versioning--changelog).
|
| 59 |
+
|
| 60 |
An open-source implementation of that cost model is available at [**LOOPerCostModel**](https://github.com/Mascinissa/LOOPerCostModel). It trains directly on `LOOPerSet` and reproduces the results reported in the LOOPer paper, providing a ready-to-use baseline for performance prediction and schedule ranking on this dataset.
|
| 61 |
|
| 62 |
### What is inside?
|
|
|
|
| 64 |
* **Source Code & IR:** Raw Tiramisu (C++) generator code, lowered Halide IR, and ISL ASTs.
|
| 65 |
* **Structured Features:** JSON-based representation of the program structure (loop hierarchy, memory access patterns, arithmetic expressions) for feature engineering.
|
| 66 |
* **Optimization Schedules:** Sequences of code transformations (tiling, skewing, fusion, interchange, unrolling, parallelization, etc) and the specific API commands used to apply them.
|
| 67 |
+
* **Ground Truth:** Execution time (ms) measured over many runs on physical hardware, recorded per **hardware target** (see [Hardware Targets](#hardware-targets)).
|
| 68 |
|
| 69 |
### Key Research Tasks
|
| 70 |
By exposing both low-level source code and high-level structural features, the dataset can be used for several research applications in machine learning and compilers:
|
|
|
|
| 97 |
|
| 98 |
| Configuration | File Path | Compressed Size | Decompressed Size |
|
| 99 |
| :--- | :--- | :--- | :--- |
|
| 100 |
+
| **Full (Standard)** | `data/full/looperset_v3_full.jsonl.gz` | 8.2 GB | 91 GB |
|
| 101 |
+
| **Full (Compact)** | `data/full/looperset_v3_full_compact.jsonl.gz` | 5.2 GB | 28 GB |
|
| 102 |
+
| **PACT Train (Standard)** | `data/pact25/looperset_v3_pact_train.jsonl.gz` | 2.7 GB | 30 GB |
|
| 103 |
+
| **PACT Train (Compact)** | `data/pact25/looperset_v3_pact_train_compact.jsonl.gz` | 1.7 GB | 9.2 GB |
|
| 104 |
+
| **PACT Val (Standard)** | `data/pact25/looperset_v3_pact_validation.jsonl.gz` | 329 MB | 3.5 GB |
|
| 105 |
+
| **PACT Val (Compact)** | `data/pact25/looperset_v3_pact_validation_compact.jsonl.gz` | 209 MB | 1.1 GB |
|
| 106 |
+
| **Generators Source** | `data/source/looperset_v3_generators.tar.gz` | 34 MB | 339 MB |
|
| 107 |
+
|
| 108 |
+
## Hardware Targets
|
| 109 |
+
|
| 110 |
+
Every execution time in the dataset is recorded against a **hardware target**. The `execution_times` field (per schedule) and the `initial_execution_time` field (per program) are dictionaries keyed by the target IDs below.
|
| 111 |
+
|
| 112 |
+
| Target ID | CPU / microarch | Tiramisu commit |
|
| 113 |
+
|---|---|---|
|
| 114 |
+
| `xeon_e5_2695_v2` | Intel Xeon E5-2695 v2 (Ivy Bridge) | `eab1502` (LLVM 5.0.2, Halide `release_2017_10_30`) |
|
| 115 |
+
| `xeon_e5_2680_v4` | Intel Xeon E5-2680 v4 (Broadwell) | `041afad` (LLVM 13, Halide 14) |
|
| 116 |
+
|
| 117 |
+
> **A target ID denotes a hardware _and_ toolchain configuration**, not just a CPU. Re-measuring the same CPU under a different compiler/runtime stack would be published under a new, suffixed target ID rather than overwriting an existing one.
|
| 118 |
+
|
| 119 |
+
A target key is present for a given schedule or program **if and only if** that target has a measurement for it.
|
| 120 |
|
| 121 |
## How to Use
|
| 122 |
|
|
|
|
| 124 |
|
| 125 |
Below we provide a simple method to download the files and stream the data in Python.
|
| 126 |
|
| 127 |
+
**Selecting a hardware target.** Because timings are keyed by target ID (see [Hardware Targets](#hardware-targets)), the examples below read a single target through one variable. Set it once and every example follows:
|
| 128 |
+
|
| 129 |
+
```python
|
| 130 |
+
TARGET = "xeon_e5_2695_v2"
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
Access the measurements as `schedule['execution_times'][TARGET]` and `program['initial_execution_time'][TARGET]`. Not every target measured every schedule, so use `.get(TARGET)` when a target's coverage may be partial (e.g. Broadwell).
|
| 134 |
+
|
| 135 |
### Installation
|
| 136 |
|
| 137 |
|
|
|
|
| 156 |
# --- Option 1: Download the Full Compact (Recommended for Speed) ---
|
| 157 |
full_compact_path = hf_hub_download(
|
| 158 |
repo_id=REPO_ID,
|
| 159 |
+
filename="data/full/looperset_v3_full_compact.jsonl.gz",
|
| 160 |
repo_type="dataset",
|
| 161 |
)
|
| 162 |
print(f"Full Compact dataset downloaded to: {full_compact_path}")
|
|
|
|
| 165 |
# --- Option 2: Download the Standard PACT '25 splits ---
|
| 166 |
pact25_train_path = hf_hub_download(
|
| 167 |
repo_id=REPO_ID,
|
| 168 |
+
filename="data/pact25/looperset_v3_pact_train.jsonl.gz",
|
| 169 |
repo_type="dataset",
|
| 170 |
)
|
| 171 |
pact25_validation_path = hf_hub_download(
|
| 172 |
repo_id=REPO_ID,
|
| 173 |
+
filename="data/pact25/looperset_v3_pact_validation.jsonl.gz",
|
| 174 |
repo_type="dataset",
|
| 175 |
)
|
| 176 |
print(f"PACT'25 train split downloaded to: {pact25_train_path}")
|
|
|
|
| 205 |
if i >= 3:
|
| 206 |
break
|
| 207 |
print(f"\n--- Program {i+1}: {program['program_name']} ---")
|
| 208 |
+
print(f" Initial time ({TARGET}): {program['initial_execution_time'][TARGET]:.4f} ms")
|
| 209 |
print(f" Number of schedules: {len(program['schedules_list'])}")
|
| 210 |
```
|
| 211 |
|
|
|
|
| 235 |
break
|
| 236 |
|
| 237 |
program_features = program['program_annotation']
|
| 238 |
+
initial_time = program['initial_execution_time'].get(TARGET)
|
| 239 |
+
if initial_time is None:
|
| 240 |
+
continue # this target has no baseline measurement for this program
|
| 241 |
|
| 242 |
for schedule in program['schedules_list']:
|
| 243 |
schedule_features = schedule # Or a subset of its fields
|
| 244 |
+
|
| 245 |
+
# Skip schedules this target did not measure
|
| 246 |
+
times = schedule['execution_times'].get(TARGET)
|
| 247 |
+
if not times:
|
| 248 |
+
continue
|
| 249 |
+
|
| 250 |
+
# The label is the median of the (up to 30) execution times
|
| 251 |
# Here we compute speedup over the un-optimized version
|
| 252 |
+
median_time = np.median(times)
|
| 253 |
+
|
| 254 |
speedup = initial_time / median_time
|
| 255 |
|
| 256 |
training_examples.append({
|
|
|
|
| 284 |
break
|
| 285 |
|
| 286 |
program_name = program['program_name']
|
| 287 |
+
initial_time = program['initial_execution_time'].get(TARGET)
|
| 288 |
|
| 289 |
+
# Handle cases where the initial run might have failed / this target is missing
|
| 290 |
if initial_time is None:
|
| 291 |
+
print(f"\nProgram: {program_name} has no initial time for {TARGET}. Skipping.")
|
| 292 |
continue
|
| 293 |
|
| 294 |
best_schedule_info = None
|
| 295 |
min_time = initial_time
|
| 296 |
|
| 297 |
for schedule in program['schedules_list']:
|
| 298 |
+
# Ensure this target measured this schedule before calculating median
|
| 299 |
+
times = schedule['execution_times'].get(TARGET)
|
| 300 |
+
if not times:
|
| 301 |
continue
|
| 302 |
+
|
| 303 |
+
current_time = np.median(times)
|
| 304 |
|
| 305 |
if current_time < min_time:
|
| 306 |
min_time = current_time
|
|
|
|
| 319 |
```
|
| 320 |
|
| 321 |
|
| 322 |
+
### Example 3: Reading a Schedule Across Hardware Targets
|
| 323 |
+
Because `execution_times` is a dict keyed by target ID, you can read the same schedule's performance on every target it was measured on:
|
| 324 |
+
|
| 325 |
+
```python
|
| 326 |
+
import numpy as np
|
| 327 |
+
|
| 328 |
+
# (pact25_train_path is defined in the download step)
|
| 329 |
+
data_stream = stream_jsonl_gz(pact25_train_path)
|
| 330 |
+
program = next(data_stream)
|
| 331 |
+
|
| 332 |
+
# Pick an optimized schedule and compare it across all targets present
|
| 333 |
+
schedule = program['schedules_list'][10]
|
| 334 |
+
|
| 335 |
+
print(f"Program: {program['program_name']}")
|
| 336 |
+
for target_id, times in schedule['execution_times'].items():
|
| 337 |
+
print(f" {target_id}: median = {np.median(times):.4f} ms ({len(times)} runs)")
|
| 338 |
+
|
| 339 |
+
# Baseline (un-optimized) time is likewise available per target
|
| 340 |
+
for target_id, t in program['initial_execution_time'].items():
|
| 341 |
+
print(f" initial [{target_id}]: {t:.4f} ms")
|
| 342 |
+
```
|
| 343 |
+
|
| 344 |
+
|
| 345 |
## Dataset Structure
|
| 346 |
|
| 347 |
|
|
|
|
| 366 |
"buffers": { "...": "..." }
|
| 367 |
},
|
| 368 |
"Tiramisu_cpp": "// raw tiramisu generator source code ...",
|
| 369 |
+
"initial_execution_time": { "xeon_e5_2695_v2": 1393.751, "xeon_e5_2680_v4": 1201.4 },
|
| 370 |
"schedules_list": [
|
| 371 |
{
|
| 372 |
"transformations_list": [
|
|
|
|
| 378 |
"ISL_AST": "..." ,
|
| 379 |
"Halide_IR": "// lowered Halide IR ...",
|
| 380 |
"Tiramisu_transform_commands": "comp01.tile(...); comp00.interchange(...); ...",
|
| 381 |
+
"execution_times": {
|
| 382 |
+
"xeon_e5_2695_v2": [451.234, 465.112, 458.543, ...],
|
| 383 |
+
"xeon_e5_2680_v4": [388.4, 391.0, ...]
|
| 384 |
+
}
|
| 385 |
},
|
| 386 |
{ /* ... another schedule object ... */ }
|
| 387 |
]
|
|
|
|
| 399 |
`<program_name>_generator.cpp`.
|
| 400 |
* `program_annotation` (dict): A detailed, structured representation of the original, untransformed program. This serves as the primary source for program feature engineering.
|
| 401 |
* `Tiramisu_cpp` (string): Raw Tiramisu generator C++ source code of the program before any schedule transformations. **(Excluded in Compact version)**
|
| 402 |
+
* `initial_execution_time` (dict): Maps each hardware **target ID** to the program's baseline execution time (in ms) before any optimizations. A target key is present only if that target has a baseline measurement for the program, e.g. `{"xeon_e5_2695_v2": 1393.751, "xeon_e5_2680_v4": 1201.4}`.
|
| 403 |
* `schedules_list` (list of dicts): A list of all optimization sequences explored for this program. Each dictionary in the list details a unique schedule and its performance.
|
| 404 |
* `exploration_trace` (dict): Internal search logs. **(Excluded in Compact version)**.
|
| 405 |
|
|
|
|
| 424 |
|
| 425 |
Each element in this list represents one complete optimization schedule applied to the program.
|
| 426 |
|
| 427 |
+
* `execution_times` (dict): Maps each hardware **target ID** to a list of up to 30 raw execution time measurements (in ms) for this schedule on that target. A target key is present only if that target measured this schedule. The ground-truth label for ML models is typically derived from a single target's list (e.g., by taking the median).
|
| 428 |
* `transformations_list` (list of dicts): A structured list where each element describes a specific transformation step (see format below).
|
| 429 |
* `schedule_str` (string): A human-readable summary string of the transformations applied in this schedule (see format below).
|
| 430 |
- `legacy_schedule_str` (string): Legacy schedule string found in older versions of the dataset. **(Excluded in Compact version)**.
|
|
|
|
| 467 |
|
| 468 |
## C++ Source Code Archive
|
| 469 |
|
| 470 |
+
This repository also includes a compressed archive containing the raw Tiramisu generator sources for all programs (`data/source/looperset_v3_generators.tar.gz`). These are provided to enable researchers to perform static program analysis, reproduce results by re-executing schedules on different hardware architectures, or extend the dataset by collecting completely new schedules.
|
| 471 |
|
| 472 |
* **Content:** Contains ~220,000 `.cpp` files.
|
| 473 |
* **Filename Format:** `<program_name>_generator.cpp` (e.g., `function12345_generator.cpp`).
|
|
|
|
| 495 |
The data was generated using a three-stage pipeline:
|
| 496 |
1. **Synthetic Program Generation**: A randomized generator created a diverse corpus of polyhedral programs with varied loop structures, memory access patterns, and computational complexities.
|
| 497 |
2. **Transformation Space Sampling**: We used the beam search algorithm from the LOOPer autoscheduler to explore and sample meaningful optimization sequences for each program. This "relevance-guided" strategy ensures the dataset focuses on transformations a real-world compiler would consider.
|
| 498 |
+
3. **Performance Label Generation**: Each `(program, schedule)` pair was compiled with Tiramisu and executed on physical hardware, running each version up to 30 times to collect a stable distribution of execution times. Labels were originally collected on a dual-socket **Intel Xeon E5-2695 v2** (Ivy Bridge) system and have since been extended to additional **hardware targets** — currently also an **Intel Xeon E5-2680 v4** (Broadwell) — by re-measuring the same programs and schedules under each target's CPU/toolchain configuration.
|
| 499 |
|
| 500 |
### Diversity Analysis
|
| 501 |
|
|
|
|
| 545 |
|
| 546 |
## Versioning / Changelog
|
| 547 |
|
| 548 |
+
This card always documents the current release. `LOOPerSet` is a living dataset: expect future releases to add more hardware targets and more programs.
|
| 549 |
+
|
| 550 |
+
**v3.0 — Multi-Target Schema & Broadwell Measurements (CGO '27 release)**
|
| 551 |
+
* **Multi-Target Schema (breaking):** `execution_times` (per schedule) and `initial_execution_time` (per program) are now **dictionaries keyed by a hardware target ID** instead of a bare list/float, respectively. This is a breaking, major-version change. See [Hardware Targets](#hardware-targets).
|
| 552 |
+
* **New Hardware Target — Broadwell:** Added Intel Xeon E5-2680 v4 (`xeon_e5_2680_v4`) execution-time measurements for the overlapping (program, schedule) pairs already present in the corpus, alongside the existing Ivy Bridge (`xeon_e5_2695_v2`) timings. A target key is present only where that target has a measurement; Broadwell coverage is high but partial.
|
| 553 |
+
* **File Renaming:** Data files renamed `looperset_v2_* → looperset_v3_*` to reflect the major-version bump; all download examples, configs, and the file-size table are updated accordingly.
|
| 554 |
+
|
| 555 |
**v2.1 Minor bug fixes in annotations**
|
| 556 |
|
| 557 |
**v2.0 Schema Update & Compact Splits**
|
data/full/{looperset_v2_full.jsonl.gz → looperset_v3_full.jsonl.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f7c11eaa8fcc583dbc238770458d2194de784de5698db915de09b775244cdba
|
| 3 |
+
size 8829432797
|
data/full/{looperset_v2_full_compact.jsonl.gz → looperset_v3_full_compact.jsonl.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43c497378e271bbe3206347050a0a2421c303c7f211ef220f382684e1eb7862a
|
| 3 |
+
size 5587504727
|
data/pact25/{looperset_v2_pact_train.jsonl.gz → looperset_v3_pact_train.jsonl.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffab4253fcf6b806b590df54e0f507e07fde2ba65210857b27dea66be1227b32
|
| 3 |
+
size 2936055922
|
data/pact25/{looperset_v2_pact_train_compact.jsonl.gz → looperset_v3_pact_train_compact.jsonl.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d7aee782c29202dfcb8457424f5e77f0790efab3f572427b4f0165a855d1479
|
| 3 |
+
size 1858183368
|
data/pact25/{looperset_v2_pact_validation.jsonl.gz → looperset_v3_pact_validation.jsonl.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:deb75ea538aa6ebd5dd27f2c87f3ada6d5c5a3d00d27eb4b02b8a6cf52c998fd
|
| 3 |
+
size 344679210
|
data/pact25/{looperset_v2_pact_validation_compact.jsonl.gz → looperset_v3_pact_validation_compact.jsonl.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7deb6ad0db6563e5ddf78b73a22909ede767c5e5c616a0421b3947857302237d
|
| 3 |
+
size 218665129
|
data/source/{looperset_v2_generators.tar.gz → looperset_v3_generators.tar.gz}
RENAMED
|
File without changes
|