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.
This commit is contained in:
1 parent
5ffcce4382
commit
f420ee2dd1
2 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"(?<!queues_wait_and_throw\(\), )dpct::get_in_order_queue\(\)(\s*)\.(memcpy|memset)\(",
|
||||
r"(dpct::get_current_device().queues_wait_and_throw(), dpct::get_in_order_queue())\1.\2("))
|
||||
|
||||
# 0.1.39 (#423, tmking01): generate.cpp's stage_room (the expert cache of every later stage of a layer split) lost its
|
||||
# cudaMemGetInfo in the migration - the DPCT1106 note stayed, the call did not - so every later GPU read 0 bytes free.
|
||||
edit("src/program/generate.cpp", sub(
|
||||
r"( const strata::core::OnDevice on\(dev\);\n size_t fb = 0, tb = 0;\n)(?! dpct::get_current_device)",
|
||||
r"\1 dpct::get_current_device().get_memory_info(fb, tb); // #423 (tmking01): dpct dropped cudaMemGetInfo here\n"))
|
||||
Reference in new issue
Block a user