Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2d50750
remove dummy bin
jinge90 Nov 24, 2025
9c76946
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Nov 26, 2025
fe628a9
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Nov 27, 2025
7a7e62b
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Nov 28, 2025
4de8fa5
merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Dec 1, 2025
e52bb98
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Dec 4, 2025
4b63322
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Dec 10, 2025
544d912
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Dec 12, 2025
2ad6143
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Dec 17, 2025
cf391d9
Merge remote-tracking branch 'upstream/sycl' into sycl
jinge90 Dec 24, 2025
0ce666b
[SYCL] Remove unnecessary fallback-cassert.cpp for CUDA/AMD assert
jinge90 Dec 24, 2025
38cd970
remove duplicate _wassert
jinge90 Dec 24, 2025
80c7703
remove __devicelib_ wrapper on CUDA
jinge90 Dec 24, 2025
e495ece
fix typo
jinge90 Dec 24, 2025
2b93695
fix #endif error on Windows
jinge90 Dec 25, 2025
dd7b54c
Fix build error
jinge90 Dec 25, 2025
9fe5ab4
Merge remote-tracking branch 'upstream/sycl' into remove_devicelib_apis
jinge90 Dec 30, 2025
7ea54c6
Merge remote-tracking branch 'upstream/sycl' into remove_devicelib_apis
jinge90 Dec 31, 2025
539cb81
Merge remote-tracking branch 'upstream/sycl' into remove_devicelib_apis
jinge90 Jan 1, 2026
c48de92
Merge remote-tracking branch 'upstream/sycl' into remove_devicelib_apis
jinge90 Jan 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions libdevice/cmake/modules/SYCLLibdevice.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,6 @@ else()
endif()
endif()

add_devicelibs(libsycl-fallback-cassert
SRC fallback-cassert.cpp
BUILD_ARCHS ${full_build_archs}
DEPENDENCIES ${crt_obj_deps}
EXTRA_OPTS -fno-sycl-instrument-device-code)
add_devicelibs(libsycl-fallback-cstring
SRC fallback-cstring.cpp
BUILD_ARCHS ${full_build_archs}
Expand Down
13 changes: 13 additions & 0 deletions libdevice/crt_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ void srand(unsigned int seed) {
RAND_NEXT_ACC[gid1] = seed;
}

#if defined(__NVPTX__) || defined(__AMDGCN__)
DEVICE_EXTERN_C void __assertfail(const char *__message, const char *__file,
unsigned __line, const char *__function,
size_t charSize);
#endif
#if defined(_WIN32)
// Truncates a wide (16 or 32 bit) string (wstr) into an ASCII string (str).
// Any non-ASCII characters are replaced by question mark '?'.
Expand All @@ -157,21 +162,29 @@ void _wassert(const wchar_t *wexpr, const wchar_t *wfile, unsigned line) {
char expr[256];
__truncate_wchar_char_str(wexpr, expr, sizeof(expr));

#if defined(__NVPTX__) || defined(__AMDGCN__)
__assertfail(expr, file, line, nullptr, 1);
#else
__devicelib_assert_fail(
expr, file, line, /*func=*/nullptr, __spirv_BuiltInGlobalInvocationId(0),
__spirv_BuiltInGlobalInvocationId(1),
__spirv_BuiltInGlobalInvocationId(2), __spirv_BuiltInLocalInvocationId(0),
__spirv_BuiltInLocalInvocationId(1), __spirv_BuiltInLocalInvocationId(2));
#endif
}
#else
DEVICE_EXTERN_C
void __assert_fail(const char *expr, const char *file, unsigned int line,
const char *func) {
#if defined(__NVPTX__) || defined(__AMDGCN__)
__assertfail(expr, file, line, func, 1);
#else
__devicelib_assert_fail(
expr, file, line, func, __spirv_BuiltInGlobalInvocationId(0),
__spirv_BuiltInGlobalInvocationId(1),
__spirv_BuiltInGlobalInvocationId(2), __spirv_BuiltInLocalInvocationId(0),
__spirv_BuiltInLocalInvocationId(1), __spirv_BuiltInLocalInvocationId(2));
#endif
}

// In GCC-15, std::__glibcxx_assert_fail is added to do runtime check for some
Expand Down
31 changes: 0 additions & 31 deletions libdevice/fallback-cassert.cpp

This file was deleted.

Loading