Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ESIMD] Enable op(vector, scalar) variant of binary ext. math functions. #5651

Merged
merged 1 commit into from Feb 25, 2022

Conversation

kbobrovs
Copy link
Contributor

@kbobrovs kbobrovs commented Feb 24, 2022

E2E test : intel/llvm-test-suite#864
Signed-off-by: Konstantin S Bobrovsky konstantin.s.bobrovsky@intel.com

Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
@kbobrovs kbobrovs requested a review from a team as a code owner February 24, 2022 06:04
Copy link
Contributor

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good.
I have only 1 comment/question - if (scalar,vector) variant should be supported as well.

@@ -1486,13 +1486,18 @@ __ESIMD_UNARY_INTRINSIC_DEF(__ESIMD_EMATH_COND, cos, cos)
return esimd::saturate<T>(simd<T, N>(res_raw)); \
} \
\
/** Scalar version. */ \
/** (vector, scalar) version. */ \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't (scalar, vector) variant be supported as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a good point, thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out, scalar vector is supported as well, as implicit conversion works for the first parameter. I updated the test adding this (and few other similar) test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants