Skip to content

Commit c382be7

Browse files
author
Sergey Kanaev
committed
[SYCL] Address comments.
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent cfbf2b6 commit c382be7

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,18 @@ __SYCL_EXPORT device getDeviceFromHandler(handler &);
132132
#if defined(__SYCL_ID_QUERIES_FIT_IN_INT__)
133133
template <typename T> struct NotIntMsg;
134134

135+
// TODO reword for "`fsycl-id-queries-fit-in-int' optimization flag." when
136+
// implemented
135137
template <int Dims> struct NotIntMsg<range<Dims>> {
136138
constexpr static char *Msg = "Provided range is out of integer limits. "
137-
"Suggest disabling `fsycl-id-queries-fit-in-int'"
138-
" optimizations flag.";
139+
"Pass `-U__SYCL_ID_QUERIES_FIT_IN_INT__' to "
140+
"disable range check.";
139141
};
140142

141143
template <int Dims> struct NotIntMsg<id<Dims>> {
142144
constexpr static char *Msg = "Provided offset is out of integer limits. "
143-
"Suggest disabling `fsycl-id-queries-fit-in-int'"
144-
" optimizations flag.";
145+
"Pass `-U__SYCL_ID_QUERIES_FIT_IN_INT__' to "
146+
"disable offset check.";
145147
};
146148
#endif
147149

sycl/test/basic_tests/range_offset_fit_in_int.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
namespace S = cl::sycl;
88

99
void checkRangeException(S::runtime_error &E) {
10-
constexpr char Msg[] = "Provided range is out of integer limits. Suggest "
11-
"disabling `fsycl-id-queries-fit-in-int' optimizations"
12-
" flag.";
10+
constexpr char Msg[] = "Provided range is out of integer limits. "
11+
"Pass `-U__SYCL_ID_QUERIES_FIT_IN_INT__' to "
12+
"disable range check.";
1313

1414
std::cerr << E.what() << std::endl;
1515

1616
assert(std::string(E.what()).find(Msg) == 0 && "Unexpected message");
1717
}
1818

1919
void checkOffsetException(S::runtime_error &E) {
20-
constexpr char Msg[] = "Provided offset is out of integer limits. Suggest "
21-
"disabling `fsycl-id-queries-fit-in-int' optimizations"
22-
" flag.";
20+
constexpr char Msg[] = "Provided offset is out of integer limits. "
21+
"Pass `-U__SYCL_ID_QUERIES_FIT_IN_INT__' to "
22+
"disable offset check.";
2323

2424
std::cerr << E.what() << std::endl;
2525

0 commit comments

Comments
 (0)