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

OpenBLAS: Fix parallel compilation option #7351

Merged
merged 2 commits into from
Oct 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 9 additions & 8 deletions OpenBLAS.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ Patch1: OpenBLAS-disable-tests
%build

# PRESCOTT is a generic x86-64 target https://github.com/xianyi/OpenBLAS/issues/685
%define build_opts FC=gfortran BINARY=64 NUM_THREADS=256 DYNAMIC_ARCH=0 MAKE_NB_JOBS=%{compiling_processes}
%ifarch x86_64
make FC=gfortran BINARY=64 TARGET=CORE2 NUM_THREADS=256 DYNAMIC_ARCH=0
%else
make %{build_opts} TARGET=CORE2
%endif
%ifarch aarch64
make FC=gfortran BINARY=64 TARGET=ARMV8 NUM_THREADS=256 DYNAMIC_ARCH=0
%else
make FC=gfortran BINARY=64 NUM_THREADS=256 DYNAMIC_ARCH=0 CFLAGS="%{ppc64le_build_flags}"
%endif # aarch64
%endif # x86_64
make %{build_opts} TARGET=ARMV8
%endif
%ifarch ppc64le
make %{build_opts} CFLAGS="%{ppc64le_build_flags}"
%endif

%install
make install PREFIX=%i
make install PREFIX=%i MAKE_NB_JOBS=%{compiling_processes}