Archived
A fourth DeviceBackend, in librad_sycl.so: in-order sycl::queues on one context, events as barriers, copies and fills on the queue, gates as a spin kernel on a pinned flag, and the core's advance and weight-table kernels as SYCL twins of their .hip files. RadStreams are RadSyclStreams (abi/rad_sycl.h). Pinned host memory is page-aligned memory registered for device copies, since O_DIRECT cannot read into SYCL's malloc_host pages; event timing is opt-in (RADIANCE_SYCL_TIMING=1) because profiling queues cost ~20 us of host time a submission. The SYCL code is its own CMake project, sycl/, configured with icpx through ExternalProject, so the engine and every host plugin stay on the main compiler: a SYCL build's host code is the default build's. RAD_SYCL (default OFF), build.sh --sycl, the sycl presets; HIP and SYCL in one build are refused at configure. On the SYCL backend --tp > 1 and ops resolved only to host kernels stop the start, since the Intel backend runs on one card and never puts an op on the CPU. A SYCL build that sees no GPU warns that it runs on the CPU and names the missing oneAPI environment. device_test runs on the Arc Pro B65 as device_test_sycl (label sycl): 36 cases pass, 12 skip (elastic memory, not provided; host-backend-only cases). Host tests hide Level Zero GPUs with ONEAPI_DEVICE_SELECTOR. The host tier is the baseline's in both the default and the SYCL build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
98 lines
3.0 KiB
JSON
98 lines
3.0 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": { "major": 3, "minor": 25, "patch": 0 },
|
|
"configurePresets": [
|
|
{
|
|
"name": "default",
|
|
"displayName": "RelWithDebInfo in build/, HIP when a card is found",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build"
|
|
},
|
|
{
|
|
"name": "asan",
|
|
"displayName": "AddressSanitizer + UBSan, host backend, in build-asan/",
|
|
"inherits": "default",
|
|
"binaryDir": "${sourceDir}/build-asan",
|
|
"cacheVariables": { "RAD_ASAN": "ON", "RAD_TSAN": "OFF", "RAD_WITH_HIP": "OFF" }
|
|
},
|
|
{
|
|
"name": "tsan",
|
|
"displayName": "ThreadSanitizer, host backend, in build-tsan/",
|
|
"inherits": "default",
|
|
"binaryDir": "${sourceDir}/build-tsan",
|
|
"cacheVariables": { "RAD_TSAN": "ON", "RAD_ASAN": "OFF", "RAD_WITH_HIP": "OFF" }
|
|
},
|
|
{
|
|
"name": "sycl",
|
|
"displayName": "The Intel GPU (SYCL) backend, its code built by icpx, in build-sycl/",
|
|
"inherits": "default",
|
|
"binaryDir": "${sourceDir}/build-sycl",
|
|
"cacheVariables": { "RAD_SYCL": "ON", "RAD_WITH_HIP": "OFF" }
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{ "name": "default", "configurePreset": "default" },
|
|
{ "name": "asan", "configurePreset": "asan" },
|
|
{ "name": "tsan", "configurePreset": "tsan" },
|
|
{ "name": "sycl", "configurePreset": "sycl" }
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "base",
|
|
"hidden": true,
|
|
"configurePreset": "default",
|
|
"output": { "outputOnFailure": true },
|
|
"execution": { "jobs": 8, "noTestsAction": "error" }
|
|
},
|
|
{
|
|
"name": "fast",
|
|
"displayName": "The inner loop: no slow, gpu, oot or perf test",
|
|
"inherits": "base",
|
|
"filter": { "include": { "label": "^fast$" } }
|
|
},
|
|
{
|
|
"name": "host",
|
|
"displayName": "Everything that runs without a card, except the out-of-tree rebuild",
|
|
"inherits": "base",
|
|
"filter": { "exclude": { "label": "^(gpu|oot)$" } }
|
|
},
|
|
{
|
|
"name": "full",
|
|
"displayName": "Every test",
|
|
"inherits": "base"
|
|
},
|
|
{
|
|
"name": "gpu",
|
|
"displayName": "The tests that need a card, one at a time",
|
|
"inherits": "base",
|
|
"filter": { "include": { "label": "^gpu$" } }
|
|
},
|
|
{
|
|
"name": "sycl",
|
|
"displayName": "The tests that need an Intel GPU, one at a time (load the oneAPI environment first)",
|
|
"inherits": "base",
|
|
"configurePreset": "sycl",
|
|
"filter": { "include": { "label": "^sycl$" } },
|
|
"execution": { "jobs": 1, "noTestsAction": "error" }
|
|
},
|
|
{
|
|
"name": "perf",
|
|
"displayName": "The wall-clock checks, one at a time",
|
|
"inherits": "base",
|
|
"filter": { "include": { "label": "^perf$" } }
|
|
},
|
|
{
|
|
"name": "asan",
|
|
"displayName": "The fast tier under AddressSanitizer + UBSan",
|
|
"inherits": "fast",
|
|
"configurePreset": "asan"
|
|
},
|
|
{
|
|
"name": "tsan",
|
|
"displayName": "The fast tier under ThreadSanitizer",
|
|
"inherits": "fast",
|
|
"configurePreset": "tsan"
|
|
}
|
|
]
|
|
}
|