Commit 2f890b4
[SYCL][COMPLEX] Split complex header file and tests into multiple files (#11600)
This PR is the first step toward restructuring the `complex` API.
As discussed in #8647 and
#10854, the goal here is to clean the
future-to-be `complex` API.
To simplify the review of these changes, a new PR (this PR) is created
to not overload #8647.
IF/WHEN this will be approved, the second step which does the same for
the `marray`'s complex specialization will be pushed onto
#8647
Here's an overview of what has changed:
For the users, the only change is the include.
Instead of including `<sycl/ext/oneapi/experimental/sycl_complex.hpp>`,
it will now be `<sycl/ext/oneapi/experimental/complex/complex.hpp>`
The `complex.hpp` header files include all the `complex/detail` header
file (the `complex` API), in order to abstract the headers needed for
the users.
However, the users can include (if necessary) the specific component of
the API located in `complex/detail`.
Here's the overview of what the complex directory will contain when the
whole API is merged.
```
- complex
- complex.hpp
- detail
- complex.hpp
- complex_math.hpp
- complex_group_algorithm.hpp
- marray.hpp
- marray_math.hpp
- marray_group_algorithm.hpp
- common.hpp
```
Finally, here's the overview of the `sycl/test/extension`
```
- complex
- complex.cpp
- marray.cpp
```1 parent 1bd448c commit 2f890b4
File tree
8 files changed
+521
-440
lines changed- sycl
- include
- syclcompat
- sycl/ext/oneapi/experimental/complex
- detail
- test-e2e/Complex
- test
- basic_tests
- extensions/complex
8 files changed
+521
-440
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments