Skip to content

Commit a6fbb40

Browse files
authored
[SYCL][E2E] Reduce memory requirements on image_max_size (#18393)
The test was allocating images that were bigger than necessary. This makes the test run slower and use more memory. Signed-off-by: James Brodman <[email protected]>
1 parent a8e3f61 commit a6fbb40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/test-e2e/Basic/image/image_max_size.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ int main() {
127127
// Using max sizes in one image may require too much memory.
128128
// Check them one by one.
129129
bool HasError = false;
130-
HasError |= testND<2>(Q, MaxWidth2D, 2);
131-
HasError |= testND<2>(Q, 2, MaxHeight2D);
130+
HasError |= testND<2>(Q, MaxWidth2D, 1);
131+
HasError |= testND<2>(Q, 1, MaxHeight2D);
132132

133-
HasError |= testND<3>(Q, MaxWidth3D, 2, 3);
134-
HasError |= testND<3>(Q, 2, MaxHeight3D, 3);
135-
HasError |= testND<3>(Q, 2, 3, MaxDepth3D);
133+
HasError |= testND<3>(Q, MaxWidth3D, 1, 1);
134+
HasError |= testND<3>(Q, 1, MaxHeight3D, 1);
135+
HasError |= testND<3>(Q, 1, 1, MaxDepth3D);
136136

137137
// This test requires a significant amount of host memory.
138138
// It has been observed that sometimes the test may fail with

0 commit comments

Comments
 (0)