Skip to content

Commit 619eacc

Browse files
[NFCI][SYCL][Test E2E] Fix some warnings in DeviceLib tests (#9518)
1 parent 9fe49e2 commit 619eacc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/test-e2e/DeviceLib/built-ins/scalar_integer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ int main() {
223223
myQueue.submit([&](s::handler &cgh) {
224224
auto AccR = BufR.get_access<s::access::mode::write>(cgh);
225225
cgh.single_task<class ctzSI1>(
226-
[=]() { AccR[0] = s::intel::ctz(0x7FFFFFF0); });
226+
[=]() { AccR[0] = s::ctz(0x7FFFFFF0); });
227227
});
228228
}
229229
assert(r == 4);

sycl/test-e2e/DeviceLib/built-ins/vector_integer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ int main() {
385385
myQueue.submit([&](s::handler &cgh) {
386386
auto AccR = BufR.get_access<s::access::mode::write>(cgh);
387387
cgh.single_task<class ctzSI2>([=]() {
388-
AccR[0] = s::intel::ctz(s::int2{0x7FFFFFF0, 0x7FFFFFF0});
388+
AccR[0] = s::ctz(s::int2{0x7FFFFFF0, 0x7FFFFFF0});
389389
});
390390
});
391391
}

sycl/test-e2e/DeviceLib/string_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ USM_TEST_RES kernel_test_memcpy_usm(sycl::queue &deviceQueue) {
6666
if (usm_shared_dest == nullptr || usm_shared_src == nullptr)
6767
return USM_ALLOC_FAIL;
6868
// Init src usm memory
69-
char *host_init_str = "abcdefghijklmnopqrstuvwxyz";
69+
const char *host_init_str = "abcdefghijklmnopqrstuvwxyz";
7070
size_t str_len = strlen(host_init_str);
7171
deviceQueue
7272
.submit([&](sycl::handler &cgh) {

0 commit comments

Comments
 (0)