Skip to content

Commit 20d562d

Browse files
fix more comments
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent 9ce7695 commit 20d562d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

libsycl/include/sycl/__impl/detail/macro_definitions.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ static_assert(__cplusplus >= 201703L, "Libsycl requires C++17 or later.");
3535
// when linking to a release build of libsycl and with the /MDd option when
3636
// linking to a debug build.
3737
# define ERROR_MESSAGE \
38-
"Libsycl is designed to work safely with dynamic C++ runtime." \
39-
"Please use /MD switch with sycl.dll, /MDd switch with sycld.dll, " \
40-
"or -fsycl switch to set C++ runtime automatically."
38+
"Libsycl requires use of a DLL version of the MSVC RT library. " \
39+
"Please use /MD to link with a release build of libsycl or /MDd to link" \
40+
" with a debug build."
4141
# if defined(_MSC_VER)
4242
# pragma message(ERROR_MESSAGE)
4343
# else

libsycl/include/sycl/__impl/detail/obj_utils.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ SyclObject createSyclObjFromImpl(From &&from) {
6565
template <typename T> struct HashBase {
6666
size_t operator()(const T &Obj) const {
6767
#ifdef __SYCL_DEVICE_ONLY__
68+
# if __has_builtin(__builtin_unreachable)
69+
__builtin_unreachable()
70+
# else
6871
(void)Obj;
6972
return 0;
73+
# endif
7074
#else
7175
auto &Impl = sycl::detail::getSyclObjImpl(Obj);
7276
return std::hash<std::decay_t<decltype(Impl)>>{}(Impl);

0 commit comments

Comments
 (0)