Skip to content

[PPC] Add missing vec_[signed|neg|sldw] definitions#50640

Closed
malfet wants to merge 1 commit intomasterfrom
malfet/add-missing-vsx-intrinsics
Closed

[PPC] Add missing vec_[signed|neg|sldw] definitions#50640
malfet wants to merge 1 commit intomasterfrom
malfet/add-missing-vsx-intrinsics

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Jan 16, 2021

Base on @quickwritereader 's comment: #50439 (comment)
Those builtins were added in gcc-8 or newer

Fixes #50439

@malfet malfet requested a review from a team January 16, 2021 01:20
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Comment thread aten/src/ATen/cpu/vec256/vsx/vsx_helpers.h Outdated
Base on @quickwritereader 's  comment: #50439 (comment)
Those builtins were added in gcc-8 or newer
@malfet malfet force-pushed the malfet/add-missing-vsx-intrinsics branch from 281b579 to c1d64c9 Compare January 21, 2021 19:45
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 21, 2021

Codecov Report

Merging #50640 (c1d64c9) into master (df96344) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #50640      +/-   ##
==========================================
- Coverage   81.02%   81.02%   -0.01%     
==========================================
  Files        1916     1916              
  Lines      209343   209343              
==========================================
- Hits       169624   169616       -8     
- Misses      39719    39727       +8     

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@malfet merged this pull request in 57fb2c0.

facebook-github-bot pushed a commit that referenced this pull request Jan 27, 2021
Summary:
Fixes #{issue number}
This is not really a new issue, just a proposed minor fix to a recent previous issue (now closed) #50640 which was a fix for #50439.

That fix added inlining for vec_signed (and others) but in one case the return was accidentally omitted.  This results in a build error:
```                 from �[01m�[K../aten/src/ATen/cpu/vec256/vec256.h:19�[m�[K,
                 from �[01m�[Katen/src/ATen/native/cpu/FillKernel.cpp.VSX.cpp:3�[m�[K:
�[01m�[K../aten/src/ATen/cpu/vec256/vsx/vsx_helpers.h:�[m�[K In function ‘�[01m�[Kvint32 vec_signed(const vfloat32&)�[m�[K’:
�[01m�[K../aten/src/ATen/cpu/vec256/vsx/vsx_helpers.h:33:1:�[m�[K �[01;31m�[Kerror: �[m�[Kno return statement in function returning non-void [�[01;31m�[K-Werror=return-type�[m�[K]
```

I've confirmed that the error disappears after this one-line fix.  (Note: There is another issue encountered later in the build unrelated to this particular fix, as I noted in a separate comment in the original issue.  I'm trying to make some sense of that one, but in any event it would be a subject for another issue/PR).

Pull Request resolved: #51116

Reviewed By: heitorschueroff

Differential Revision: D26078213

Pulled By: malfet

fbshipit-source-id: 59b2ee19138fa1b8d8ec1d35ca4a5ef0a67bc123
@facebook-github-bot facebook-github-bot deleted the malfet/add-missing-vsx-intrinsics branch January 27, 2021 18:26
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Base on quickwritereader 's  comment: pytorch#50439 (comment)
Those builtins were added in gcc-8 or newer

Fixes pytorch#50439

Pull Request resolved: pytorch#50640

Reviewed By: walterddr

Differential Revision: D25934384

Pulled By: malfet

fbshipit-source-id: b5dcfcf644ab92a78279c4dca5dbffbb8d8aae0c
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Fixes #{issue number}
This is not really a new issue, just a proposed minor fix to a recent previous issue (now closed) pytorch#50640 which was a fix for pytorch#50439.

That fix added inlining for vec_signed (and others) but in one case the return was accidentally omitted.  This results in a build error:
```                 from �[01m�[K../aten/src/ATen/cpu/vec256/vec256.h:19�[m�[K,
                 from �[01m�[Katen/src/ATen/native/cpu/FillKernel.cpp.VSX.cpp:3�[m�[K:
�[01m�[K../aten/src/ATen/cpu/vec256/vsx/vsx_helpers.h:�[m�[K In function ‘�[01m�[Kvint32 vec_signed(const vfloat32&)�[m�[K’:
�[01m�[K../aten/src/ATen/cpu/vec256/vsx/vsx_helpers.h:33:1:�[m�[K �[01;31m�[Kerror: �[m�[Kno return statement in function returning non-void [�[01;31m�[K-Werror=return-type�[m�[K]
```

I've confirmed that the error disappears after this one-line fix.  (Note: There is another issue encountered later in the build unrelated to this particular fix, as I noted in a separate comment in the original issue.  I'm trying to make some sense of that one, but in any event it would be a subject for another issue/PR).

Pull Request resolved: pytorch#51116

Reviewed By: heitorschueroff

Differential Revision: D26078213

Pulled By: malfet

fbshipit-source-id: 59b2ee19138fa1b8d8ec1d35ca4a5ef0a67bc123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New VSX support breaks compilation if using g++ v7 (ppc64le)

3 participants