-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC][SYCL][E2E] Split
Reduction/reduction_internal.cpp
(#16578)
The test is long enough to be a bottleneck for the total wall clock time when running E2E tests on a machine with enough cores (like our PVC/SPR runners in CI).
- Loading branch information
1 parent
81c2858
commit 95506e4
Showing
5 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
sycl/test-e2e/Reduction/reduction_internal_nd_range_1dim.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// RUN: %{build} -o %t.out | ||
// RUN: %{run} %t.out | ||
|
||
#include "reduction_internal.hpp" | ||
|
||
int main() { | ||
queue q; | ||
RedStorage Storage(q); | ||
|
||
testRange(Storage, nd_range<1>{range<1>{7}, range<1>{7}}); | ||
testRange(Storage, nd_range<1>{range<1>{3 * 3}, range<1>{3}}); | ||
|
||
// TODO: Strategies historically adopted from sycl::range implementation only | ||
// support 1-Dim case. | ||
// | ||
// testRange(Storage, nd_range<2>{range<2>{7, 3}, range<2> {7, 3}}); | ||
// testRange(Storage, nd_range<2>{range<2>{14, 9}, range<2> {7, 3}}); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: %{build} -o %t.out | ||
// RUN: %{run} %t.out | ||
|
||
#include "reduction_internal.hpp" | ||
|
||
int main() { | ||
queue q; | ||
RedStorage Storage(q); | ||
|
||
testRange(Storage, range<1>{42}); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: %{build} -o %t.out | ||
// RUN: %{run} %t.out | ||
|
||
#include "reduction_internal.hpp" | ||
|
||
int main() { | ||
queue q; | ||
RedStorage Storage(q); | ||
|
||
testRange(Storage, range<2>{8, 8}); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: %{build} -o %t.out | ||
// RUN: %{run} %t.out | ||
|
||
#include "reduction_internal.hpp" | ||
|
||
int main() { | ||
queue q; | ||
RedStorage Storage(q); | ||
|
||
testRange(Storage, range<3>{7, 7, 5}); | ||
|
||
return 0; | ||
} |