File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -132,16 +132,18 @@ __SYCL_EXPORT device getDeviceFromHandler(handler &);
132
132
#if defined(__SYCL_ID_QUERIES_FIT_IN_INT__)
133
133
template <typename T> struct NotIntMsg ;
134
134
135
+ // TODO reword for "`fsycl-id-queries-fit-in-int' optimization flag." when
136
+ // implemented
135
137
template <int Dims> struct NotIntMsg <range<Dims>> {
136
138
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 ." ;
139
141
};
140
142
141
143
template <int Dims> struct NotIntMsg <id<Dims>> {
142
144
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 ." ;
145
147
};
146
148
#endif
147
149
Original file line number Diff line number Diff line change 7
7
namespace S = cl::sycl;
8
8
9
9
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 ." ;
13
13
14
14
std::cerr << E.what () << std::endl;
15
15
16
16
assert (std::string (E.what ()).find (Msg) == 0 && " Unexpected message" );
17
17
}
18
18
19
19
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 ." ;
23
23
24
24
std::cerr << E.what () << std::endl;
25
25
You can’t perform that action at this time.
0 commit comments