Archived
libxe2: the Intel kernel library's skeleton, and its first op, add
libxe2 is a kernel plugin like any other, built by rad_add_plugin from the icpx sub-build into the build tree's $RADIANCE_HOME. It declares no schemas (every op it serves is libref's vocabulary), only device rows, written with designated initialisers. xe2_common.h holds what every kernel needs: the launch's queue (rad_sycl.h), row views over padded operands, refusals that name the geometry, and libref's own dtype conversions so results round where the reference's do. add passes rad-kbench against libref at tolerance zero, on the recorded fixture (30 cases) and on MiniCPM5-2B's container (20 cases), inside guarded allocations. In a SYCL build the kbench replays run libxe2 on the card, so they are labelled sycl there, as they are gpu in a HIP build. scripts/sycl/notify.sh posts to the Discord webhook when the port needs the user. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
1 parent
8addda231b
commit
ea065f596c
11 files changed
+362
-10
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# notify.sh -- post a short message to the Discord webhook in ~/.config/radiance-bench.env
|
||||
# (DISCORD_WEBHOOK_URL), for anything in the SYCL port that needs the user's attention: a blocker,
|
||||
# a question, a finished milestone. The URL is a secret: it is read from the file, never printed.
|
||||
#
|
||||
# Usage: scripts/sycl/notify.sh "message" (cut to Discord's 2000 characters)
|
||||
# Exit status: 0 posted, 1 no webhook configured, 2 the post failed (HTTP status printed).
|
||||
set -e
|
||||
msg=${1:?usage: notify.sh "message"}
|
||||
env_file=${RAD_BENCH_ENV:-$HOME/.config/radiance-bench.env}
|
||||
[ -r "$env_file" ] && . "$env_file"
|
||||
if [ -z "$DISCORD_WEBHOOK_URL" ]; then
|
||||
echo "notify.sh: no DISCORD_WEBHOOK_URL (looked in $env_file); not posted" >&2
|
||||
exit 1
|
||||
fi
|
||||
payload=$(printf '%s' "$msg" | jq -Rs '{content: (.[0:2000])}')
|
||||
code=$(printf '%s' "$payload" | curl -sS -o /dev/null -w '%{http_code}' \
|
||||
-H 'Content-Type: application/json' --data-binary @- "$DISCORD_WEBHOOK_URL") || code=000
|
||||
case "$code" in
|
||||
2??) exit 0 ;;
|
||||
*) echo "notify.sh: the webhook answered HTTP $code" >&2; exit 2 ;;
|
||||
esac
|
||||
Reference in new issue
Block a user