Archived
abi: rad_sycl.h -- what a RadStream is under the SYCL backend
A SYCL kernel library has no hipLaunchKernel for the engine to serve, so under the SYCL backend a RadStream points to a RadSyclStream: a magic, its own version, and the engine's in-order sycl::queue. rad_sycl_queue() hands a plugin the queue or null for any other stream. The struct is versioned by RAD_SYCL_STREAM_VERSION rather than RAD_ABI_VERSION, since no shape an existing plugin compiles against changes; rad_abi.h and rad_types.h say so. The layout tests cover it: strict C11 in abi_c_test.c, and its rows in abi_layout_rows.h, where a struct the frozen table predates is allowed without a version bump. docs/SYCL_PROGRESS.md: D6 revised. Building everything with icpx fails in libavx (_pdep_u64 without -mbmi2, which GCC accepts and clang refuses), so the main build stays GCC and only SYCL code is built by icpx, as shared libraries. 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
ec4dbb6464
commit
a3dc47b79a
7 files changed
+78
-6
No files matched your search
+3
-2
@@ -326,8 +326,9 @@ typedef uint32_t rad_kvgroup;
|
||||
/* Opaque: the core never dereferences one. On a card it is the engine's own queue, not a
|
||||
* hipStream_t. A kernel plugin may use it only with hipLaunchKernel (and so <<<>>>),
|
||||
* hipMemcpyAsync, hipMemcpy2DAsync and hipMemsetAsync, which the engine implements itself, and
|
||||
* must pass it to nothing else in HIP (docs/PLUGIN.md, "What a launch may do"). Under the host
|
||||
* backend the host kernels ignore it. */
|
||||
* must pass it to nothing else in HIP (docs/PLUGIN.md, "What a launch may do"). Under the SYCL
|
||||
* backend it points to a RadSyclStream holding the engine's sycl::queue (rad_sycl.h). Under the
|
||||
* host backend the host kernels ignore it. */
|
||||
typedef void* RadStream;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in new issue
Block a user