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

[SYCL] Update sycl complex testing #1533

Merged

Conversation

jle-quel
Copy link

@jle-quel jle-quel commented Jan 20, 2023

This PR updates the tests for the experimental sycl complex implementation.

It tests the new unary operators + and -, the new functions real and imag and the variant of conj, proj, arg, norm, when the function is called with decimals as arguments.

An overload of test_valid_types which takes a template template parameter that takes two typename parameters has been introduced to support the new deci_test_cases.

Finally, the test_cases structure has been renamed to cplx_test_cases to be coherent with the new deci_test_cases.

Depends on: intel/llvm#8068

@jle-quel jle-quel requested a review from a team as a code owner January 20, 2023 11:46
@jle-quel jle-quel requested a review from againull January 20, 2023 11:46
steffenlarsen pushed a commit to intel/llvm that referenced this pull request Mar 10, 2023
This PR updates the complex implementation.

From the POV of the complex's user, the interface does not change.

The modification made to the implementation are:
- the operators are now declared as hidden friends
- encapsulation of helper functions of the implementation (only expose
what needs to be)
- using metaprogramming to specialize the complex when the trait
`is_genfloat` is true, which removes the duplication of the operators
- using metaprogramming to specialize different math operations when the
trait `is_genfloat` is true, which removes some boilerplate code
- add the missing `inline` attribute to different functions
- remove unnecessary const and ref keywords on `value_type`
- add missing `std::enable_if` on free functions

llvm-test-suite: intel/llvm-test-suite#1533
@againull againull closed this Mar 11, 2023
@againull againull reopened this Mar 11, 2023
@jle-quel
Copy link
Author

Now that intel/llvm#8068 got merged, I was hoping we could merge this too.
I'm pinging you @steffenlarsen since you are aware of the PR and merged the implementation 😄

@steffenlarsen steffenlarsen merged commit 902ca19 into intel:intel Mar 13, 2023
@jle-quel jle-quel deleted the jle-quel/update-sycl-complex-testing branch March 13, 2023 10:34
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
This PR updates the tests for the experimental sycl complex implementation.

It tests the new unary operators `+` and `-`, the new functions `real` and `imag` and the variant of `conj`, `proj`, `arg`, `norm`, when the function is called with decimals as arguments.

An overload of `test_valid_types` which takes a template template parameter that takes two typename parameters has been introduced to support the new `deci_test_cases`.

Finally, the `test_cases` structure has been renamed to `cplx_test_cases` to be coherent with the new `deci_test_cases`.

Depends on: intel/llvm#8068
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
This PR updates the tests for the experimental sycl complex implementation.

It tests the new unary operators `+` and `-`, the new functions `real` and `imag` and the variant of `conj`, `proj`, `arg`, `norm`, when the function is called with decimals as arguments.

An overload of `test_valid_types` which takes a template template parameter that takes two typename parameters has been introduced to support the new `deci_test_cases`.

Finally, the `test_cases` structure has been renamed to `cplx_test_cases` to be coherent with the new `deci_test_cases`.

Depends on: intel#8068
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants