Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.prolog > #15608

Implementing Gas for a Compute Shader [Avoid TDR] (Re: AI dooms day escape: Güttinger Wald)

From Mild Shock <janburse@fastmail.fm>
Newsgroups comp.lang.prolog
Subject Implementing Gas for a Compute Shader [Avoid TDR] (Re: AI dooms day escape: Güttinger Wald)
Date 2026-07-09 19:47 +0200
Message-ID <112omrd$8oqk$4@solani.org> (permalink)
References <10seebf$rsl4$1@solani.org> <10sialt$ud5u$1@solani.org>

Show all headers | View raw


Hi,

I guess, you can read off how to do it here,
i.e. avoid TDR (DXGI_ERROR_DEVICE_HUNG 0x887A0006).
The below compute toys example has a similar

approach, just like my π-WAM and Hack GPU backend,
that is based on a Instruction Set Architecture (ISA):

Conway's Game of Life
https://compute.toys/view/2777

He adds a spin to his ISA, that he uses
some gas as computational resource limiter:

         for (var gas = 0; gas < 60; gas++) {
             if (vm.done == 1u) { break; }
             if (vm.pc >= 33u) { vm.done = 1u; break; }

             let instr = rom[vm.pc]; vm.pc++;
             switch (instr) {
                 case OP_HALT: { vm.done = 1u; }
                 case OP_LIT: { vm.stack[vm.sp] = rom[vm.pc]; vm.pc++; 
vm.sp++; }
                 case OP_ADD: { vm.sp-=2; vm.stack[vm.sp] = 
vm.stack[vm.sp] + vm.stack[vm.sp+1]; vm.sp++; }
                 case OP_SUB: { vm.sp-=2; vm.stack[vm.sp] = 
vm.stack[vm.sp] - vm.stack[vm.sp+1]; vm.sp++; }

Etc..

Now need to do the same for my Hack GPU backend
somehow. Will see how this works out.

But the https://compute.toys/ will do the repeated
invokation of the shader. And the screen syncing
and some pacing to get 60 FPS. So I have to look

at the GitHub source of compute toys as well, in
case it is open source, to at least find a code
template for the repeated dispatch.

Bye

Mild Shock schrieb:
 > Hi,
 >
 > You just escaped AI dooms day. Humanity has
 > reset all internet and computers as a last resort
 > to prevent AGI developing, by an electromagnetic
 >
 > pulse. You are stuck in Güttinger Wald and hunted
 > down a deer by your bare hands, the deer still
 > confused and tame because tourists were feeding it.
 >
 > Now you have no knife, what do you do:
 >
 > Chimpanzees Have Entered The Stone Age
 > https://www.youtube.com/watch?v=wPXX2I_uYjc
 >
 > So we are just apes with internet.
 >
 > Bye
 >
 > Mild Shock schrieb:
 >> Hi,
 >>
 >> Ok I was looking at this learning challenge,
 >> producing vector (y1,y2,y3,y4) from a vector
 >> (x1,x2,x3,x4), System R can do it via least square?
 >>
 >> | 0 0 0 1 |   | x1 |     | x4 |
 >> | 0 0 1 0 |   | x2 |  =  | x3 |
 >> | 0 1 0 0 |   | x3 |     | x2 |
 >> | 1 0 0 0 |   | x4 |     | x1 |
 >>
 >> How it started:
 >>
 >> "multiplicative RNNs arises naturally from a
 >> proof-theoretic interpretation of next-token
 >> prediction as nested intuitionistic implication"
 >> Paul Tarau - 2026
 >> https://arxiv.org/abs/2601.19915
 >>
 >> How its going:
 >>
 >> "Dave uses a PDP-11 to train a real Neural
 >> Network complete with Transformers and
 >> Attention so you can see them at their most basic."
 >> Mr. Taskmanager - 2026
 >> https://www.youtube.com/watch?v=OUE3FSIk46g
 >>
 >> We see Doctor Frankstein in action from
 >> the Bronze Age of Computing, producing
 >> a Humunkulus, the progenitor of todays
 >>
 >> Bulgakov Shuriks in the Hyperscale Age!
 >>
 >> Bye
 >>
 >> P.S.: My impression neither cut to the core, that
 >> this incredible transformer most likely
 >> produced this deterministic attention:
 >>
 >> | -1 | * | k | + | 5 | = | k' |
 >>
 >> Or differently expressed y_k = x_{5-k}.
 >>
 >> How did the transformer do it? It produced
 >> a neural network with 1216 parameters, but
 >> didn't use embeddings or polar encoding
 >>
 >> of positions. But if we strip the noise
 >> and denoise from the position encoding,
 >> the denoise is done via softmax. We somehow
 >>
 >> must get the above, right? I still need to
 >> verify my claim! BTW: The PDP-11 assembly
 >> from 1979 uses wider example not with n=4
 >>
 >> but with n=8.
 >

Back to comp.lang.prolog | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Paul Tarau versus Mr. Taskmanager, who would win? [A PDP-11 Humunkulus from 1979] Mild Shock <janburse@fastmail.fm> - 2026-04-24 02:43 +0200
  AI dooms day escape: Güttinger Wald (Was: Paul Tarau versus Mr. Taskmanager, who would win?) Mild Shock <janburse@fastmail.fm> - 2026-04-25 14:05 +0200
    LISP consing in modern AI? (Re: AI dooms day escape: Güttinger Wald) Mild Shock <janburse@fastmail.fm> - 2026-04-25 22:42 +0200
    AI Slop: EU to age regulate internet (Was: AI dooms day escape: Güttinger Wald) Mild Shock <janburse@fastmail.fm> - 2026-04-28 16:22 +0200
    Elmos Fascist Dreams of a 365 Prolog (Re: AI dooms day escape: Güttinger Wald) Mild Shock <janburse@fastmail.fm> - 2026-05-09 12:53 +0200
      Even the Buddos are clueless [Did Tarau see Liliputians?] (Was: Elmos Fascist Dreams of a 365 Prolog) Mild Shock <janburse@fastmail.fm> - 2026-05-09 15:17 +0200
        Halfing the AI Laptop Budget: Ne-Meow sold out! (Was: Even the Buddos are clueless [Did Tarau see Liliputians?]) Mild Shock <janburse@fastmail.fm> - 2026-05-10 09:07 +0200
    Implementing Gas for a Compute Shader [Avoid TDR] (Re: AI dooms day escape: Güttinger Wald) Mild Shock <janburse@fastmail.fm> - 2026-07-09 19:47 +0200
      FYI: Unified Memory Architecture (UMA) (Re: Implementing Gas for a Compute Shader [Avoid TDR]) Mild Shock <janburse@fastmail.fm> - 2026-07-09 19:48 +0200
        The Wider von Neumann Neck (Re: FYI: Unified Memory Architecture (UMA) Mild Shock <janburse@fastmail.fm> - 2026-07-10 07:51 +0200
          The new MIMD Warp is the cherry on top (Re: The Wider von Neumann Neck) Mild Shock <janburse@fastmail.fm> - 2026-07-10 08:10 +0200
            Mac Neo: The dwarf with giant GPU muscles [macOS IOGPUFamily] (Was: The new MIMD Warp is the cherry on top) Mild Shock <janburse@fastmail.fm> - 2026-07-10 08:28 +0200
          Dumbwit, just run it on your RTX 5070 trash (Re: The Wider von Neumann Neck) Mild Shock <janburse@fastmail.fm> - 2026-07-10 15:48 +0200
            We are waiting Dumbwit: 1 Month, 3 Months, .. [node.js dawn] (Re: Dumbwit, just run it on your RTX 5070 trash ) Mild Shock <janburse@fastmail.fm> - 2026-07-10 16:28 +0200
              We are still waiting for results! [Confused Dumbwit] (Re: We are waiting Dumbwit: 1 Month, 3 Months, .. [node.js dawn]) Mild Shock <janburse@fastmail.fm> - 2026-07-10 22:48 +0200
                404 Brain not Found [GPU saturation] (Re: We are still waiting for results! [Confused Dumbwit] (Re: We are waiting Dumbwit: 1 Month, 3 Months, .. [node.js dawn]) Mild Shock <janburse@fastmail.fm> - 2026-07-10 23:32 +0200
                I nowhere talked about 10GB/s (Re: 404 Brain not Found [GPU saturation]) Mild Shock <janburse@fastmail.fm> - 2026-07-10 23:39 +0200
                I nowhere said something about AI (Re: I nowhere talked about 10GB/s) Mild Shock <janburse@fastmail.fm> - 2026-07-10 23:50 +0200
                What do you not understand in "budget"? (Re: I nowhere said something about AI) Mild Shock <janburse@fastmail.fm> - 2026-07-11 00:05 +0200
                SWI makes only MLips not GLips (Re: What do you not understand in "budget"?) Mild Shock <janburse@fastmail.fm> - 2026-07-11 00:06 +0200
                micro penis got hurt by "budget" (Re: SWI makes only MLips not GLips) Mild Shock <janburse@fastmail.fm> - 2026-07-12 19:19 +0200
  Micro Penis Nemesis: Shoe String Budget π-WAM (Re: Paul Tarau versus Mr. Taskmanager, who would win?) Mild Shock <janburse@fastmail.fm> - 2026-07-12 19:30 +0200

csiph-web