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"(?