Accepting request 546005 from home:michel_mno:branches:science

- Add -mvsx option for ppc64 archi (not required for ppc64le)
  to avoid ./kernel/power/sasum_microk_power8.c:41:3: error:
  '__vector' undeclared (first use in this function); ...

OBS-URL: https://build.opensuse.org/request/show/546005
OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=59
This commit is contained in:
Dmitry Roshchin 2017-11-30 09:57:24 +00:00 committed by Git OBS Bridge
parent 3fa5455661
commit c628de499b
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 27 11:55:04 UTC 2017 - normand@linux.vnet.ibm.com
- Add -mvsx option for ppc64 archi (not required for ppc64le)
to avoid ./kernel/power/sasum_microk_power8.c:41:3: error:
'__vector' undeclared (first use in this function); ...
-------------------------------------------------------------------
Tue Oct 17 13:38:47 UTC 2017 - eich@suse.com

View File

@ -259,9 +259,15 @@ cp %{SOURCE2} .
%ifarch aarch64
%define openblas_target TARGET=ARMV8
%endif
# force -mvsx for ppc64 to avoid build failure:
# ../kernel/power/sasum_microk_power8.c:41:3: error: '__vector' undeclared (first use in this function); did you mean '__cpow'?
# TODO why is it required ? (and not for ppc64le)
%ifarch ppc64
%define addopt -mvsx
%endif
# Make serial, threaded and OpenMP versions
make %{?_smp_mflags} %{?openblas_target} %{?build_flags} \
COMMON_OPT="%{optflags}" \
COMMON_OPT="%{optflags} %{?addopt}" \
NUM_THREADS=%{num_threads} V=1 \
OPENBLAS_LIBRARY_DIR=%{p_libdir} \
OPENBLAS_INCLUDE_DIR=%{hpc_includedir} \