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

[SYCL][ESIMD] Add lsc_prefetch_2d tests #1645

Merged
merged 1 commit into from
Mar 15, 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
4 changes: 4 additions & 0 deletions SYCL/ESIMD/lsc/lsc_load_store_2d_compare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ int main() {

config_2d_mem_access<float, BlockWidth, BlockHeight, NumBlocks> payload(
A, width, height, pitch, 0, 0);
lsc_prefetch_2d<float, BlockWidth, BlockHeight, NumBlocks, false, false,
cache_hint::cached, cache_hint::cached>(payload);
auto data_a = lsc_load_2d(payload);

payload.set_data_pointer(B);
lsc_prefetch_2d<float, BlockWidth, BlockHeight, NumBlocks, false, false,
cache_hint::cached, cache_hint::cached>(payload);
auto data_b = lsc_load_2d(payload);

auto data_c = data_a + data_b;
Expand Down
4 changes: 3 additions & 1 deletion SYCL/ESIMD/lsc/lsc_load_store_2d_smoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ int main() {
payload(input, (SurfaceWidth * sizeof(int)) - 1,
SurfaceHeight - 1, (SurfacePitch * sizeof(int)) - 1, x,
y);

lsc_prefetch_2d<int, BlockWidth, BlockHeight, NumBlocks, false,
false, cache_hint::cached, cache_hint::cached>(
payload);
auto data = lsc_load_2d(payload);

payload.set_data_pointer(block_store);
Expand Down