Skip to content

Commit 21e3ba2

Browse files
committed
feat: mindc 0.2.3 — remove XRM/ASIC, add use keyword parser
Breaking: removed XRM-SSD ASIC target dialect (not part of MIND core) - Deleted src/mlir/asic_target.rs (355 lines) - Deleted examples/xrm_inference.mind - Removed BackendTarget::Asic variant - Removed "asic" | "xrm" CLI parser branch Parser: added `use` keyword as alias for `import` - parse_use() handles `use module.path` syntax - Enables MIND modules to use standard `use` declarations - Required for multi-module projects (fim-onsager-experiment) Tests: 5 passed, 0 failed. Criterion: zero regression.
1 parent 8bb30bb commit 21e3ba2

File tree

10 files changed

+59
-591
lines changed

10 files changed

+59
-591
lines changed

ANATOMY.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
> Re-generate with: `anatomy .`
66
77
**Project:** `mind`
8-
**Files:** 332 | **Est. tokens:** ~432,162
9-
**Generated:** 2026-04-02 04:39 UTC
8+
**Files:** 330 | **Est. tokens:** ~427,489
9+
**Generated:** 2026-04-11 04:00 UTC
1010

1111
## Token Budget Guide
1212

@@ -39,7 +39,7 @@
3939
| `docs/design/` | 2 | ~136 |
4040
| `docs/rfcs/` | 4 | ~1,081 |
4141
| `docs/specs/` | 2 | ~976 |
42-
| `examples/` | 15 | ~33,738 |
42+
| `examples/` | 14 | ~31,974 |
4343
| `examples/c/` | 2 | ~400 |
4444
| `examples/compliance/` | 3 | ~5,294 |
4545
| `examples/zoo/` | 6 | ~12,885 |
@@ -52,7 +52,7 @@
5252
| `src/` | 7 | ~14,732 |
5353
| `src/ast/` | 1 | ~1,784 |
5454
| `src/autodiff/` | 3 | ~4,159 |
55-
| `src/bin/` | 2 | ~10,471 |
55+
| `src/bin/` | 2 | ~10,458 |
5656
| `src/diagnostics/` | 1 | ~2,230 |
5757
| `src/eval/` | 12 | ~51,907 |
5858
| `src/eval/stdlib/` | 2 | ~8,515 |
@@ -61,13 +61,13 @@
6161
| `src/ir/` | 3 | ~5,639 |
6262
| `src/ir/compact/` | 3 | ~13,890 |
6363
| `src/ir/compact/v2/` | 6 | ~15,796 |
64-
| `src/mlir/` | 3 | ~7,361 |
64+
| `src/mlir/` | 2 | ~4,330 |
6565
| `src/ops/` | 2 | ~2,047 |
66-
| `src/opt/` | 4 | ~6,479 |
66+
| `src/opt/` | 4 | ~6,469 |
6767
| `src/package/` | 2 | ~1,668 |
68-
| `src/parser/` | 1 | ~13,957 |
68+
| `src/parser/` | 1 | ~14,135 |
6969
| `src/project/` | 1 | ~9,268 |
70-
| `src/runtime/` | 3 | ~1,001 |
70+
| `src/runtime/` | 3 | ~968 |
7171
| `src/shapes/` | 2 | ~6,051 |
7272
| `src/stdlib/` | 2 | ~560 |
7373
| `src/type_checker/` | 1 | ~14,918 |
@@ -282,7 +282,6 @@
282282
- `remizov_solver.mind` (~3699 tok, huge) — Copyright 2025-2026 STARGA Inc.
283283
- `remizov_verify.mind` (~3618 tok, huge) — Copyright 2025-2026 STARGA Inc.
284284
- `tiny_edge_model.mind` (~1900 tok, huge) — Tiny Edge Model Example
285-
- `xrm_inference.mind` (~1764 tok, huge) — XRM Inference Test — real-number verification of cognitive kernels
286285
### `examples/zoo/`
287286

288287
- `conv_classifier.mind` (~2518 tok, huge) — CNN Classifier — MIND Model Zoo
@@ -334,7 +333,7 @@
334333
### `src/bin/`
335334

336335
- `mind-ai.rs` (~6045 tok, huge) — Copyright 2025 STARGA Inc.
337-
- `mindc.rs` (~4426 tok, huge) — Copyright 2025 STARGA Inc.
336+
- `mindc.rs` (~4413 tok, huge) — Copyright 2025 STARGA Inc.
338337
### `src/`
339338

340339
- `conformance.rs` (~1871 tok, huge)
@@ -396,9 +395,8 @@
396395
- `main.rs` (~6501 tok, huge) — Copyright 2025 STARGA Inc.
397396
### `src/mlir/`
398397

399-
- `asic_target.rs` (~3010 tok, huge) — Copyright 2025-2026 STARGA Inc.
400398
- `lowering.rs` (~4060 tok, huge) — Copyright 2025 STARGA Inc.
401-
- `mod.rs` (~291 tok, medium) — Copyright 2025 STARGA Inc.
399+
- `mod.rs` (~270 tok, medium) — Copyright 2025 STARGA Inc.
402400
### `src/ops/`
403401

404402
- `core_v1.rs` (~1823 tok, huge) — Copyright 2025 STARGA Inc.
@@ -407,15 +405,15 @@
407405

408406
- `fold.rs` (~824 tok, large) — Copyright 2025 STARGA Inc.
409407
- `ir_canonical.rs` (~1415 tok, large) — Copyright 2025 STARGA Inc.
410-
- `memory_layout.rs` (~4060 tok, huge) — Copyright 2025-2026 STARGA Inc.
408+
- `memory_layout.rs` (~4050 tok, huge) — Copyright 2025-2026 STARGA Inc.
411409
- `mod.rs` (~180 tok, small) — Copyright 2025 STARGA Inc.
412410
### `src/package/`
413411

414412
- `manifest.rs` (~310 tok, medium) — Copyright 2025 STARGA Inc.
415413
- `mod.rs` (~1358 tok, large) — Copyright 2025 STARGA Inc.
416414
### `src/parser/`
417415

418-
- `mod.rs` (~13957 tok, huge) — Copyright 2025 STARGA Inc.
416+
- `mod.rs` (~14135 tok, huge) — Copyright 2025 STARGA Inc.
419417
### `src/`
420418

421419
- `pipeline.rs` (~1853 tok, huge) — Copyright 2025 STARGA Inc.
@@ -434,7 +432,7 @@
434432
### `src/runtime/`
435433

436434
- `mod.rs` (~92 tok, small) — Runtime abstractions for execution backends.
437-
- `types.rs` (~621 tok, large) — Shared runtime surface types for execution backends.
435+
- `types.rs` (~588 tok, large) — Shared runtime surface types for execution backends.
438436
### `src/shapes/`
439437

