From f420ee2dd1e56bd07fed481d0cea4ef2dbe0b9a5 Mon Sep 17 00:00:00 2001 From: tmking01 Date: Sun, 4 Oct 2026 00:08:16 +0200 Subject: [PATCH] sycl: stage_room reads the free VRAM (a layer split's later GPUs had none) dpct left the DPCT1106 note but dropped cudaMemGetInfo in generate.cpp's stage_room, so every later stage of --layer-split sized its expert cache from 0 bytes free and the second card crashed with 'expert cache: no room'. Reported with the fix by tmking01 in #423 (2x Arc Pro B70); also a fixups.py entry so a re-migration keeps it. --- sycl/src/program/generate.cpp | 1 + sycl/tools/fixups.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cpp index 26f3852d..1b050707 100644 --- a/sycl/src/program/generate.cpp +++ b/sycl/src/program/generate.cpp @@ -2921,6 +2921,7 @@ int main(int argc, char **argv) try { try { const strata::core::OnDevice on(dev); size_t fb = 0, tb = 0; + dpct::get_current_device().get_memory_info(fb, tb); // #423 (tmking01): dpct dropped cudaMemGetInfo here /* DPCT1106: 'cudaMemGetInfo' was migrated with the Intel extensions for device information which may not be supported by all compilers or diff --git a/sycl/tools/fixups.py b/sycl/tools/fixups.py index aa5ac8e5..b07d6a0e 100644 --- a/sycl/tools/fixups.py +++ b/sycl/tools/fixups.py @@ -297,3 +297,9 @@ edit("src/core/native_head.cpp", lambda s: s.replace("sycl::free(dev_, dpct::get for p in sorted((root / "src" / "kernels").glob("*_parity.cpp")): edit(str(p.relative_to(root)), sub(r"(?