Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 710367 Details for
Bug 788184
dev-python/scipy-1.6.1: compilation failed "RuntimeError: NumPy was built with baseline optimizations: (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your machine doesn't support: (POPCNT)"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the compile time test for working popcnt
fix_popcnt_test.patch (text/plain), 851 bytes, created by
Carl Michal
on 2021-05-23 03:37:17 UTC
(
hide
)
Description:
fix the compile time test for working popcnt
Filename:
MIME Type:
Creator:
Carl Michal
Created:
2021-05-23 03:37:17 UTC
Size:
851 bytes
patch
obsolete
>diff -ur numpy-1.20.2.orig/numpy/distutils/checks/cpu_popcnt.c numpy-1.20.2/numpy/distutils/checks/cpu_popcnt.c >--- numpy-1.20.2.orig/numpy/distutils/checks/cpu_popcnt.c 2021-05-22 20:31:45.847812877 -0700 >+++ numpy-1.20.2/numpy/distutils/checks/cpu_popcnt.c 2021-05-22 20:32:02.157026731 -0700 >@@ -4,20 +4,26 @@ > #include <popcntintrin.h> > #endif > >+#include <stdlib.h> >+ > int main(void) > { > long long a = 0; > int b; >+ >+ a = random(); >+ b = random(); >+ > #ifdef _MSC_VER > #ifdef _M_X64 >- a = _mm_popcnt_u64(1); >+ a = _mm_popcnt_u64(a); > #endif >- b = _mm_popcnt_u32(1); >+ b = _mm_popcnt_u32(b); > #else > #ifdef __x86_64__ >- a = __builtin_popcountll(1); >+ a = __builtin_popcountll(a); > #endif >- b = __builtin_popcount(a); >+ b = __builtin_popcount(b); > #endif > return (int)a + b; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 788184
:
706377
|
710367
|
710691