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

[SYCL][ESIMD] Fix tests that fail under emulator #1669

Merged
merged 5 commits into from
Mar 21, 2023
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/lsc/Inputs/lsc_surf_load.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool test(uint32_t pmask = 0xffffffff) {
sycl::nd_range<1> Range{GlobalRange * LocalRange, LocalRange};

using aligned_allocator =
sycl::usm_allocator<T, sycl::usm::alloc::host,
sycl::usm_allocator<T, sycl::usm::alloc::shared,
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>>;
aligned_allocator Allocator(q);

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/lsc/Inputs/lsc_surf_store.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool test(uint32_t pmask = 0xffffffff) {
sycl::range<1> LocalRange{Threads};
sycl::nd_range<1> Range{GlobalRange * LocalRange, LocalRange};
using aligned_allocator =
sycl::usm_allocator<T, sycl::usm::alloc::host,
sycl::usm_allocator<T, sycl::usm::alloc::shared,
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>>;
aligned_allocator Allocator(q);

Expand Down
8 changes: 4 additions & 4 deletions SYCL/ESIMD/lsc/Inputs/lsc_usm_block_load_prefetch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ bool test(queue Q, uint32_t Groups, uint32_t Threads) {
sycl::range<1> LocalRange{Threads};
sycl::nd_range<1> Range{GlobalRange * LocalRange, LocalRange};

T *Out = static_cast<T *>(sycl::aligned_alloc_shared(
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>, Size, Q));
T *In = static_cast<T *>(sycl::aligned_alloc_shared(
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>, Size, Q));
T *Out = sycl::aligned_alloc_shared<T>(
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>, Size, Q);
T *In = sycl::aligned_alloc_shared<T>(
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>, Size, Q);
for (int i = 0; i < Size; i++) {
In[i] = get_rand<T>();
Out[i] = 0;
Expand Down
4 changes: 2 additions & 2 deletions SYCL/ESIMD/lsc/Inputs/lsc_usm_store.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ bool test(uint32_t pmask = 0xffffffff) {
sycl::range<1> LocalRange{Threads};
sycl::nd_range<1> Range{GlobalRange * LocalRange, LocalRange};

T *out = static_cast<T *>(sycl::aligned_alloc_shared(
T *out = sycl::aligned_alloc_shared<T>(
Flags::template alignment<__ESIMD_DNS::__raw_t<T>>, Size * sizeof(T), dev,
ctx));
ctx);
for (int i = 0; i < Size; i++)
out[i] = old_val;

Expand Down