interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / evidence / deepinfer-flops-pairs / run.log

78 lines · 7774 bytes Raw Blame History
1INFO DeepInfer 553741557a57df44a46fb3ab72b6aafeaf945337 csrc/engine/flops_estimator.hpp sha256 89fbefa41ef0f1ee79be19bb92700d446de38c3781d18227bb0044eb20e7b4f2; lines 237-257 sha256 95b16b3dafffb46ac3a3f57f41d9d296436f905e6d0ce9814e9a5ace8cb1c611
2INFO omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61; OM-2 compiler sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f; flops_pairs.om sha256 95965d57d441cc3d2a78b666e2eb52beac0b0bd97893dcc1564c9f39cec4a55f
3INFO g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
4PASS tools/native: flops_pairs.om (OM-2) -> libomega_native.so sha256 1226e74bdad044415a9d30ef887145f20f07348cbe95710bfc8aa560fe63a0c5 and six bindings
5INFO omega-ident 1 unit=flops_pairs abi=2 profile=OM-2 src=95965d57d441cc3d2a78b666e2eb52beac0b0bd97893dcc1564c9f39cec4a55f omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
6PASS C++ grid (upstream = Omega = enumeration)
7 GRID floor_prefix cases=12040 mismatches=0
8 GRID capped_prefix cases=493640 mismatches=0
9 GRID pairs cases=74539640 mismatches=0
10PASS C++ random (upstream = Omega = step model = second closed form; overflow -> trap 1)
11 RANDOM seed=20261031 floor_prefix defined=198088 overflow=135246 mismatches=0
12 RANDOM seed=20261031 capped_prefix defined=112770 overflow=220563 mismatches=0
13 RANDOM seed=20261031 pairs defined=131671 overflow=201662 mismatches=0
14 BOUNDARY ok fp 3037000499 1 | want 4611686016981624750 | omega: status 0 value 4611686016981624750 kept 1 | upstream: value 4611686016981624750
15 BOUNDARY ok fp 3037000500 1 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 3037000500 * 3037000501 cannot be represented in type 'long int'
16 BOUNDARY ok fp 9223372036854775807 1 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'
17 BOUNDARY ok fp 9223372036854775807 9223372036854775807 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 9223372036854775807 * 2 cannot be represented in type 'long int'
18 BOUNDARY ok fp 0 9223372036854775807 | want 0 | omega: status 0 value 0 kept 1 | upstream: value 0
19 BOUNDARY ok fp 9 2 | want 20 | omega: status 0 value 20 kept 1 | upstream: value 20
20 BOUNDARY ok cp 4611686018427387904 1 2 | want 9223372036854775807 | omega: status 0 value 9223372036854775807 kept 1 | upstream: value 9223372036854775807
21 BOUNDARY ok cp 4611686018427387905 1 2 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 9223372036854775806 + 3 cannot be represented in type 'long int'
22 BOUNDARY ok cp 0 4294967296 2147483648 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 4294967296 * 2147483648 cannot be represented in type 'long int'
23 BOUNDARY ok cp 5 4294967296 2147483647 | want 0 | omega: status 0 value 0 kept 1 | upstream: value 0
24 BOUNDARY ok cp 9223372036854775807 1 1 | want 9223372036854775807 | omega: status 0 value 9223372036854775807 kept 1 | upstream: value 9223372036854775807
25 BOUNDARY ok cp 9 2 3 | want 18 | omega: status 0 value 18 kept 1 | upstream: value 18
26 BOUNDARY ok pairs 0 3037000499 1 0 | want 4611686016981624750 | omega: status 0 value 4611686016981624750 kept 1 | upstream: value 4611686016981624750
27 BOUNDARY ok pairs 0 3037000500 1 0 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 3037000500 * 3037000501 cannot be represented in type 'long int'
28 BOUNDARY ok pairs 3037000499 3037000499 1 0 | want 0 | omega: status 0 value 0 kept 1 | upstream: value 0
29 BOUNDARY ok pairs 0 9223372036854775807 1 1 | want 9223372036854775807 | omega: status 0 value 9223372036854775807 kept 1 | upstream: value 9223372036854775807
30 BOUNDARY ok pairs 1 4611686018427387905 1 2 | want ovf | omega: status 1 value 0 kept 1 | upstream: runtime error: signed integer overflow: 9223372036854775806 + 3 cannot be represented in type 'long int'
31 BOUNDARY ok pairs 3 9 2 3 | want 16 | omega: status 0 value 16 kept 1 | upstream: value 16
32 BOUNDARY ok pairs 0 4096 1 512 | want 1966336 | omega: status 0 value 1966336 kept 1 | upstream: value 1966336
33 BOUNDARY ok fp -1 1 | want dom | omega: status 9 value 0 kept 1 | upstream: value 0
34 BOUNDARY ok fp 5 0 | want dom | omega: status 9 value 0 kept 1 | upstream: runtime error: division by zero
35 BOUNDARY ok fp 5 -1 | want dom | omega: status 9 value 0 kept 1 | upstream: value -20
36 BOUNDARY ok fp -9223372036854775808 -1 | want dom | omega: status 9 value 0 kept 1 | upstream: runtime error: division of -9223372036854775808 by -1 cannot be represented in type 'long int'
37 BOUNDARY ok cp -1 1 1 | want dom | omega: status 9 value 0 kept 1 | upstream: value 0
38 BOUNDARY ok cp 5 0 3 | want dom | omega: status 9 value 0 kept 1 | upstream: runtime error: division by zero
39 BOUNDARY ok cp 5 1 -1 | want dom | omega: status 9 value 0 kept 1 | upstream: value -6
40 BOUNDARY ok pairs -1 3 1 0 | want dom | omega: status 9 value 0 kept 1 | upstream: value 6
41 BOUNDARY ok pairs 5 3 1 0 | want dom | omega: status 9 value 0 kept 1 | upstream: value -9
42 BOUNDARY ok pairs 0 3 0 0 | want dom | omega: status 9 value 0 kept 1 | upstream: runtime error: division by zero
43 BOUNDARY ok pairs 0 3 1 -1 | want dom | omega: status 9 value 0 kept 1 | upstream: value -3
44PASS boundary: 30 cases (values equal; ovf: Omega trap 1 and UBSan signed integer overflow; dom: Omega trap 9)
45PASS Python binding differential
46 PY-IDENT omega-ident 1 unit=flops_pairs abi=2 profile=OM-2 src=95965d57d441cc3d2a78b666e2eb52beac0b0bd97893dcc1564c9f39cec4a55f omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
47 PY-GRID floor_prefix n 0..300 ratio 1..40 cases=12040; capped_prefix cap 0..40 cases=493640; pairs begin<=end 0..300 cases=74539640; mismatches=0
48 PY-RANDOM seed=20261031 defined=88464 overflow=111536 mismatches=0
49 PY-BOUNDARY cases=30 mismatches=0
50 PY-TOTAL mismatches=0
51PASS flops_estimator-omega.patch applies to the pinned header (patched sha256 9bb948f30bd984c1adb6afb7fe624c05c1fbf9fbfd7c12239f39617fce5d2b75)
52INFO extracted regions: 15+42 original lines, 15+53 patched lines
53PASS patched header = original on PairTerm::count and query_ranges; Omega traps reach TORCH_CHECK
54 PATCH PairTerm::count cases=47625600 mismatches=0
55 PATCH query_ranges cases=14473800 refused-by-TORCH_CHECK=2215800 mismatches=0
56 PATCH trap pairs(5, 3, 1, 0) -> "pairs: Omega trap 9"
57 PATCH trap pairs(0, 3, 1, -1) -> "pairs: Omega trap 9"
58 PATCH trap floor_prefix(5, 0) -> "floor_prefix: Omega trap 9"
59 PATCH trap floor_prefix(3037000500, 1) -> "floor_prefix: Omega trap 1"
60 PATCH trap capped_prefix(0, 4294967296, 2147483648) -> "capped_prefix: Omega trap 1"
61 PATCH traps cases=5 mismatches=0
62 PATCH total mismatches=0
63PASS whole original header compiles against torch headers (~/.venv/lib/python3.12/site-packages/torch/include)
64PASS whole patched header compiles against torch headers (~/.venv/lib/python3.12/site-packages/torch/include)
65PASS mutant M1 caught: grid mismatches=56293075 boundary failures=11 patch-harness mismatches=39773816
66PASS mutant M2 caught: grid mismatches=72607516 boundary failures=7 patch-harness mismatches=NOT_RUN
67PASS mutant M3 caught: grid mismatches=0 boundary failures=2 patch-harness mismatches=NOT_RUN
68PASS no caller declares an Omega function by hand
69PASS c caller (16 checks)
70PASS c-bti caller (16 checks)
71PASS cpp caller (16 checks)
72PASS python caller (17 checks)
73PASS rust caller (16 checks)
74PASS zig caller (16 checks)
75PASS go caller (16 checks)
76NATIVE-CALL PASS (c c-bti cpp python rust zig go)
77RESULT failures=0 NOT_RUN: none
78DEEPINFER-FLOPS PASS