From cd4aebfc17f1ba8a3389d46c66ae83d5a64d4682 Mon Sep 17 00:00:00 2001 From: "Li, Ian" Date: Tue, 13 May 2025 12:06:36 -0700 Subject: [PATCH 1/3] Use inline in invalid_parameter --- sycl/include/sycl/stl_wrappers/corecrt.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sycl/include/sycl/stl_wrappers/corecrt.h b/sycl/include/sycl/stl_wrappers/corecrt.h index f4d1ceccba4b7..beecdeb36ee22 100644 --- a/sycl/include/sycl/stl_wrappers/corecrt.h +++ b/sycl/include/sycl/stl_wrappers/corecrt.h @@ -28,9 +28,8 @@ #if defined(__SYCL_DEVICE_ONLY__) && defined(_DEBUG) #include // For uintptr_t -#include // For __DPCPP_SYCL_EXTERNAL -extern "C" __DPCPP_SYCL_EXTERNAL void __cdecl _invalid_parameter( +extern "C" inline void __cdecl _invalid_parameter( wchar_t const *, wchar_t const *, wchar_t const *, unsigned int, uintptr_t) { // Do nothing when called in device code From bfe923ca4faeccc7a4069a421a4315cc465cb2a1 Mon Sep 17 00:00:00 2001 From: aelovikov-intel Date: Tue, 13 May 2025 12:41:16 -0700 Subject: [PATCH 2/3] Update sycl/include/sycl/stl_wrappers/corecrt.h --- sycl/include/sycl/stl_wrappers/corecrt.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sycl/include/sycl/stl_wrappers/corecrt.h b/sycl/include/sycl/stl_wrappers/corecrt.h index beecdeb36ee22..c15ed8ac89ffb 100644 --- a/sycl/include/sycl/stl_wrappers/corecrt.h +++ b/sycl/include/sycl/stl_wrappers/corecrt.h @@ -29,9 +29,10 @@ #include // For uintptr_t -extern "C" inline void __cdecl _invalid_parameter( - wchar_t const *, wchar_t const *, wchar_t const *, unsigned int, - uintptr_t) { +extern "C" inline void __cdecl _invalid_parameter(wchar_t const *, + wchar_t const *, + wchar_t const *, unsigned int, + uintptr_t) { // Do nothing when called in device code } From 0d866fdb2c08eb047cd5139dc5c29de86d21b6ac Mon Sep 17 00:00:00 2001 From: aelovikov-intel Date: Tue, 13 May 2025 12:46:58 -0700 Subject: [PATCH 3/3] Update sycl/include/sycl/stl_wrappers/corecrt.h --- sycl/include/sycl/stl_wrappers/corecrt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/sycl/stl_wrappers/corecrt.h b/sycl/include/sycl/stl_wrappers/corecrt.h index c15ed8ac89ffb..c649f7ae02926 100644 --- a/sycl/include/sycl/stl_wrappers/corecrt.h +++ b/sycl/include/sycl/stl_wrappers/corecrt.h @@ -27,7 +27,7 @@ #if defined(__SYCL_DEVICE_ONLY__) && defined(_DEBUG) -#include // For uintptr_t +#include // For uintptr_t extern "C" inline void __cdecl _invalid_parameter(wchar_t const *, wchar_t const *,