interplane.Get Omega
Read in your language

omega-helix

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

omega-helix / native / lpool.om

48 lines · 891 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2note omegallm lpool.om: dynamic om2 bank-B pools for hosted targets (gb10, aarch64, macos, x86linux).
3note Grows on demand via `enlarge` up to 500M+ parameters (e.g. Spiral-2048 D<=2048, L_phys=8 x NP=4 = 32L).
4const OWWN ulong 500000000
5global oww f64 *
6const OGBN ulong 500000000
7global ogb f64 *
8const OABN ulong 300000000
9global oab f64 *
10const OPABN ulong 150000000
11global opab f64 *
12global olp_sz ulong 4
13
14fn olp_grow w ulong g ulong a ulong to bool
15if gt w get olp_sz 0
16r = enlarge oww w
17if ne r 0
18ret false
19end
20put olp_sz 0 w
21end
22if gt g get olp_sz 1
23r = enlarge ogb g
24if ne r 0
25ret false
26end
27put olp_sz 1 g
28end
29if gt a get olp_sz 2
30r = enlarge oab a
31if ne r 0
32ret false
33end
34put olp_sz 2 a
35end
36ret true
37end
38
39fn olp_grow_pa pa ulong to bool
40if gt pa get olp_sz 3
41r = enlarge opab pa
42if ne r 0
43ret false
44end
45put olp_sz 3 pa
46end
47ret true
48end