#!/bin/sh # probe.sh -- Phase 0 device checks for the Intel (SYCL / Level Zero) backend; see docs/SYCL_PROGRESS.md. # devprobe: limits, aspects, sub-group sizes, joint_matrix combinations and three joint_matrix runs # dpas_fp8: whether XMX executes E4M3 / E5M2 DPAS, against bf16 and s8 DPAS controls in the same harness # Usage: scripts/sycl/probe.sh [OUTDIR] (needs oneAPI; sources setvars.sh if icpx is not on PATH) set -e here=$(cd "$(dirname "$0")" && pwd) out=${1:-${TMPDIR:-/tmp}/rad-sycl-probe} mkdir -p "$out" command -v icpx >/dev/null || . /opt/intel/oneapi/setvars.sh >/dev/null icpx -fsycl -O2 "$here/devprobe.cpp" -o "$out/devprobe" icpx -fsycl -O2 -fsycl-targets=spir64_gen -Xs "-device bmg-g31" "$here/dpas_fp8.cpp" -o "$out/dpas_fp8" "$out/devprobe" "$out/dpas_fp8"