Skip to content

Commit ec179b7

Browse files
[SYCL][NFC] Add another option for the lambda size mismatch message (intel#6794)
1 parent 7842d05 commit ec179b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,11 @@ class __SYCL_EXPORT handler {
731731
"unexpected layout. This is a limitation of the compiler."
732732
"In many cases the difference is related to capturing constexpr "
733733
"variables. In such cases removing constexpr specifier aligns the "
734-
"captures between the host compiler and the device compiler.");
734+
"captures between the host compiler and the device compiler."
735+
"\n"
736+
"In case of MSVC, passing "
737+
"-fsycl-host-compiler-options='/std:c++latest' "
738+
"might also help.");
735739

736740
// Empty name indicates that the compilation happens without integration
737741
// header, so don't perform things that require it.

0 commit comments

Comments
 (0)