PROPHET/OS

NAME

gpurun: runs the kernel of a PSM2 file on the card with a buffer of this program (POS_GFX_COMPUTE, R13-GPU-16)

SYNOPSIS

gpurun <file.psm> [threads] [base] [--fill] [--vram]

DESCRIPTION

Runs the kernel of a PSM2 file on the card with a buffer of this program (POS_GFX_COMPUTE, R13-GPU-16). The kernel is void k(unsigned *out, unsigned base, unsigned n) as gpucc compiles it: out is one word per thread in this program's own memory, which the card writes in place, no copy between; base (default 0x50524F00) and n, the thread count, are numbers. Threads 1 to 16384, default 64. Says the time on the card, the first and last words and a hash of all of them; --fill holds every word against base + thread. Needs the right compute. Exit 0 when the program ran (and every word held), 1 when the card refused it or a word is wrong, 2 on an error of a file or of memory. --vram makes a buffer in the card's memory (POS_GFX_BUFFER_CREATE), lets the card write there and reads it back by the copy engine, without the IOMMU on every run (R11-GPU-02).

EXAMPLE

$ gpurun --help
gpurun <file.psm> [threads] [base] [--fill] [--vram]
  runs the kernel of a PSM2 file on the card with a buffer of this
  program, one word per thread, and says its time, first words and
  a hash; --fill checks every word against base + thread, --vram
  uses a buffer in the card's memory and reads it back