Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/benchmarks-mv/blob/main/native/queueflow/evidence/wolfram/fix-dev.call.wl # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `benchmarks-mv / native / queueflow / evidence / wolfram / fix-dev.call.wl` 80 lines ยท 13318 bytes Raw Blame History 1 qfLines[rows_, d0_] := Module[ 2 {n = Length[rows], a, s, e, l, c, v, o, held, el, sv, ac, d, an = 0, f, rc, nr = 0, p, ar, gp, g, sq, 3 svc, drop, acc, fcfs, elig, arms, names = {"A", "B", "Cr", "Ch", "C"}, cfg, line, met, K, 4 kl, cmp, ovl, mq, w, nm}, 5 a = rows[[All, 1]]; s = rows[[All, 2]]; e = rows[[All, 3]]; l = rows[[All, 4]]; 6 c = rows[[All, 7]]; v = rows[[All, 8]]; o = rows[[All, 9]]; 7 held = Map[# > 0 &, s]; 8 el = ConstantArray[0, n]; sv = ConstantArray[0, n]; ac = ConstantArray[0, n]; 9 ar = ConstantArray[0, n]; gp = ConstantArray[0, n]; sq = ConstantArray[0, n]; 10 d = d0; 11 Do[g = a[[i]] - d; ar[[i]] = a[[i]]; 12 If[d > 0 && 0 <= g <= 3, gp[[i]] = g; 13 If[i > 1, ar[[i]] = ar[[i - 1]]; If[o[[i]] == o[[i - 1]], sq[[i]] = 1]]]; 14 f = Max[a[[i]], d]; 15 If[held[[i]], 16 If[s[[i]] < f, an++]; el[[i]] = If[s[[i]] > f, s[[i]], ar[[i]]]; 17 sv[[i]] = e[[i]] - s[[i]]; If[e[[i]] < s[[i]], an++]; 18 ac[[i]] = Boole[c[[i]] == 0 && v[[i]] != 1]; d = e[[i]], 19 el[[i]] = ar[[i]]; sv[[i]] = 0; ac[[i]] = 0; If[e[[i]] > f, d = e[[i]]]], {i, n}]; 20 rc = ConstantArray[0, n]; 21 Do[p = SelectFirst[Range[i - 1, 1, -1], o[[#]] == o[[i]] &, 0]; 22 If[p > 0 && ac[[p]] == 0 && 0 <= a[[i]] - e[[p]] <= 3600, rc[[i]] = rc[[p]] + 1; nr++], 23 {i, n}]; 24 svc[i_, cap_] := If[cap == 1 && l[[i]] > 0 && sv[[i]] > l[[i]], l[[i]], sv[[i]]]; 25 drop[i_, r_] := r == 1 && rc[[i]] > 1; 26 acc[i_, cap_, r_] := Boole[ac[[i]] == 1 && ! drop[i, r] && ! (cap == 1 && l[[i]] > 0 && sv[[i]] > l[[i]])]; 27 fcfs[cap_, r_] := Module[{dd = d0, h = 0, xs = ConstantArray[0, n], xd = ConstantArray[0, n], 28 xv = ConstantArray[0, n], xa = ConstantArray[0, n], ff, st, t}, 29 Do[If[drop[i, r], xd[[i]] = a[[i]], 30 ff = Max[ar[[i]], dd + gp[[i]]]; 31 If[held[[i]], 32 st = Max[ff, el[[i]]]; h += st - ff; t = st + svc[i, cap]; 33 xs[[i]] = st; xd[[i]] = t; xv[[i]] = 1; xa[[i]] = acc[i, cap, r]; dd = t, 34 If[e[[i]] > ff, h += e[[i]] - ff; dd = e[[i]]]; xd[[i]] = e[[i]]]], {i, n}]; 35 {xs, xd, xv, xa, h}]; 36 elig[cap_, r_] := Module[{t = d0, xs = ConstantArray[0, n], xd = ConstantArray[0, n], 37 xv = ConstantArray[0, n], xa = ConstantArray[0, n], pend, ct, b}, 38 Do[Which[drop[i, r], xd[[i]] = a[[i]], held[[i]], xv[[i]] = -1, True, xd[[i]] = e[[i]]], {i, n}]; 39 While[(pend = Flatten[Position[xv, -1]]) =!= {}, 40 ct = Map[Function[j, If[sq[[j]] == 1, 41 If[xv[[j - 1]] == -1, Infinity, Max[t, ar[[j]], el[[j]], xd[[j - 1]] + gp[[j]]]], 42 Max[t, ar[[j]], el[[j]]]]], pend]; 43 b = pend[[First[Flatten[Position[ct, Min[ct]]]]]]; 44 xs[[b]] = Min[ct]; xd[[b]] = xs[[b]] + svc[b, cap]; xv[[b]] = 1; xa[[b]] = acc[b, cap, r]; 45 t = xd[[b]]]; 46 {xs, xd, xv, xa, 0}]; 47 cfg = {{0, 0, False}, {1, 0, False}, {1, 1, False}, {1, 0, True}, {1, 1, True}}; 48 arms = Map[If[#[[3]], elig[#[[1]], #[[2]]], fcfs[#[[1]], #[[2]]]] &, cfg]; 49 ovl[x_] := Module[{srv = Flatten[Position[x[[3]], 1]]}, 50 Count[Subsets[srv, {2}], {i_, j_} /; x[[1, i]] < x[[2, j]] && x[[1, j]] < x[[2, i]]]]; 51 mq[x_] := Max[Table[Count[Range[n], j_ /; ar[[j]] <= ar[[i]] && ar[[i]] < x[[2, j]]], {i, n}]]; 52 met[m_] := Module[{x = arms[[m]], r = cfg[[m, 2]], srv}, 53 srv = Flatten[Position[x[[3]], 1]]; 54 StringJoin["QF arm=", names[[m]], 55 " served=", ToString[Length[srv]], 56 " acc=", ToString[Total[x[[4]]]], 57 " dropped=", ToString[Count[Range[n], i_ /; drop[i, r]]], 58 " lostacc=", ToString[Count[Range[n], i_ /; ac[[i]] == 1 && x[[4, i]] == 0]], 59 " busy=", ToString[Total[x[[2, srv]] - x[[1, srv]]]], 60 " useful=", ToString[Total[Map[If[x[[4, #]] == 1, x[[2, #]] - x[[1, #]], 0] &, Range[n]]]], 61 " hol=", ToString[x[[5]]], 62 " mina=", ToString[Min[a]], 63 " maxdep=", ToString[Max[x[[2]]]], 64 " soj=", ToString[Total[x[[2]] - ar]], 65 " viol=", ToString[Count[x[[2]] - ar, _?Negative]], 66 " overlap=", ToString[ovl[x]], 67 " maxq=", ToString[mq[x]], 68 " replayerr=", ToString[If[m == 1, Count[Range[n], i_ /; held[[i]] && x[[1, i]] != s[[i]]], 0]]]]; 69 K = Select[Range[n], Function[i, AllTrue[arms, #[[4, i]] == 1 &]]]; 70 kl[m_] := Module[{ww = Sort[arms[[m, 1, K]] - a[[K]]], k = Length[K]}, 71 StringJoin["QF K arm=", names[[m]], " n=", ToString[k], " sumw=", ToString[Total[ww]], 72 If[k > 0, StringJoin[" p95=", ToString[Quantile[ww, 95/100]], " maxw=", ToString[Max[ww]]], ""]]]; 73 cmp[x_, y_] := Module[{dx = arms[[x, 1, K]] - arms[[y, 1, K]]}, 74 StringJoin["QF cmp x=", names[[x]], " y=", names[[y]], 75 " worse60=", ToString[Count[dx, _?(# > 60 &)]], " better60=", ToString[Count[dx, _?(# < -60 &)]]]]; 76 nm = Count[held, True]; 77 Join[{StringJoin["QF trace rows=", ToString[n], " held=", ToString[nm], " anomalies=", ToString[an], 78 " retries=", ToString[nr], " d0=", ToString[d0]]}, 79 Map[met, Range[5]], Map[kl, Range[5]], {cmp[5, 2], cmp[4, 2], cmp[2, 1]}]] 80 StringRiffle[Join[qfLines[{{1000,1000,1100,60,0,0,0,0,1,0,0},{1010,1100,1150,600,0,0,0,0,2,0,0},{1020,1300,1400,600,0,0,0,0,3,0,0},{1030,1400,1420,600,0,0,0,0,4,0,0},{1500,1500,1600,600,0,0,2,1,5,0,0},{1610,1610,1700,600,0,0,3,2,5,0,0},{1710,1710,1750,600,0,0,0,0,5,0,0},{1800,0,1900,600,0,0,1,2,6,0,0},{1850,1900,1950,600,0,0,0,0,7,0,0}}, 0], {"--"}, qfLines[{{5000,5000,5600,300,0,0,0,0,1,0,0},{5602,5602,5700,600,0,0,0,0,2,0,0},{5701,5900,6000,600,0,0,0,0,3,0,0},{6002,6002,6100,600,0,0,0,0,4,0,0},{7000,7000,7050,600,0,0,0,0,4,0,0},{7052,0,7300,600,0,0,1,2,5,0,0},{7301,7301,7400,600,0,0,0,0,6,0,0}}, 0], {"--"}, qfLines[{{`1792452098`,`1792454054`,`1792457666`,3600,0,0,2,2,1,0,0},{`1792457666`,`1792460112`,`1792462439`,7200,0,0,0,2,2,0,0},{`1792462460`,`1792462905`,`1792464868`,9000,0,0,0,2,3,0,0},{`1792464873`,`1792465378`,`1792465752`,2700,0,0,0,2,4,0,0},{`1792465759`,`1792467984`,`1792469320`,2700,0,0,0,2,5,0,0},{`1792469322`,`1792469322`,`1792469381`,5400,0,0,0,2,1,0,0},{`1792469391`,`1792469395`,`1792470615`,4500,0,0,0,2,6,0,0},{`1792470624`,`1792470720`,`1792472183`,7200,0,0,0,2,4,0,0},{`1792472183`,`1792472183`,`1792472397`,5400,0,0,0,2,1,0,0},{`1792472397`,`1792472401`,`1792481402`,9000,0,0,2,2,7,0,0},{`1792481402`,`1792481445`,`1792481464`,4500,0,0,0,2,8,0,0},{`1792481465`,0,`1792481468`,9000,0,0,1,2,9,0,0},{`1792481468`,`1792481516`,`1792483026`,6000,0,0,0,2,10,0,0},{`1792483026`,`1792483168`,`1792484670`,4500,0,0,0,2,8,0,0},{`1792484670`,`1792484761`,`1792490186`,9000,0,0,0,2,9,0,0},{`1792490186`,`1792490186`,`1792490371`,5400,0,0,0,2,1,0,0},{`1792490371`,`1792490382`,`1792492097`,9000,0,0,0,2,11,0,0},{`1792492097`,`1792492184`,`1792492828`,5400,0,0,0,2,10,0,0},{`1792492828`,`1792492828`,`1792493796`,5400,0,0,0,2,4,0,0},{`1792493796`,`1792493800`,`1792497102`,9000,0,0,0,2,11,0,0},{`1792497102`,`1792497145`,`1792497379`,2700,0,0,0,2,8,0,0},{`1792497379`,`1792498555`,`1792498840`,9000,0,0,0,2,11,0,0},{`1792498840`,`1792498952`,`1792499517`,2700,0,0,0,2,8,0,0},{`1792499517`,`1792499635`,`1792499638`,9000,0,0,0,2,11,0,0},{`1792499938`,`1792500095`,`1792503486`,9000,0,0,0,2,11,0,0},{`1792503616`,0,`1792522265`,9000,0,0,1,2,11,0,0},{`1792522293`,`1792525833`,`1792527123`,9000,0,0,3,2,11,0,0},{`1792527123`,`1792527123`,`1792527126`,2700,0,0,0,2,12,0,0},{`1792529721`,0,`1792534919`,1200,0,0,1,2,11,0,0},{`1792534920`,`1792534972`,`1792535258`,5400,0,0,0,2,13,0,0},{`1792535258`,0,`1792536631`,1200,0,0,1,2,11,0,0},{`1792536631`,`1792536631`,`1792536650`,1800,0,0,0,2,14,0,0},{`1792536650`,`1792536663`,`1792536664`,1800,0,0,0,2,15,0,0},{`1792539146`,0,`1792541681`,1800,0,0,3,2,13,0,0},{`1792541682`,`1792544892`,`1792545071`,2400,0,0,0,2,14,0,0},{`1792545071`,0,`1792588769`,1200,0,0,3,2,11,0,0},{`1792588769`,0,`1792588770`,1800,0,0,1,2,15,0,0},{`1792592220`,`1792593735`,`1792595186`,4500,0,0,0,2,16,0,0},{`1792595186`,`1792595410`,`1792595721`,3600,0,0,0,2,17,0,0},{`1792595721`,`1792595754`,`1792599356`,3600,0,0,2,2,18,0,0},{`1792599356`,`1792599356`,`1792604759`,5400,0,0,2,2,19,0,0},{`1792604759`,`1792604759`,`1792605897`,5400,0,0,0,2,20,0,0},{`1792619412`,`1792619412`,`1792619737`,2700,0,0,0,2,17,0,0},{`1792619936`,`1792619942`,`1792630768`,10800,0,0,0,2,19,0,0},{`1792644230`,`1792644230`,`1792644236`,300,0,0,0,0,21,0,0},{`1792652595`,`1792652595`,`1792775571`,5400,0,0,3,0,22,0,0},{`1792775571`,0,`1792781837`,1200,0,0,1,0,23,0,0},{`1792801609`,`1792801609`,`1792801626`,300,0,0,0,0,24,0,0},{`1792801669`,`1792801669`,`1792801693`,300,0,0,0,0,24,0,0},{`1792801710`,`1792801710`,`1792801720`,300,0,0,0,0,24,0,0},{`1792801903`,0,`1792801922`,300,0,0,1,0,24,0,0},{`1792801970`,`1792801970`,`1792801979`,300,0,0,0,0,24,0,0},{`1792802314`,`1792802314`,`1792802323`,300,0,0,0,0,24,0,0},{`1792802583`,`1792802583`,`1792802593`,300,0,0,0,0,24,0,0},{`1792802794`,`1792802794`,`1792802802`,300,0,0,0,0,24,0,0},{`1792803005`,`1792803005`,`1792803014`,300,0,0,0,0,24,0,0},{`1792803194`,`1792803194`,`1792803202`,300,0,0,0,0,24,0,0},{`1792803758`,`1792803758`,`1792803774`,300,0,0,0,0,24,0,0},{`1792804124`,`1792804124`,`1792804142`,300,0,0,0,0,24,0,0},{`1792816698`,`1792816698`,`1792817288`,600,0,0,0,0,25,0,0},{`1792817294`,`1792817295`,`1792817354`,600,0,0,0,0,25,0,0},{`1792849967`,`1792850270`,`1792850335`,600,0,0,0,0,26,0,0},{`1792870184`,0,`1792870277`,1200,0,0,1,0,27,0,0},{`1792870317`,`1792870317`,`1792870600`,1200,0,0,0,0,27,0,0},{`1792870676`,`1792870676`,`1792870803`,300,0,0,0,0,27,0,0},{`1792870835`,`1792871206`,`1792872019`,300,0,0,2,1,28,0,0},{`1792872019`,`1792872019`,`1792872027`,1200,0,0,0,0,27,0,0},{`1792872731`,`1792872731`,`1792873453`,1200,0,0,0,0,27,0,0},{`1792874043`,`1792874043`,`1792874145`,300,0,0,0,0,28,0,0},{`1792874223`,`1792874223`,`1792874436`,600,0,0,0,0,27,0,0},{`1792877164`,`1792877164`,`1792877171`,300,0,0,0,0,29,0,0},{`1792877179`,`1792877179`,`1792877186`,300,0,0,0,0,29,0,0},{`1792877274`,`1792877274`,`1792877283`,300,0,0,0,0,29,0,0},{`1792877328`,`1792877328`,`1792877337`,300,0,0,0,0,29,0,0},{`1792877765`,`1792877765`,`1792877978`,600,0,0,0,0,28,0,0},{`1792878322`,`1792878322`,`1792878791`,1200,0,0,0,0,27,0,0},{`1792878805`,`1792878805`,`1792878811`,1200,0,0,0,0,28,0,0},{`1792881305`,`1792881305`,`1792881322`,600,0,0,0,0,30,0,0},{`1792883451`,`1792883451`,`1792883486`,1200,0,0,0,0,28,0,0},{`1792883593`,`1792883593`,`1792884214`,720,0,0,0,0,27,0,0},{`1792884377`,`1792884377`,`1792884416`,300,0,0,0,0,22,0,0},{`1792884428`,`1792884428`,`1792884451`,1200,0,0,0,0,28,0,0},{`1792884540`,`1792884540`,`1792884566`,1200,0,0,0,0,28,0,0},{`1792884990`,`1792884990`,`1792885495`,900,0,0,0,0,28,0,0},{`1792885500`,`1792885502`,`1792887076`,1200,0,0,2,1,28,0,0},{`1792887077`,`1792887077`,`1792887129`,300,0,0,0,0,22,0,0},{`1792887192`,`1792887193`,`1792887203`,600,0,0,0,0,22,0,0},{`1792887233`,`1792887233`,`1792887329`,1200,0,0,0,0,22,0,0},{`1792887370`,`1792887370`,`1792887384`,300,0,0,0,0,22,0,0},{`1792887460`,`1792887460`,`1792887474`,300,0,0,0,0,22,0,0},{`1792887518`,`1792887518`,`1792887534`,300,0,0,0,0,22,0,0},{`1793148285`,`1793148286`,`1793148386`,1800,0,0,0,0,31,0,0},{`1793148718`,`1793148718`,`1793148847`,1200,0,0,0,0,31,0,0},{`1793149515`,`1793149515`,`1793150332`,1200,0,0,0,0,31,0,0},{`1793151140`,`1793151140`,`1793151655`,1200,0,0,0,0,31,0,0},{`1793312138`,`1793312138`,`1793312391`,1200,0,0,0,0,32,0,0},{`1793404331`,`1793404331`,`1793404390`,600,0,0,0,0,33,0,0},{`1793404738`,`1793404738`,`1793404829`,600,0,0,0,0,33,0,0},{`1793406609`,`1793406609`,`1793406626`,600,0,0,0,0,33,0,0},{`1793406720`,`1793406720`,`1793406940`,1200,0,0,0,0,34,0,0},{`1793407993`,`1793407993`,`1793408184`,300,0,0,0,0,33,0,0},{`1793412533`,`1793412533`,`1793412867`,5400,0,0,0,0,35,0,0},{`1793413841`,`1793413841`,`1793413862`,5400,0,0,0,0,35,0,0},{`1793413883`,`1793413883`,`1793414308`,5400,0,0,0,0,35,0,0},{`1793414308`,`1793414308`,`1793414683`,5400,0,0,0,0,35,0,0},{`1793414683`,`1793414683`,`1793414979`,5400,0,0,0,0,35,0,0},{`1793414979`,`1793414979`,`1793415291`,5400,0,0,0,0,35,0,0},{`1793415291`,`1793415301`,`1793415314`,1800,0,0,0,0,35,0,0},{`1793415314`,`1793415314`,`1793415597`,5400,0,0,0,0,35,0,0},{`1793415597`,`1793415597`,`1793415614`,5400,0,0,0,0,35,0,0},{`1793418363`,`1793418393`,`1793418981`,5400,0,0,0,0,35,0,0},{`1793418981`,`1793418981`,`1793419935`,5400,0,0,0,0,35,0,0},{`1793419935`,`1793419935`,`1793420272`,5400,0,0,0,0,35,0,0},{`1793420273`,`1793420273`,`1793420408`,5400,0,0,0,0,35,0,0},{`1793422203`,`1793422203`,`1793422815`,5400,0,0,0,0,35,0,0},{`1793424189`,`1793424189`,`1793424937`,5400,0,0,0,0,35,0,0},{`1793426110`,`1793426110`,`1793429725`,5400,0,0,0,0,36,0,0},{`1793429725`,`1793429725`,`1793430180`,5400,0,0,0,0,35,0,0},{`1793430322`,`1793430322`,`1793430737`,1200,0,0,0,0,36,0,0},{`1793430737`,`1793430737`,`1793430846`,1800,0,0,0,0,37,0,0},{`1793430846`,`1793430846`,`1793430880`,1200,0,0,0,0,36,0,0},{`1793430880`,`1793430880`,`1793430963`,1200,0,0,0,0,37,0,0},{`1793430963`,`1793430963`,`1793431146`,1800,0,0,0,0,37,0,0},{`1793431146`,`1793431146`,`1793431453`,2400,0,0,0,0,37,0,0},{`1793431453`,`1793431453`,`1793431457`,1800,0,0,0,0,37,0,0},{`1793431458`,`1793431458`,`1793431462`,1800,0,0,0,0,37,0,0},{`1793431462`,`1793431462`,`1793434093`,5400,0,0,0,0,37,0,0},{`1793434160`,`1793434160`,`1793434165`,1800,0,0,0,0,38,0,0},{`1793434165`,`1793434165`,`1793434169`,1800,0,0,0,0,38,0,0},{`1793434351`,`1793434351`,`1793434358`,1800,0,0,0,0,39,0,0},{`1793434358`,`1793434358`,`1793434365`,1800,0,0,0,0,39,0,0},{`1793434395`,`1793434395`,`1793434514`,1200,0,0,0,0,40,0,0},{`1793434515`,`1793434791`,`1793434905`,1200,0,0,0,0,40,0,0},{`1793434905`,`1793434905`,`1793434928`,1800,0,0,0,0,35,0,0},{`1793436014`,`1793436014`,`1793436040`,1800,0,0,0,0,35,0,0},{`1793436283`,`1793436283`,`1793436296`,5400,0,0,0,0,36,0,0},{`1793436301`,`1793436301`,`1793436305`,5400,0,0,0,0,36,0,0},{`1793436313`,`1793436313`,`1793436318`,5400,0,0,0,0,36,0,0},{`1793436363`,`1793436363`,`1793436400`,5400,0,0,0,0,36,0,0},{`1793445268`,`1793445268`,`1793446181`,7200,0,0,0,0,35,0,0},{`1793447558`,`1793447558`,`1793447603`,5400,0,0,0,0,36,0,0},{`1793447724`,`1793447724`,`1793447938`,5400,0,0,0,0,36,0,0},{`1793448277`,`1793448277`,`1793448554`,5400,0,0,0,0,41,0,0},{`1793448571`,`1793448571`,`1793448630`,3600,0,0,0,0,35,0,0},{`1793448678`,`1793448678`,`1793448868`,3600,0,0,0,0,35,0,0}}, 0]], "\n"]