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

[ESIMD][NFC] Fix compilation warnings caused by using deprecated API #1105

Merged
merged 3 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SYCL/ESIMD/api/slm_gather_scatter_heavy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ template <class T, unsigned VL, unsigned STRIDE> struct KernelBase {
}

unsigned inline get_wi_offset(nd_item<1> i) const {
unsigned group_id = static_cast<unsigned>(i.get_group().get_id(0));
unsigned group_id = static_cast<unsigned>(i.get_group().get_group_id(0));
unsigned wg_offset = group_id * WG_CHUNK_SIZE;
unsigned wi_offset = wg_offset + get_wi_local_offset(i);
return wi_offset;
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/fp_in_phi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool test(queue q, bool flag) {
});
} catch (sycl::exception const &e) {
std::cout << "SYCL exception caught: " << e.what() << std::endl;
return e.get_cl_code();
return false;
}

int etalon = in1 + (flag ? 3 : 1) + in2 + 2;
Expand Down
3 changes: 2 additions & 1 deletion SYCL/ESIMD/linear/bitmap_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ __SYCL_INLINE_VER_NAMESPACE(_V1) {
}

template <typename T>
static bool checkResult(char *f_out_str, char *f_gold_str, T tolerance) {
static bool checkResult(const char *f_out_str, const char *f_gold_str,
T tolerance) {
unsigned char header_out[54];
unsigned char header_gold[54];
unsigned int width;
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/regression/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ template <int Dim> int testXD(queue &Q, nd_range<Dim> NDR) {
SubGroupSize[I] = seoe::this_sub_group().get_local_range()[0];
SubGroupMaxSize[I] = seoe::this_sub_group().get_max_local_range()[0];

GroupId[I] = NdId.get_group().get_id();
GroupId[I] = NdId.get_group().get_group_id();
NumGroups[I] = NdId.get_group_range();
});
}).wait();
Expand Down