#!/usr/bin/env bash # The GPU rasteriser (wasmhost/bin/raster_gpu.c) against the CPU one, on this machine's GPU; a few # seconds. Skips (exit 0, saying so) on machines without one; CHANDRA_GPU=1 takes llvmpipe too. # scripts/test-gpu.sh set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT" PIXI="$ROOT/.pixi/envs/default" mkdir -p _build # raster_gpu.c is included, not linked: the test looks inside it. cat > _build/gpu_test_all.c <