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

Fix for issue #1413 (cherry-pick #179 to release_18x) #185

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

shivaramaarao
Copy link
Collaborator

@shivaramaarao shivaramaarao commented Jul 26, 2024

PGMATH has AVX512 runtime functions and can be executed only when the application is compiled in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions and using them only when avx512 mode is specified. This fix is cherry-picked from PR #179 for the release_17x branch.

@bryanpkc bryanpkc changed the title Fix for Issue #1413 Fix for Issue #1413 (cherry-pick #179 to release_18x) Jul 29, 2024
@@ -36,7 +36,8 @@ enum class VectorLibrary {
};

TargetLibraryInfoImpl *createTLII(llvm::Triple &TargetTriple,
VectorLibrary Veclib);
VectorLibrary Veclib,
bool targetAVX512);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use spaces instead of tabs for indenting your code. Try running git clang-format on your diff.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This code was generated by clang-format only. let me recheck again.

@bryanpkc bryanpkc requested a review from pawosm-arm July 29, 2024 20:58
@bryanpkc bryanpkc changed the title Fix for Issue #1413 (cherry-pick #179 to release_18x) Fix issue #1413 (cherry-pick #179 to release_18x) Jul 29, 2024
@bryanpkc bryanpkc changed the title Fix issue #1413 (cherry-pick #179 to release_18x) Fix for issue #1413 (cherry-pick #179 to release_18x) Jul 29, 2024
PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
@shivaramaarao shivaramaarao merged commit 7b4f17d into release_18x Aug 13, 2024
14 checks passed
@shivaramaarao shivaramaarao deleted the pgmath_avx512_fix2 branch August 13, 2024 09:35
bryanpkc pushed a commit to Huawei-CPLLab/classic-flang-llvm-project that referenced this pull request Sep 19, 2024
…lang-compiler#185)

PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
bryanpkc pushed a commit to Huawei-CPLLab/classic-flang-llvm-project that referenced this pull request Sep 19, 2024
…lang-compiler#185)

PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
bryanpkc pushed a commit to Huawei-CPLLab/classic-flang-llvm-project that referenced this pull request Sep 25, 2024
…lang-compiler#185)

PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
bryanpkc pushed a commit to Huawei-CPLLab/classic-flang-llvm-project that referenced this pull request Sep 26, 2024
…lang-compiler#185)

PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
bryanpkc pushed a commit to Huawei-CPLLab/classic-flang-llvm-project that referenced this pull request Oct 2, 2024
…lang-compiler#185)

PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
bryanpkc pushed a commit that referenced this pull request Oct 14, 2024
PGMATH has AVX512 runtime functions and can be executed only when the application is compiled
in avx512 mode. The VecFuncs.def has no information about the TargetOptions and avx512 functions
are selected even in avx2 mode. This issue is fixed by creating separate table for AVX512 functions
and using them only when avx512 mode is specified.
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.

4 participants