Skip to content

Commit c84960c

Browse files
author
Antigravity Agent
committed
fix: add real GF16 implementation with actual code
- Add src/gf16.zig with full GF16 implementation - Add src/formats.zig with fp16/bf16/GF16 conversions - Add src/mnist_loader.zig for MNIST data loading - Add src/bench_mnist.zig for actual benchmarking - Add build.zig for build system - Add tests/real_benchmarks.zig with real tests - Remove fake tests/whitepaper_results.zig - Fix GF16.isInf() bug - infinity encoding now works correctly - All tests passing
1 parent 0445405 commit c84960c

7 files changed

Lines changed: 1499 additions & 189 deletions

File tree

build.zig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const std = @import("std");
2+
3+
pub fn build(b: *std.Build) void {
4+
const target = b.standardTargetOptions(.{});
5+
const optimize = b.standardOptimizeOption(.{});
6+
7+
// Tests
8+
const tests = b.addTest(.{
9+
.root_source_file = .{ .cwd_relative = "src/gf16.zig" },
10+
.target = target,
11+
.optimize = optimize,
12+
});
13+
14+
const run_tests = b.addRunArtifact(tests);
15+
const test_step = b.step("test", "Run library tests");
16+
test_step.dependOn(&run_tests.step);
17+
}

0 commit comments

Comments
 (0)