Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit b88fd92

Browse files
authored
[ESIMD][NFC] Fix compilation warnings caused by using deprecated API (#1105)
Also, fixed a warnings caused by conversion of literal string to 'char *' Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 6c708d0 commit b88fd92

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

SYCL/ESIMD/api/slm_gather_scatter_heavy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ template <class T, unsigned VL, unsigned STRIDE> struct KernelBase {
8888
}
8989

9090
unsigned inline get_wi_offset(nd_item<1> i) const {
91-
unsigned group_id = static_cast<unsigned>(i.get_group().get_id(0));
91+
unsigned group_id = static_cast<unsigned>(i.get_group().get_group_id(0));
9292
unsigned wg_offset = group_id * WG_CHUNK_SIZE;
9393
unsigned wi_offset = wg_offset + get_wi_local_offset(i);
9494
return wi_offset;

SYCL/ESIMD/fp_in_phi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool test(queue q, bool flag) {
6969
});
7070
} catch (sycl::exception const &e) {
7171
std::cout << "SYCL exception caught: " << e.what() << std::endl;
72-
return e.get_cl_code();
72+
return false;
7373
}
7474

7575
int etalon = in1 + (flag ? 3 : 1) + in2 + 2;

SYCL/ESIMD/linear/bitmap_helpers.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ __SYCL_INLINE_VER_NAMESPACE(_V1) {
216216
}
217217

218218
template <typename T>
219-
static bool checkResult(char *f_out_str, char *f_gold_str, T tolerance) {
219+
static bool checkResult(const char *f_out_str, const char *f_gold_str,
220+
T tolerance) {
220221
unsigned char header_out[54];
221222
unsigned char header_gold[54];
222223
unsigned int width;

SYCL/ESIMD/regression/globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ template <int Dim> int testXD(queue &Q, nd_range<Dim> NDR) {
125125
SubGroupSize[I] = seoe::this_sub_group().get_local_range()[0];
126126
SubGroupMaxSize[I] = seoe::this_sub_group().get_max_local_range()[0];
127127

128-
GroupId[I] = NdId.get_group().get_id();
128+
GroupId[I] = NdId.get_group().get_group_id();
129129
NumGroups[I] = NdId.get_group_range();
130130
});
131131
}).wait();

0 commit comments

Comments
 (0)