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

Commit b6f9ac4

Browse files
authored
[SYCL][ESIMD] Add lsc_prefetch_2d tests (#1645)
1 parent 94697c4 commit b6f9ac4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

SYCL/ESIMD/lsc/lsc_load_store_2d_compare.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,13 @@ int main() {
7171

7272
config_2d_mem_access<float, BlockWidth, BlockHeight, NumBlocks> payload(
7373
A, width, height, pitch, 0, 0);
74+
lsc_prefetch_2d<float, BlockWidth, BlockHeight, NumBlocks, false, false,
75+
cache_hint::cached, cache_hint::cached>(payload);
7476
auto data_a = lsc_load_2d(payload);
7577

7678
payload.set_data_pointer(B);
79+
lsc_prefetch_2d<float, BlockWidth, BlockHeight, NumBlocks, false, false,
80+
cache_hint::cached, cache_hint::cached>(payload);
7781
auto data_b = lsc_load_2d(payload);
7882

7983
auto data_c = data_a + data_b;

SYCL/ESIMD/lsc/lsc_load_store_2d_smoke.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ int main() {
6262
payload(input, (SurfaceWidth * sizeof(int)) - 1,
6363
SurfaceHeight - 1, (SurfacePitch * sizeof(int)) - 1, x,
6464
y);
65-
65+
lsc_prefetch_2d<int, BlockWidth, BlockHeight, NumBlocks, false,
66+
false, cache_hint::cached, cache_hint::cached>(
67+
payload);
6668
auto data = lsc_load_2d(payload);
6769

6870
payload.set_data_pointer(block_store);

0 commit comments

Comments
 (0)