440438
- `engine.rs` (~1882 tok, huge) — A rank-N tensor shape represented as a list of extents.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mind"
3-
version = "0.2.1"
3+
version = "0.2.3"
44
edition = "2021"
55
rust-version = "1.82"
66
authors = ["STARGA Inc."]
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
{
22
"system_info": {
3-
"platform": "Linux-6.17.0-14-generic-x86_64-with-glibc2.39",
3+
"platform": "Linux-6.17.0-19-generic-x86_64-with-glibc2.39",
44
"python_version": "3.12.3",
5-
"pytorch_version": "2.10.0+cu128",
5+
"pytorch_version": "2.11.0+cu126",
66
"cpu": "x86_64",
77
"cuda_available": true,
8-
"cuda_version": "12.8",
8+
"cuda_version": "12.6",
99
"gpu": "NVIDIA GeForce RTX 3080"
1010
},
1111
"benchmarks": {
1212
"large_matmul_4096": {
1313
"pytorch": {
14-
"latency_mean_us": 135.3842081152834,
15-
"latency_stdev_us": 42.942990440874205,
16-
"latency_min_us": 120.7859895657748,
17-
"latency_max_us": 364.03900594450533,
18-
"throughput_samples_per_sec": 7386.385856380475,
14+
"latency_mean_us": 127.97151342965662,
15+
"latency_stdev_us": 7.563694781582514,
16+
"latency_min_us": 120.82199100404978,
17+
"latency_max_us": 154.23703007400036,
18+
"throughput_samples_per_sec": 7814.239069304123,
1919
"batch_size": 1
2020
},
2121
"mind": {
2222
"latency_mean_us": 80000.0,
2323
"throughput_samples_per_sec": 12.5
2424
},
25-
"latency_speedup": 0.0016923026014410425,
26-
"throughput_advantage": 0.0016923026014410425
25+
"latency_speedup": 0.0015996439178707078,
26+
"throughput_advantage": 0.0015996439178707076
2727
},
2828
"mlp_batch32": {
2929
"pytorch": {
30-
"latency_mean_us": 182.9913823166862,
31-
"latency_stdev_us": 42.8112071096602,
32-
"latency_min_us": 161.73897893168032,
33-
"latency_max_us": 362.97200131230056,
34-
"throughput_samples_per_sec": 174871.62288670277,
30+
"latency_mean_us": 181.99977406766266,
31+
"latency_stdev_us": 32.01634240033862,
32+
"latency_min_us": 168.96100714802742,
33+
"latency_max_us": 315.5280137434602,
34+
"throughput_samples_per_sec": 175824.39409019955,
3535
"batch_size": 32
3636
},
3737
"mind": {
3838
"latency_mean_us": 1200.0,
3939
"throughput_samples_per_sec": 26666.666666666668
4040
},
41-
"latency_speedup": 0.1524928185972385,
42-
"throughput_advantage": 0.1524928185972385
41+
"latency_speedup": 0.1516664783897189,
42+
"throughput_advantage": 0.1516664783897189
4343
},
4444
"conv2d_inference": {
4545
"pytorch": {
46-
"latency_mean_us": 333.60577013809234,
47-
"latency_stdev_us": 54.44390556596796,
48-
"latency_min_us": 291.6759985964745,
49-
"latency_max_us": 508.2639981992543,
50-
"throughput_samples_per_sec": 23980.40056887652,
46+
"latency_mean_us": 310.3324136463925,
47+
"latency_stdev_us": 48.69665704083,
48+
"latency_min_us": 288.3190172724426,
49+
"latency_max_us": 515.4100363142788,
50+
"throughput_samples_per_sec": 25778.808942322023,
5151
"batch_size": 8
5252
},
5353
"mind": {
5454
"latency_mean_us": 5000.0,
5555
"throughput_samples_per_sec": 1600.0
5656
},
57-
"latency_speedup": 0.06672115402761847,
58-
"throughput_advantage": 0.06672115402761847
57+
"latency_speedup": 0.062066482729278505,
58+
"throughput_advantage": 0.0620664827292785
5959
}
6060
}
6161
}

examples/xrm_inference.mind

Lines changed: 0 additions & 189 deletions
This file was deleted.

src/bin/mindc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ fn parse_target(raw: &str) -> Result<BackendTarget, String> {
502502
match raw.to_ascii_lowercase().as_str() {
503503
"cpu" => Ok(BackendTarget::Cpu),
504504
"gpu" | "cuda" | "rocm" | "metal" | "webgpu" => Ok(BackendTarget::Gpu),
505-
"asic" | "xrm" => Ok(BackendTarget::Asic),
506505
"tpu" => Ok(BackendTarget::Tpu),
507506
"npu" | "ane" | "hexagon" => Ok(BackendTarget::Npu),
508507
"lpu" | "groq" => Ok(BackendTarget::Lpu),

0 commit comments

Comments
 (0)